Post New Topic  Post A Reply
my profile | register | search | faq | forum home
  next oldest topic   next newest topic
» MacOSX - forked.net   » Compile Problems   » gd 2.0.1 compilation problem

UBBFriend: Email this page to someone!    
Author Topic: gd 2.0.1 compilation problem
pierce
Junior Member
Member # 56

posted August 30, 2001 04:12 AM      Profile for pierce   Email pierce   Send New Private Message      Edit/Delete Post  Reply With Quote 
Hi,
I have problem compiling gd 2.0.1 under MacOS X. In the Makefile there is "ld -shared -o libgd.so.${VERSION} ${LIBOBJS}", but the system returns the following error: "ld: unknown flag: -shared". I've checked the manual for ld in MacOSX but there is no such parameter - shared.

Posts: 2 | Registered: Aug 2001  |  IP: Logged
jasont
Member
Member # 16

posted September 01, 2001 09:47 PM      Profile for jasont     Send New Private Message      Edit/Delete Post  Reply With Quote 
This is due to the way mach libraries are built. You can change that to -dynamic and you should be okay. If that doesn't work you can add -undefined suppress after dynamic (default behaviour is to treat undefined symbols as error 1's and die nasty). I got it working but I don't have time to check my notes. So I'm pretty sure all you have to do there is change -shared to -dynamic -undefined supress <rest of line>
-j3

Posts: 50 | From: Palo Alto, CA | Registered: Aug 2001  |  IP: Logged
somekindafreak
Junior Member
Member # 531

posted October 13, 2002 03:15 PM      Profile for somekindafreak        Edit/Delete Post  Reply With Quote 
Figuring out how to get GD compiled caused me days of grief!!! I kept checking to see whether and of it's components were not built or installed properly. Compiling on Solaris complained about the -shared flag too interpreting it as -h ared (i think). The previous reply was a step in the right direction for me, but here are the steps I used to get it to compile:

Change -shared to '-dynamic -flat_namespace -undefined suppress' in the Makefile.

make install still complains about not finding an -lgd library. You have to run these steps:
make libgd.a
cp libgd.a /usr/local/lib
ranlib /usr/local/lib/libgd.a

make install then completed correctly.

I needed GD to use the Perl GD:Graph modules and while compiling those I ran into this error:

dyld: perl Undefined symbols
_FT_New_Face
Trace/BPT trap

the solution for that was to run a make and make
install of perl 5.8.0 again.


Posts: 1 | From: San Mateo, CA | Registered: Oct 2002  |  IP: Logged

All times are Pacific Time  

Post New Topic  Post A Reply Close Topic    Move Topic    Delete Topic next oldest topic   next newest topic
Hop To:

Contact Us | macosx.forked.net

Powered by Infopop Corporation
Ultimate Bulletin BoardTM 6.1.0.2