Compiling Pike 7.8 on OSX PPC
Pike 7.8 did not compile out of the box on my Mac, so I figured I would write up what it took to get it working.
The initial problem was getting it to find the MySQL headers and libraries installed by macports, which was easy enough to fix.
LDCONFIG="-L/opt/local/mysql/lib" export LDCONFIG CPPFLAGS="-I/opt/local/include/mysql5" export CPPFLAGS
It found the files it needed, but it still didn’t pass the test. It complained about not finding various API functions in the MySQL library. It turns out that it was detecting my system as 64bit (when it is in fact 32). For that, I had to run make with CONFIGUREARGS:
make CONFIGUREARGS="--with-abi=32"
…and that did it. Thank god for the good folks in #pike on irc.freenode.net!
Hi Jeff.
I had to rm the GTK and GTK2 modules from Pike 7.8 to get it to build on my box. It seemed to not like the libgtk1 and libgtk2 that I have installed via ports.