Click to See Complete Forum and Search --> : 4.1.0 install on OSX with GD


zacpac
12-14-2001, 06:57 PM
Hi i keep getting compiling errors during the building procces when trying to install php4.1.0 with GD

the error messge

*** Warning: This library needs some functionality provided by -lgd.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: This library needs some functionality provided by -lpng.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: This library needs some functionality provided by -ljpeg.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
ld: -undefined error must be used when -twolevel_namespace is in effect
/usr/bin/libtool: internal link edit command failed

i am using the configure options

./configure --with-mysql --enable-xml --with-apxs=/usr/local/sbin/apxs --with-gd=/usr/local --with-zlib=/usr --with-png-dir=/usr/local --with-jpeg-dir=/usr/local --with-freetype-dir=/usr/local --enable-bcmath --enable-calendar --enable-yp --enable-magic-quotes --prefix=/usr/local --enable-safe-mode --with-config-file-path=/private/etc/httpd

any help would be greatful

kind regards

zac

tchester
12-15-2001, 07:57 PM
PHP 4.1.0 does not build on Mac OS X at this stage. You can reference bugs #14483 and #14154 at http://www.php.net. You need version 4.0.6. In addition, to configure the source you need to type the following:

<pre>
cd php-4.0.6
setenv CC 'cc -flat_namespace'
./configure your-options < /dev/null
</pre>

The setenv command will fix the "ld: -undefined error must be used when -twolevel_namespace is in effect " error. The configure with /dev/null input will prevent the configure script from hanging on compiler capability testing.