Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39279 - libtool fails when using -export-symbols-regex
Summary: libtool fails when using -export-symbols-regex
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 40654 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-01-24 12:45 UTC by James
Modified: 2004-11-09 19:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James 2004-01-24 12:45:15 UTC
With a makefile.am file containing something like the following: -
libdvdnav_la_LDFLAGS = \
        -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
        -export-symbols-regex "(^dvdnav.*|^nav.*|^ifo.*|^DVD.*)"

The "make" fails. (see below)
removing the -export-symbols-regex "(^dvdnav.*|^nav.*|^ifo.*|^DVD.*)"
causes the make to succeed.
I conclude there is a bug in autotools or libtool.


make[3]: Entering directory `/usr/local/xinecvs/libdvdnav/src'
/bin/sh ../libtool --mode=link gcc  -O3 -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE    -o libdvdnav.la -rpath /usr/local/lib -version-info 4:0:0 -export-symbols-regex "(^dvdnav.*|^nav.*|^ifo.*|^DVD.*)" dvdnav.lo read_cache.lo navigation.lo highlight.lo searching.lo settings.lo remap.lo -lpthread ../src/dvdread/libdvdread.la ../src/vm/libdvdvm.la
rm -fr .libs/libdvdnav.la .libs/libdvdnav.* .libs/libdvdnav.*
generating symbol list for `libdvdnav.la'
/usr/bin/nm -B  dvdnav.lo read_cache.lo navigation.lo highlight.lo searching.lo settings.lo remap.lo  ../src/dvdread/.libs/libdvdread.al ../src/vm/.libs/libdvdvm.al | sed -n -e 's/^.*[     ]\([ABCDGISTW][ABCDGISTW]*\)[   ][      ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' | sed 's/.* //' | sort | uniq > .libs/libdvdnav.exp
egrep -e "(^dvdnav.*|^nav.*|^ifo.*|^DVD.*)" ".libs/libdvdnav.exp" > ".libs/libdvdnav.expT"
mv -f ".libs/libdvdnav.expT" ".libs/libdvdnav.exp"
gcc "{ global:" > .libs/libdvdnav.ver
gcc: { global:: No such file or directory
gcc: no input files
make[3]: *** [libdvdnav.la] Error 1
make[3]: Leaving directory `/usr/local/xinecvs/libdvdnav/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/xinecvs/libdvdnav/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/xinecvs/libdvdnav'
make: *** [all] Error 2


Reproducible: Always
Steps to Reproduce:
1. make  <- fails.
2. 
3.

Actual Results:  
make[3]: Entering directory `/usr/local/xinecvs/libdvdnav/src'
/bin/sh ../libtool --mode=link gcc  -O3 -Wall -D_FILE_OFFSET_BITS=64
-D_LARGEFILE64_SOURCE    -o libdvdnav.la -rpath /usr/local/lib -version-info
4:0:0 -export-symbols-regex "(^dvdnav.*|^nav.*|^ifo.*|^DVD.*)" dvdnav.lo
read_cache.lo navigation.lo highlight.lo searching.lo settings.lo remap.lo
-lpthread ../src/dvdread/libdvdread.la ../src/vm/libdvdvm.la
rm -fr .libs/libdvdnav.la .libs/libdvdnav.* .libs/libdvdnav.*
generating symbol list for `libdvdnav.la'
/usr/bin/nm -B  dvdnav.lo read_cache.lo navigation.lo highlight.lo searching.lo
settings.lo remap.lo  ../src/dvdread/.libs/libdvdread.al
../src/vm/.libs/libdvdvm.al | sed -n -e 's/^.*[    
]\([ABCDGISTW][ABCDGISTW]*\)[   ][      ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1
\2\3 \3/p' | sed 's/.* //' | sort | uniq > .libs/libdvdnav.exp
egrep -e "(^dvdnav.*|^nav.*|^ifo.*|^DVD.*)" ".libs/libdvdnav.exp" >
".libs/libdvdnav.expT"
mv -f ".libs/libdvdnav.expT" ".libs/libdvdnav.exp"
gcc "{ global:" > .libs/libdvdnav.ver
gcc: { global:: No such file or directory
gcc: no input files
make[3]: *** [libdvdnav.la] Error 1
make[3]: Leaving directory `/usr/local/xinecvs/libdvdnav/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/xinecvs/libdvdnav/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/xinecvs/libdvdnav'
make: *** [all] Error 2


Expected Results:  
make should work.
Comment 1 Louis Zhuang 2004-02-11 21:30:27 UTC
In my machine, it is caused by sys-devel/libtool-1.4.3-r3. All are fine when I downgrade into sys-devel/libtool-1.4.1-r10. But libtool-1.4.3 in RH8/9 are all fine.
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-15 14:27:56 UTC
and libtool-1.5.2-r3?
Comment 3 SpanKY gentoo-dev 2004-08-20 22:51:23 UTC
*** Bug 40654 has been marked as a duplicate of this bug. ***
Comment 4 SpanKY gentoo-dev 2004-11-09 19:39:04 UTC
please try 1.5.2-r7 and/or 1.5.10