[OpenIndiana-discuss] Compiling php...
John Doe
jdmls at yahoo.com
Wed Nov 14 17:05:19 UTC 2012
Hi,
I have to compile php and I ran into a few issues now solved, but others still present...
I did:
untar php 5.3.13 source
pkg install gnu-make gcc-43 flex bison autoconf library/icu developer/icu ...
export PATH=/usr/gcc/4.3/bin:$PATH
Is that normal that I have to manualy add packages binaries to the path?
Is it to be able to handle several versions?
(cd /usr/include/ && ln -s gmp/gmp.h gmp.h)
php is only looking in $PREFIX/include/gmp.h
1. I cannot pass configure without removing mysql support.
Where can I find a mysql "development" package?
I added sfe repo:
pkg set-publisher -p http://pkg.openindiana.org/sfe
pkg set-publisher -p http://pkg.openindiana.org/sfe-encumbered
but I cannot find anything that looks like it...
2. If I remove mysql support, it starts compiling but then:
/bin/sh /D/Sources/php.cgi/php-5.3.13/libtool --silent --preserve-dup-deps --mode=link gcc -DPHP_ATOM_INC -I/D/Sources/php.cgi/php-5.3.13/include -I/D/Sources/php.cgi/php-5.3.13/main -I/D/Sources/php.cgi/php-5.3.13 -I/D/Sources/php.cgi/php-5.3.13/ext/date/lib -I/D/Sources/php.cgi/php-5.3.13/ext/ereg/regex -I/usr/include/libxml2 -I/D/P/php.cgi-5.3.13/curl/include -I/D/Sources/php.cgi/php-5.3.13/ext/mbstring/oniguruma -I/D/Sources/php.cgi/php-5.3.13/ext/mbstring/libmbfl -I/D/Sources/php.cgi/php-5.3.13/ext/mbstring/libmbfl/mbfl -I/D/Sources/php.cgi/php-5.3.13/ext/sqlite3/libsqlite -I/usr/include/tidy -I/D/Sources/php.cgi/php-5.3.13/TSRM -I/D/Sources/php.cgi/php-5.3.13/Zend -D_POSIX_PTHREAD_SEMANTICS -I/usr/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gmp -fvisibility=hidden -o ext/openssl/openssl.la -export-dynamic -avoid-version -prefer-pic -module -rpath /D/Sources/php.cgi/php-5.3.13/modules ext/openssl/openssl.lo
ext/openssl/xp_ssl.lo -lcrypto -lssl -lcrypto
ld: fatal: relocation error: R_386_GOTOFF: file ext/openssl/.libs/openssl.o: symbol openssl_module_entry: a GOT relative relocation must reference a local symbol
collect2: ld returned 1 exit status
make: *** [ext/openssl/openssl.la] Error 1
Any idea what could generate this error?
Thx,
JD
More information about the OpenIndiana-discuss
mailing list