I'm trying to build apache-php under sparc-solaris 2.7.  It works
fine until I include --with-ldap=... in the path.  When I do
that I get a pile of complaints about ldap.c and undefined reference
when I try to do a make for apache.

This is the php configure command:
./configure
--with-apache=/import/src/www/sparc2/apache/apache_1.3.26/
--with-mysql=/import/src/www/sparc/mysql/mysql-3.22.32/
--with-imap-ssl=/import/src/www/sparc/imap/imap-2002.RC5/
--with-ldap=/import/src/www/sparc2/ldap/openldap-2.0.25/

(it makes, installs cleanly)

This is the apache configure command.

./configure "--with-layout=Apache" "--prefix=/opt/local/apache/"
"--enable-module=rewrite"
"--enable-module=mime_magic" "--enable-module=env" "--enable-module=proxy"
"--activate-module=src/modules/php4/libphp4.a" 

the final error in the make is below.

Here are the technical details:
php 4.2.3
apache 1.3.26
Sparc Solaris 2.7

This is the error in the apache make.  Thanks for any advice.

gcc  -DSOLARIS2=270 -I/import/src/www/sparc2/php/php-4.2.3 
-I/import/src/www/sparc2/php/php-4.2.3/main 
-I/import/src/www/sparc2/php/php-4.2.3/main 
-I/import/src/www/sparc2/php/php-4.2.3/Zend 
-I/import/src/www/sparc2/php/php-4.2.3/Zend 
-I/import/src/www/sparc2/php/php-4.2.3/TSRM 
-I/import/src/www/sparc2/php/php-4.2.3/TSRM -I/import/src/www/sparc2/php/php-4.2.3 
-DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`    \
      -o httpd buildmark.o modules.o modules/proxy/libproxy.a modules/php4/libphp4.a 
modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a ap/libap.a  
lib/expat-lite/libexpat.a  -R/usr/ucblib 
-R/opt/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2 
-R/import/src/www/sparc/mysql/mysql-3.22.32//lib  -L/usr/ucblib 
-L/opt/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2 
-L/import/src/www/sparc/mysql/mysql-3.22.32//lib -Lmodules/php4 -L../modules/php4 
-L../../modules/php4 -lmodphp4  -lpam  -lmysqlclient -lcrypt -lresolv -lresolv -lm 
-ldl -lsocket  -lsocket -lgcc -lcrypt   -lsocket -lnsl -lpthread
modules/php4/libphp4.a(ldap.o): In function `_close_ldap_link':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:161: undefined reference to 
`ldap_unbind_s'
modules/php4/libphp4.a(ldap.o): In function `_free_ldap_result':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:176: undefined reference to 
`ldap_msgfree'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_connect':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:405: undefined reference to 
`ldap_initialize'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:407: undefined reference to 
`ldap_err2string'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:411: undefined reference to 
`ldap_init'
modules/php4/libphp4.a(ldap.o): In function `_get_lderrno':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:445: undefined reference to 
`ldap_get_option'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_bind':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:495: undefined reference to 
`ldap_bind_s'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:496: undefined reference to 
`ldap_err2string'
modules/php4/libphp4.a(ldap.o): In function `php_set_opts':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:529: undefined reference to 
`ldap_set_option'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:538: undefined reference to 
`ldap_set_option'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:547: undefined reference to 
`ldap_set_option'
modules/php4/libphp4.a(ldap.o): In function `php_ldap_do_search':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:714: undefined reference to 
`ldap_search'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:733: undefined reference to 
`ldap_result'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:763: undefined reference to 
`ldap_search_s'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:778: undefined reference to 
`ldap_err2string'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_count_entries':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:852: undefined reference to 
`ldap_count_entries'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_first_entry':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:871: undefined reference to 
`ldap_first_entry'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_next_entry':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:894: undefined reference to 
`ldap_next_entry'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_get_entries':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:926: undefined reference to 
`ldap_count_entries'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:934: undefined reference to 
`ldap_first_entry'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:943: undefined reference to 
`ldap_first_attribute'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:946: undefined reference to 
`ldap_get_values'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:947: undefined reference to 
`ldap_count_values'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:955: undefined reference to 
`ldap_value_free'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:963: undefined reference to 
`ldap_memfree'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:965: undefined reference to 
`ldap_next_attribute'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:969: undefined reference to 
`ber_free'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:973: undefined reference to 
`ldap_get_dn'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:976: undefined reference to 
`ldap_memfree'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:984: undefined reference to 
`ldap_next_entry'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_first_attribute':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1009: undefined reference to 
`ldap_first_attribute'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1016: undefined reference to 
`ldap_memfree'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_next_attribute':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1040: undefined reference to 
`ldap_next_attribute'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1047: undefined reference to 
`ldap_memfree'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_get_attributes':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1076: undefined reference to 
`ldap_first_attribute'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1078: undefined reference to 
`ldap_get_values'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1079: undefined reference to 
`ldap_count_values'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1087: undefined reference to 
`ldap_value_free'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1094: undefined reference to 
`ldap_memfree'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1096: undefined reference to 
`ldap_next_attribute'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1100: undefined reference to 
`ber_free'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_get_values':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1128: undefined reference to 
`ldap_get_values'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1129: undefined reference to 
`ldap_err2string'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1133: undefined reference to 
`ldap_count_values'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1144: undefined reference to 
`ldap_value_free'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_get_values_len':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1170: undefined reference to 
`ldap_get_values_len'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1171: undefined reference to 
`ldap_err2string'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1175: undefined reference to 
`ldap_count_values_len'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1186: undefined reference to 
`ldap_value_free_len'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_get_dn':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1207: undefined reference to 
`ldap_get_dn'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1211: undefined reference to 
`ldap_memfree'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_explode_dn':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1236: undefined reference to 
`ldap_explode_dn'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1251: undefined reference to 
`ldap_value_free'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_dn2ufn':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1268: undefined reference to 
`ldap_dn2ufn'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1273: undefined reference to 
`ldap_memfree'
modules/php4/libphp4.a(ldap.o): In function `php_ldap_do_modify':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1380: undefined reference to 
`ldap_add_s'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1381: undefined reference to 
`ldap_perror'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1386: undefined reference to 
`ldap_modify_s'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_delete':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1460: undefined reference to 
`ldap_delete_s'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1461: undefined reference to 
`ldap_perror'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_err2str':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1497: undefined reference to 
`ldap_err2string'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_error':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1517: undefined reference to 
`ldap_err2string'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_compare':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1544: undefined reference to 
`ldap_compare_s'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1556: undefined reference to 
`ldap_err2string'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_sort':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1583: undefined reference to 
`ldap_sort_entries'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1584: undefined reference to 
`ldap_err2string'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_get_option':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1623: undefined reference to 
`ldap_get_option'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1637: undefined reference to 
`ldap_get_option'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1642: undefined reference to 
`ldap_memfree'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_set_option':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1695: undefined reference to 
`ldap_set_option'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1776: undefined reference to 
`ldap_set_option'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_parse_result':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1813: undefined reference to 
`ldap_parse_result'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1820: undefined reference to 
`ldap_err2string'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1833: undefined reference to 
`ldap_value_free'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1834: undefined reference to 
`ldap_memfree'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1835: undefined reference to 
`ldap_memfree'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1844: undefined reference to 
`ldap_value_free'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1852: undefined reference to 
`ldap_memfree'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1860: undefined reference to 
`ldap_memfree'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_first_reference':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1883: undefined reference to 
`ldap_first_reference'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_next_reference':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1906: undefined reference to 
`ldap_next_reference'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_rename':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:1977: undefined reference to 
`ldap_rename_s'
modules/php4/libphp4.a(ldap.o): In function `zif_ldap_start_tls':
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:2009: undefined reference to 
`ldap_start_tls_s'
/import/src/www/sparc2/php/php-4.2.3/ext/ldap/ldap.c:2010: undefined reference to 
`ldap_err2string'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/import/src/www/sparc2/apache/apache_1.3.26/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/import/src/www/sparc2/apache/apache_1.3.26'
make: *** [build] Error 2




-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to