libtool
[Top][All Lists]
Advanced

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

Darwin, convenience libraries, and common symbols


From: Tyler Berry
Subject: Darwin, convenience libraries, and common symbols
Date: Thu, 24 Jul 2003 09:41:38 -0600
User-agent: Mutt/1.4.1i

Hi, Libtool folks.

I'm using a package created with Libtool 1.5, and I've been trying to port it
to Darwin 6.6 (Mac OS X 10.2.6).

The package compiles two convenience libraries which it then proceeds to
attempt to link into another shared library (which will eventually be a module
rather than a shared library, but that's neither here nor there). Darwin
proceeds to give me the error: ld: common symbols not allowed with MH_DYLIB
output format with the -multi_module option.

The problem seems to be with the linking of the convenience library; it
compiles each file into .libs/*.o and ./*.o with -fno-common set and unset
respectively, but then links only one copy of the convenience library, using
the files compiled without -fno-common in ./*.o. When this convenience library
tries to link into my later shared library, Apple's ld complains about the
common symbols in the convenience library.

Any advice?

- build.log -

/bin/sh ../../../libtool --mode=link gcc  -Wall -O2 -g   -o libuiuc.la -rpath
/usr/local/lib -version-info 0:0:0 access.lo access_list.lo access_sort.lo
author_search.lo close_nf.lo compress_nf.lo create_nf.lo delete_nf.lo
delete_note.lo disk.lo get_next_bug.lo get_note.lo get_stats.lo logical_resp.lo
misc.lo modify_nf.lo modify_note.lo modify_note_text.lo open_nf.lo sequencer.lo
text_search.lo title_search.lo update_nf.lo write_note.lo
../../../lib/libcommon.la ../../../libibby/libibby.la  
gcc -dynamiclib -flat_namespace -undefined suppress -o
.libs/libuiuc.0.0.0.dylib  .libs/access.o .libs/access_list.o
.libs/access_sort.o .libs/author_search.o .libs/close_nf.o .libs/compress_nf.o
.libs/create_nf.o .libs/delete_nf.o .libs/delete_note.o .libs/disk.o
.libs/get_next_bug.o .libs/get_note.o .libs/get_stats.o .libs/logical_resp.o
.libs/misc.o .libs/modify_nf.o .libs/modify_note.o .libs/modify_note_text.o
.libs/open_nf.o .libs/sequencer.o .libs/text_search.o .libs/title_search.o
.libs/update_nf.o .libs/write_note.o -all_load  ../../../lib/.libs/libcommon.a
../../../libibby/.libs/libibby.a  -install_name  /usr/local/lib/libuiuc.0.dylib
-compatibility_version 1 -current_version 1.0
ld: warning multiple definitions of symbol _regcomp
../../../lib/.libs/libcommon.a(regex.o) definition of _regcomp in section
(__TEXT,__text)
/usr/lib/libSystem.dylib(regcomp.So) definition of _regcomp
ld: warning multiple definitions of symbol _regexec
../../../lib/.libs/libcommon.a(regex.o) definition of _regexec in section
(__TEXT,__text)
/usr/lib/libSystem.dylib(regexec.So) definition of _regexec
ld: warning multiple definitions of symbol _regfree
../../../lib/.libs/libcommon.a(regex.o) definition of _regfree in section
(__TEXT,__text)
/usr/lib/libSystem.dylib(regfree.So) definition of _regfree
ld: common symbols not allowed with MH_DYLIB output format with the
-multi_module option
../../../lib/.libs/libcommon.a(error.o) definition of common
_error_message_count (size 4)
../../../lib/.libs/libcommon.a(error.o) definition of common
_error_one_per_line (size 4)
../../../lib/.libs/libcommon.a(error.o) definition of common
_error_print_progname (size 4)
../../../lib/.libs/libcommon.a(getopt.o) definition of common
___getopt_initialized (size 4)
../../../lib/.libs/libcommon.a(getopt.o) definition of common _optarg (size 4)
../../../lib/.libs/libcommon.a(regex.o) definition of common _re_syntax_options
(size 4)
/usr/bin/libtool: internal link edit command failed
make[4]: *** [libuiuc.la] Error 1

-- 
Tyler Berry

Attachment: pgpWR3KxJbzd3.pgp
Description: PGP signature


reply via email to

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