Re: php compilation error on MacOSX10.1
| From: | Nicolas Ross | Date: | Mon, 17 Dec 2001 12:23:59 +0000 |
| Subject: | Re: php compilation error on MacOSX10.1 | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-5320@lists.php.net to get a copy of this message | ||
First, set CFLAGS env to :
setenv CFLAGS -DEAPI
And then I edited libtool after configuring php, (libtool is generated by
configure) I changed the line CC="cc" to :
CC="cc -flat_namespace"
After that, make and everythings should be fine...
BTW, I works for mem but not with php 4.1.0...
----- Original Message -----
From: "mario" <mario@conecta.it>
To: <php-install@lists.php.net>
Sent: Saturday, December 15, 2001 8:46 AM
Subject: [PHP-INST] php compilation error on MacOSX10.1
> After having updated the OS to version 10.1 I cannot recompile PHP. This
> is the contain of the debug.log file:
>
> CONFIGURE: './configure' '--with-pgsql' '--with-
> apxs=/usr/local/apache/sbin/apxs' '--with-zlib-dir' '--with-
> gd=/usr/local/gd' '--with-png-dir' '--with-pdflib=/usr/local/lib'
> '--enable-magic-quotes' '--enable-debug=no' '--disable-pear'
> '--with-xml'
> CC: gcc
> CFLAGS: -g -O2
> CPPFLAGS: -traditional-cpp -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT
> -DSUPPORT_UTF8
> CXX:
> CXXFLAGS:
> INCLUDES: -I/usr/local/apache/include -I$(top_builddir)/Zend
> -I/usr/local/gd/ -I/usr/local/php/ext/mysql/libmysql
> LDFLAGS: -L/usr/local/lib -L/usr/local/lib -L/usr/local/gd/
> -L/usr/local/gd/ -L/usr/local/pgsql/lib -L/usr/local/pgsql/lib
> LIBS: -lpq -lgd -lpng -lz -lz -lm
> DLIBS:
> SAPI: apache
> PHP_RPATHS: /usr/local/lib /usr/local/gd/ /usr/local/pgsql/lib
> uname -a: Darwin localhost 1.4 Darwin Kernel Version 1.4: Sun Sep 9
> 15:39:59 PDT 2001; root:xnu/xnu-201.obj~1/RELEASE_PPC Power Macintosh
> powerpc
>
> gcc -o conftest -g -O2 -traditional-cpp -DDARWIN -DUSE_HSREGEX
> -DUSE_EXPAT -DSUPPORT_UTF8 -L/usr/local/lib -L/usr/local/lib
> -L/usr/local/gd/ -L/usr/local/gd/ -L/usr/local/pgsql/lib
> -L/usr/local/pgsql/lib conftest.c -lpq -lgd -lpng -lz -lz -lm 1>&5
> **************************************************************************
> ***
> Trying to run make, the command exits with these messages:
>
> Making all in .
> /bin/sh /usr/local/php/libtool --silent --mode=link cc -I.
> -I/usr/local/php/ -I/usr/local/php/main -I/usr/local/php
> -I/usr/local/apache/inm
> /usr/local/php/.libs/libphp4.lax/libZend.al
> /usr/local/php/.libs/libphp4.lax/libsapi.al
> /usr/local/php/.libs/libphp4.lax/libmain.al
> /usr/local/php/.libs/libphp4.lax/libregex.al
> /usr/local/php/.libs/libphp4.lax/libzlib.al
> /usr/local/php/.libs/libphp4.lax/libgd.al
> /usr/local/php/.libs/libphp4.lax/libmysql.al
> /usr/local/php/.libs/libphp4.lax/libpcre.al
> /usr/local/php/.libs/libphp4.lax/libpdf.al
> /usr/local/php/.libs/libphp4.lax/libpgsql.al
> /usr/local/php/.libs/libphp4.lax/libposix.al
> /usr/local/php/.libs/libphp4.lax/libsession.al
> /usr/local/php/.libs/libphp4.lax/libstandard.al
> /usr/local/php/.libs/libphp4.lax/libtsrm.al
> /usr/bin/ld: -undefined error must be used when -twolevel_namespace is
> in effect
> make[1]: *** [libphp4.la] Error 1
> make: *** [all-recursive] Error 1
> **************************************************************************
> ***
> Previously I have been able to compile everything without problems
> (except for the pdf support which was missing).
> An hint could come from the lines:
> checking for PostgreSQL support... yes
> ./configure: cd: no such file or directory: [41277]
>
> appearing among the ./configure output, but I can't understand which
> directory name is missing.
>
> Mario Fabretto
> via E. Fermi, 18
> 34070 Turriaco (GO)
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net
> For additional commands, e-mail: php-install-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>