Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Problem compiling software developed on linux on OSX
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem compiling software developed on linux on OSX



Hi,

Thanks for the help. I tried with -dynamiclib and changed the ending to .dylib instead of .so but I still get the same failure, namely:

making libg2c.dylib
ld: common symbols not allowed with MH_DYLIB output format with the - multi_module option
energy_data.o definition of common _WC_Matrix (size 2500)
energy_data.o definition of common _bulge (size 124)
energy_data.o definition of common _loop (size 124)
lzw.o definition of common _append_character (size 4)
lzw.o definition of common _code_value (size 4)
lzw.o definition of common _decode_stack (size 4000)
lzw.o definition of common _prefix_code (size 4)
wublast.o definition of common _token (size 1024)
/usr/bin/libtool: internal link edit command failed
make: *** [libg2c.dylib] Error 1


does this mean that the other object files are incompatible with being linked into the dynamic library, and if so, is there an extra compiler switch that I'm supposed to provide when they are compiled?

Thanks,
Gavin

On May 22, 2006, at 8:07 PM, Peter O'Gorman wrote:

On Mon, 2006-05-22 at 19:23 -0700, Gavin Sherlock wrote:
Hi Terry,

Many thanks for the answers.  The particular lines from the Makefile
where the problem occurs are:

${LIBG2C}: ${LIBG2C_OBJS}
	${ECHO} making $@
	${CC} -shared -o $@ ${JNI_INCLUDES} ${LIBG2C_OBJS} ${LDFLAGS}

you probably want to use -dynamiclib instead of -shared. You'll have to
change the LIBG2C to end in .dylib instead of .so too.


Peter

_______________________________________________ Do not post admin requests to the list. They will be ignored. Unix-porting mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Problem compiling software developed on linux on OSX (From: Gavin Sherlock <email@hidden>)
 >Re: Problem compiling software developed on linux on OSX (From: Terry Lambert <email@hidden>)
 >Re: Problem compiling software developed on linux on OSX (From: Gavin Sherlock <email@hidden>)
 >Re: Problem compiling software developed on linux on OSX (From: "Peter O'Gorman" <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.