Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libtool link generating multiple defined symbol errors



Hi,
In a tool that I'm porting (autogen), I've run into a problem that points to a libtool failure. I'm wondering whether these errors are common and perhaps have a common solution.


libtool generates a link command that contains two copies of a library in another directory. This causes the linker to complain about multiply defined symbols.

% ./libtool --version
ltmain.sh (GNU libtool) 1.4.2 (1.922.2.53 2001/09/11 03:18:52)

Here is the compile error:

/bin/sh ../libtool --mode=link cc -DREGEX_HEADER='<regex.h>' -o libopts.la -rpath /sw/lib -version-info 12:0:3 autoopts.lo boolean.lo enumeration.lo makeshell.lo numeric.lo pgusage.lo putshell.lo save.lo stack.lo streqvcmp.lo usage.lo version.lo ../snprintfv/snprintfv/libsnprintfvc.la pathfind.lo
rm -fr .libs/libopts.la .libs/libopts.* .libs/libopts.*
../libtool: parse error: condition expected: xno = [3183]
cc -dynamiclib -flat_namespace -undefined suppress -o .libs/libopts.9.3.0.dylib autoopts.lo boolean.lo enumeration.lo makeshell.lo numeric.lo pgusage.lo putshell.lo save.lo stack.lo streqvcmp.lo usage.lo version.lo pathfind.lo -all_load ../snprintfv/snprintfv/.libs/libsnprintfvc.al ../snprintfv/snprintfv/.libs/libsnprintfvc.al -lc -install_name /sw/lib/libopts.9.dylib -compatibility_version 13 -current_version 13.0
ld: multiple definitions of symbol _filcat
../snprintfv/snprintfv/.libs/libsnprintfvc.al(filament.lo) definition of _filcat in section (__TEXT,__text)
../snprintfv/snprintfv/.libs/libsnprintfvc.al(filament.lo) definition of _filcat in section (__TEXT,__text)
... and lots more ...


I appreciate any advice,
-dave

--
_______________________________________________
unix-porting mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/unix-porting
Do not post admin requests to the list. They will be ignored.





Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.