gd 2.0.1 compilation problem

Find out how to get that @*&^$&@ thing to compile!

gd 2.0.1 compilation problem

Postby piercefx » Thu Aug 30, 2001 11:12 am

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. [img]images/icons/frown.gif"%20border="0[/img]
piercefx
 
Posts: 2
Joined: Tue Aug 28, 2001 7:00 pm

Re: gd 2.0.1 compilation problem

Postby jasont » Sun Sep 02, 2001 4:47 am

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
jasont
 
Posts: 50
Joined: Tue Aug 14, 2001 7:00 pm
Location: Palo Alto, CA

Re: gd 2.0.1 compilation problem

Postby somekindafreak » Sun Oct 13, 2002 10:15 pm

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.
somekindafreak
 
Posts: 1
Joined: Sun Oct 13, 2002 7:00 pm
Location: San Mateo, CA


Return to Compile Problems

Who is online

Users browsing this forum: No registered users and 24 guests

cron