libcdio-devel
[Top][All Lists]
Advanced

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

[Libcdio-devel] --enable-shared and --disable-static --with-versioned-li


From: R. Bernstein
Subject: [Libcdio-devel] --enable-shared and --disable-static --with-versioned-libs problem
Date: Mon, 13 Jun 2005 04:55:13 -0400

Gabor Z. Papp reports a problem in building vcdimager (but I think
there is a corresponding problem in libcdio); the options
--enable-shared and --disable-static were used together and it seems
to cause a problem when --with-versioned-libs (the default) is also in
effect.

I think is happening that objects get created in lib/.libs (of
vcdimager) but not in lib/ as happens for the static
compilations. This then causes the code for creating libvcdinfo to
fail since it seems to be looking in lib/ for the objects. 

Here is part of the output Papp's from "make":

if /bin/sh ../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I.. 
-I../include/ -I../lib/ -I/pkg/include      -g -O2  -Wall -Wchar-subscripts 
-Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith 
-Wwrite-strings -Wnested-externs -Wno-sign-compare -MT inf.lo -MD -MP -MF 
".deps/inf.Tpo" -c -o inf.lo inf.c; \
then mv -f ".deps/inf.Tpo" ".deps/inf.Plo"; else rm -f ".deps/inf.Tpo"; exit 1; 
fi
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include/ -I../lib/ -I/pkg/include -g -O2 
-Wall -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wunused 
-Wpointer-arith -Wwrite-strings -Wnested-externs -Wno-sign-compare -MT inf.lo 
-MD -MP -MF .deps/inf.Tpo -c inf.c  -fPIC -DPIC -o .libs/inf.o
...
ranlib .libs/libvcd.a
creating libvcd.la
(cd .libs && rm -f libvcd.la && ln -s ../libvcd.la libvcd.la)
echo 'VCDINFO_0 {' > libvcdinfo.la.ver
echo "  global:" >> libvcdinfo.la.ver
nm info.o inf.o info_private.o vcd_read.o | sed -n -e 's/^.*[   
][ABCDGIRSTW][ABCDGIRSTW]*[     ][      ]*\([_A-Za-z][_A-Za-z0-9]*\)$/    
\1;/p' | sort | uniq >> libvcdinfo.la.ver
nm: 'info.o': No such file
nm: 'inf.o': No such file
nm: 'info_private.o': No such file
nm: 'vcd_read.o': No such file
echo '};' >> libvcdinfo.la.ver
/bin/sh ../libtool --mode=link --tag=CC gcc  -g -O2  -Wall -Wchar-subscripts 
-Wmissing-prototypes -Wmissing-declarations -Wunused -Wpointer-arith 
-Wwrite-strings -Wnested-externs -Wno-sign-compare   -o libvcdinfo.la -rpath 
/pkg/lib -version-info 1:1:1 -Wl,--version-script=libvcdinfo.la.ver info.lo 
inf.lo info_private.lo vcd_read.lo -L/pkg/lib -lcdio -lm   -L/pkg/lib -liso9660 
  ../lib/libvcd.la -lm
gcc -shared  .libs/info.o .libs/inf.o .libs/info_private.o .libs/vcd_read.o 
-Wl,--whole-archive ../lib/.libs/libvcd.a -Wl,--no-whole-archive  -L/x/lib 
-L/pkg/lib /pkg/lib/libiso9660.so /pkg/lib/libcdio.so -lm  
-Wl,--version-script=libvcdinfo.la.ver -Wl,-soname -Wl,libvcdinfo.so.0 -o 
.libs/libvcdinfo.so.0.1.1
/pkg/bin/ld:libvcdinfo.la.ver:3: syntax error in VERSION script
collect2: ld returned 1 exit status

One way to address this might be to force --disable-versioned-libs
when --disable-static is given. Another possibility is to look in
.libs here. Any suggestions or comments? 




reply via email to

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