Problem using newly compiled static binutils for any packages mak ing use of regular expressions

John Arrowwood John.Arrowwood at merant.com
Tue Sep 5 09:49:51 PDT 2000


Below is the output of "make" when trying to compile the fileutils.  I get
the same general error on several packages, all of which seem to have some
form of regular expression support in them.

NOTES:  
  1) binutils have been compiled statically, and installed to
$LFS/usr/local/temp
  2) /usr/local/temp is sym-linked to point to $LFS/usr/local/temp
  3) the path has been modified so that /usr/local/temp/bin is first
  4) THEREFORE: When using "ld," it is using the version in
$LFS/usr/local/temp/bin, not /bin
  5) list of files in /lib on the "host" shown after the make output

output of make command
----------------------------------------------------------------------------
---
gcc  -g -O2 -static -o cp  cp.o copy.o cp-hash.o ../lib/libfu.a 
/usr/lib/libc.a(rx.o): In function `re_search_2':
rx.o(.text+0x8428): multiple definition of `re_search_2'
../lib/libfu.a(regex.o):/mnt/lfs/usr/src/fileutils-4.0/lib/regex.c:3513:
ffirst defined here
ld: Warning: size of symbol `re_search_2' changed from 481 to 143 in rx.o
/usr/lib/libc.a(rx.o): In function `re_match':
rx.o(.text+0x85e8): multiple definition of `re_match'
../lib/libfu.a(regex.o):/mnt/lfs/usr/src/fileutils-4.0/lib/regex.c:3735:
ffirst defined here
ld: Warning: size of symbol `re_match' changed from 31 to 44 in rx.o
/usr/lib/libc.a(rx.o): In function `re_set_registers':
rx.o(.text+0x862c): multiple definition of `re_set_registers'
../lib/libfu.a(regex.o):/mnt/lfs/usr/src/fileutils-4.0/lib/regex.c:3444:
ffirst defined here
ld: Warning: size of symbol `re_set_registers' changed from 80 to 84 in rx.o
/usr/lib/libc.a(rx.o): In function `re_compile_pattern':
rx.o(.text+0x8960): multiple definition of `re_compile_pattern'
../lib/libfu.a(regex.o):/mnt/lfs/usr/src/fileutils-4.0/lib/regex.c:5468:
ffirst defined here
ld: Warning: size of symbol `re_compile_pattern' changed from 56 to 149 in
rx.o
/usr/lib/libc.a(rx.o): In function `re_match_2':
rx.o(.text+0x8534): multiple definition of `re_match_2'
../lib/libfu.a(regex.o):/mnt/lfs/usr/src/fileutils-4.0/lib/regex.c:3783:
ffirst defined here
ld: Warning: size of symbol `re_match_2' changed from 34 to 178 in rx.o
/usr/lib/libc.a(rx.o): In function `regcomp':
rx.o(.text+0x8b44): multiple definition of `regcomp'
../lib/libfu.a(regex.o):/mnt/lfs/usr/src/fileutils-4.0/lib/regex.c:5605:
ffirst defined here
ld: Warning: size of symbol `regcomp' changed from 255 to 536 in rx.o
/usr/lib/libc.a(rx.o): In function `regexec':
rx.o(.text+0x8d5c): multiple definition of `regexec'
../lib/libfu.a(regex.o):/mnt/lfs/usr/src/fileutils-4.0/lib/regex.c:5688:
ffirst defined here
ld: Warning: size of symbol `regexec' changed from 277 to 496 in rx.o
/usr/lib/libc.a(rx.o): In function `regerror':
rx.o(.text+0x8f4c): multiple definition of `regerror'
../lib/libfu.a(regex.o):/mnt/lfs/usr/src/fileutils-4.0/lib/regex.c:5755:
ffirst defined here
ld: Warning: size of symbol `regerror' changed from 98 to 95 in rx.o
/usr/lib/libc.a(rx.o): In function `re_compile_fastmap':
rx.o(.text+0x89f8): multiple definition of `re_compile_fastmap'
../lib/libfu.a(regex.o):/mnt/lfs/usr/src/fileutils-4.0/lib/regex.c:3135:
ofirst defined here
ld: Warning: size of symbol `re_compile_fastmap' changed from 987 to 18 in
rx.o
/usr/lib/libc.a(rx.o): In function `re_set_syntax':
rx.o(.text+0x8614): multiple definition of `re_set_syntax'
../lib/libfu.a(regex.o):/mnt/lfs/usr/src/fileutils-4.0/lib/regex.c:993:
ffirst defined here
ld: Warning: size of symbol `re_set_syntax' changed from 21 to 23 in rx.o
/usr/lib/libc.a(rx.o): In function `re_search':
rx.o(.text+0x8500): multiple definition of `re_search'
../lib/libfu.a(regex.o):/mnt/lfs/usr/src/fileutils-4.0/lib/regex.c:3474:
ffirst defined here
ld: Warning: size of symbol `re_search' changed from 34 to 50 in rx.o
/usr/lib/libc.a(rx.o): In function `regfree':
rx.o(.text+0x8fac): multiple definition of `regfree'
../lib/libfu.a(regex.o):/mnt/lfs/usr/src/fileutils-4.0/lib/regex.c:5799:
ffirst defined here
ld: Warning: size of symbol `regfree' changed from 94 to 130 in rx.o
make[2]: *** [cp] Error 1
make[2]: Leaving directory `/mnt/lfs/usr/src/fileutils-4.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/lfs/usr/src/fileutils-4.0'
make: *** [all-recursive-am] Error 2

Files in /lib (for version identification)
------------------------------------------
cpp
ld-linux.so.1
ld-linux.so.1.7.14
ld.so
ld.so.1.7.14
libc.so
libc.so.5
libc.so.5.3.12
libcom_err.so.2
libcom_err.so.2.0
libdl.so
libdl.so.1
libdl.so.1.7.14
libe2p.so.2
libe2p.so.2.3
libext2fs.so.2
libext2fs.so.2.3
libm.so.5
libm.so.5.0.6
libpam.so
libpam.so.0
libpam.so.0.57
libpam_misc.a
libpam_misc.so
libpam_misc.so.0
libpam_misc.so.0.57
libpthread.so.0
libpthread.so.0.5
libpwdb.a
libpwdb.so
libpwdb.so.0
libpwdb.so.0.54
libss.so.2
libss.so.2.0
libtermcap.so.2
libtermcap.so.2.0.5
libtermcap.so.2.0.8
libuuid.so.1
libuuid.so.1.1
modules
security
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-dev/attachments/20000905/25db48cd/attachment.html>


More information about the lfs-dev mailing list