bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: module libposix


From: Bruce Korb
Subject: Re: module libposix
Date: Tue, 21 Sep 2010 14:37:39 -0700

>>/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2   -o libposix.la -rpath 
>>/usr/local/lib  .libs/*.o asnprintf.o \
>> basename-lgpl.o chdir-long.o cloexec.o dirname-lgpl.o dprintf.o dup-safer.o 
>> duplocale.o fcntl.o\
>>  fd-safer.o fflush.o filenamecat-lgpl.o fprintf.o fpurge.o fseek.o fseeko.o 
>> futimens.o getcwd.o gettime.o \
>> glob.o ioctl.o isfinite.o isnand.o isnanf.o isnanl.o linkat.o nanosleep.o 
>> openat-proc.o pipe-safer.o \
>> printf.o printf-args.o printf-parse.o remove.o safe-read.o safe-write.o 
>> save-cwd.o snprintf.o sprintf.o \
>> stripslash.o strstr.o strtod.o tempname.o utimens.o utimensat.o vasnprintf.o 
>> vdprintf.o vfprintf.o \
>> vprintf.o vsnprintf.o vsprintf.o xgetcwd.o xmalloc.o
>>
>>*** Warning: Linking the shared library libposix.la against the non-libtool
>>*** objects  asnprintf.o [...] -Wl,-soname -Wl,libposix.so.0 -o 
>>.libs/libposix.so.0.0.0
>>/usr/bin/ld: asnprintf.o: relocation R_X86_64_32 against `a local symbol' can 
>>not be used when \
>> making a shared object; recompile with -fPIC
>>asnprintf.o: could not read symbols: Bad value
>>collect2: ld returned 1 exit status
>>make[4]: *** [libposix.la] Error 1
>>make[4]: Leaving directory 
>>`/usr/local/src/gnulib/gnulib/libposix/libposix/libposix

I took a peek at this.  The referenced .o objects get generated from
being part of
EXTRA_libposix_la_SOURCES and the members of libposix_la_SOURCES are
compiled correctly.  I'd have expected that these sources would not actually get
compiled at all.  But there is some magic here.

We have:
   EXTRA_SOURCES
   libposix_la_SOURCES
   EXTRA_libposix_la_SOURCES

The names in the first are simply rolled into the distribution tarball.
The second get built into the shared object that is to be installed.
The third get compiled non-PIC and an attempt is made to link
them into the shared object, too.  Libtool doesn't like it.  I don't
either.  Should these be EXTRA_SOURCES or libposix_la_SOURCES?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]