piercefx
2001-08-30 11:12:00
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]
jasont
2001-09-02 04:47:00
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
somekindafreak
2002-10-13 22:15:00
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.