On February 16, 2001 01:34 am, Keith Owens wrote:
> On Fri, 16 Feb 2001 05:43:19 +0100 (MET),
>
> nashif@xxxxxxx wrote:
> >gcc is
> >gcc version 2.96-ia64-000717 snap 001117
> >
> >gcc -Wall -L../../../src/libpcp/src -L../../../src/libpcp_pmda/src
> > -shared -Wl,-soname,libpcp.so.2 -o libpcp.so.2 \ connect.o context.o
> > desc.o err.o fetch.o freeresult.o help.o instance.o p_desc.o p_error.o
> > p_fetch.o p_instance.o p_profile.o p_result.o p_text.o p_pmns.o p_creds.o
> > pdu.o pdubuf.o pmns.o pool.o profile.o store.o units.o util.o ipc.o
> > sortinst.o logmeta.o logportmap.o logutil.o tz.o interp.o checksum.o
> > rtime.o tv.o mspec.o fetchlocal.o optfetch.o stuffvalue.o endian.o
> > config.o access.o pmauth.o AF.o p_lcontrol.o p_lrequest.o p_lstatus.o
> > logconnect.o logcontrol.o -ldl
> > /usr/lib/gcc-lib/ia64-suse-linux/2.96-ia64-000717/../../../../ia64-suse-l
> >inux/bin/ld: connect.o: @gprel relocation against dynamic symbol
> > __pmConnectHostMethod
>
> This looks like a compiler bug. The code compiles fine on gcc
> 2.9-ia64-000216-final, it fails to link when compiled with gcc
> 2.96-ia64-000717 snap 001117. We are checking the latest gcc at the
> moment to see if they have fixed this bug.
I tried compiling with -fpic defined in src/include/builddefs and it seems to
compile.
>From our porting-howto:
@gprel relocation against dynamic symbol ...
This means that non-pic object files are linked into a shared library.
The ia64 compiler _requires_ that all code in a shared library is compiled
with -fpic.
Anas
|