This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building shared objects with gcj on osx


Thanks for your help andi ...

I use both -shared -bundle and it seems to work for the python extension I'm building. I also used these flags at times:
-undefined suppress -flat_namespace -multiply_defined suppress



-shared -bundle produced


bash-2.05a$ gcj -shared -bundle -o helloworld.so Test.java
/usr/bin/ld: Undefined symbols:
___eprintf
_environ
collect2: ld returned 1 exit status

but...

bash-2.05a$ gcj -shared -bundle -undefined suppress -flat_namespace -o helloworld.so Test.java

built fine. (for anyone else trying this)

Is -undefined suppress causing the eprintf and environ symbols to be ignored, and if so, what is lost because of this? Is there any info as to why these symbols are included in the object file, and as to why they're not linkable in OSX?

Many thanks for your help, off to play with my new .so

J

This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]