Hi,

I get crazy in trying to compiling php-4.2.3 on openbsd 3.1.
I configure php with the following option : --with-apxs=/usr/sbin/apxs --with-imap-ssl=/usr/local/lib/sasl --with-kerberos=/usr/libexec --with-ldap --with-gd --with-gettext=/usr/local/bin/gettext --enable-safe-mode --with-config-file-path=/var/www/conf --enable-magic-quotes --with-regex=system --with-ttf --with-db --with-gdbm --with-mbstring --with-mbstr-enc-trans --enable-track-vars --enable-wddx=shared --enable-mm=shared --enable-xml --enable-ftp --disable-debug --with-imap --with-curl=shared --enable-session --enable-trans-sid --with-posix --enable-sockets --with-openssl --with-zlib --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/local/lib --with-zlib-dir=/usr/lib --with-tiff-dir=/usr/local/lib --with-mysql

and it works fine. But when i try [make] command, it crashs with the following error :

/bin/sh /tmp/php-4.2.3/libtool --silent --mode=compile gcc -I. -I/tmp/php-4.2.3/ext/mysql/libmysql -I/tmp/php-4.2.3/main -I/tmp/php-4.2.3 -I/usr/lib/apache/include -I/tmp/php-4.2.3/Zend -I/usr/local/include -I/usr/local/include/freetype -I/usr/local/include/c-client -I/tmp/php-4.2.3/ext/mysql/libmysql -I/tmp/php-4.2.3/ext/xml/expat -DDEV_RANDOM=/dev/arandom -DMOD_SSL=208108 -DEAPI -DUSE_EXPAT -I/tmp/php-4.2.3/TSRM -g -O2 -prefer-pic -c my_getwd.c
my_getwd.c:62: #error "No way to get current directory"
*** Error code 1

Stop in /tmp/php-4.2.3/ext/mysql/libmysql.
*** Error code 1

Stop in /tmp/php-4.2.3/ext/mysql/libmysql (line 37 of /tmp/php-4.2.3/build/rules.mk).
*** Error code 1

Stop in /tmp/php-4.2.3/ext/mysql (line 37 of /tmp/php-4.2.3/build/rules.mk).
*** Error code 1

Stop in /root/php-4.2.3/ext (line 37 of /tmp/php-4.2.3/build/rules.mk).
*** Error code 1

Stop in /tmp/php-4.2.3 (line 37 of /tmp/php-4.2.3/build/rules.mk).

I got the same error when i dont insert --with-mysql as configure option. I have a working apache 1.3.24 (openbsd style) and mysql server (openbsd style).

Does someone know how to resolve this ? Or understand where is the problem ??

Thank for your help :-)

    Write a Reply...