[Top][All Lists]

[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

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; 
 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
(cd .libs && rm -f && ln -s ../
echo 'VCDINFO_0 {' >
echo "  global:" >>
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 >>
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 '};' >>
/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 -rpath 
/pkg/lib -version-info 1:1:1 -Wl, info.lo 
inf.lo info_private.lo vcd_read.lo -L/pkg/lib -lcdio -lm   -L/pkg/lib -liso9660 
  ../lib/ -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/ /pkg/lib/ -lm  
-Wl, -Wl,-soname -Wl, -o 
/pkg/bin/ 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]