[PHP] php-compile error: No rule to make target
Hello everyone for learning to develope an own external php-extension i studied the following session under http://devzone.zend.com/article/1021-Extension-Writing-Part-I-Introduction-to-PHP-and-Zend and tried to develope my first extension as the examples from this site. i use Linux (openSuse 10.2) and have compiled php 5.2.3 and apache 2.2.4 successfully. after editing the first example of this site above (hello-world) i can run phpize and ./configure --enable-hello successfully too. but when i run make, i get an error message called: susi-note:/php-5.2.3/ext/hello # make make: *** No rule to make target `/php-5.2.3/ext/hello/hello.c', needed by `hello.lo'. Stop. i just covered all lines of that example in this site described above and changed nothing from that. i guess its usually so simple that the authors just think, it should be to compile on every system. so i wonder about my error result. has anybody an idea, what i can do to compile this example? my example is the following: under my php-source-directory i created a subfolder under the /ext/ directory called hello. in this directory i created the following files under my footer. than i started to typing phpsize, ./configure... and make from that directory as described in the site called above. thank you very much for any help! kind regards, h. huebel config.m4: PHP_ARG_ENABLE(hello, whether to enable Hello World support, [ --enable-hello Enable Hello World support]) if test $PHP_HELLO = yes; then AC_DEFINE(HAVE_HELLO, 1, [Whether you have Hello World]) PHP_NEW_EXTENSION(hello, hello.c, $ext_shared) fi ~ php_hello.h: #ifndef PHP_HELLO_H #define PHP_HELLO_H 1 #define PHP_HELLO_WORLD_VERSION 1.0 #define PHP_HELLO_WORLD_EXTNAME hello PHP_FUNCTION(hello_world); extern zend_module_entry hello_module_entry; #define phpext_hello_ptr hello_module_entry ~ #ifndef PHP_HELLO_H #define PHP_HELLO_H 1 #define PHP_HELLO_WORLD_VERSION 1.0 #define PHP_HELLO_WORLD_EXTNAME hello PHP_FUNCTION(hello_world); extern zend_module_entry hello_module_entry; #define phpext_hello_ptr hello_module_entry #endifsusi-note:/home/hagen/download/php-5.2.3/ext/hello # cat php_hello.c #ifdef HAVE_CONFIG_H #include config.h #endif #include php.h #include php_hello.h static function_entry hello_functions[] = { PHP_FE(hello_world, NULL) {NULL, NULL, NULL} }; zend_module_entry hello_module_entry = { #if ZEND_MODULE_API_NO = 20010901 STANDARD_MODULE_HEADER, #endif PHP_HELLO_WORLD_EXTNAME, hello_functions, NULL, NULL, NULL, NULL, NULL, #if ZEND_MODULE_API_NO = 20010901 PHP_HELLO_WORLD_VERSION, #endif STANDARD_MODULE_PROPERTIES }; #ifdef COMPILE_DL_HELLO ZEND_GET_MODULE(hello) #endif PHP_FUNCTION(hello_world) { RETURN_STRING(Hello World, 1); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php-compile error: No rule to make target
On 6/9/07, H. Hübel [EMAIL PROTECTED] wrote: Hello everyone for learning to develope an own external php-extension i studied the following session under http://devzone.zend.com/article/1021-Extension-Writing-Part-I-Introduction-to-PHP-and-Zend and tried to develope my first extension as the examples from this site. i use Linux (openSuse 10.2) and have compiled php 5.2.3 and apache 2.2.4 successfully. after editing the first example of this site above (hello-world) i can run phpize and ./configure --enable-hello successfully too. but when i run make, i get an error message called: susi-note:/php-5.2.3/ext/hello # make make: *** No rule to make target `/php-5.2.3/ext/hello/hello.c', needed by `hello.lo'. Stop. i just covered all lines of that example in this site described above and changed nothing from that. i guess its usually so simple that the authors just think, it should be to compile on every system. so i wonder about my error result. has anybody an idea, what i can do to compile this example? my example is the following: under my php-source-directory i created a subfolder under the /ext/ directory called hello. in this directory i created the following files under my footer. than i started to typing phpsize, ./configure... and make from that directory as described in the site called above. thank you very much for any help! kind regards, h. huebel config.m4: PHP_ARG_ENABLE(hello, whether to enable Hello World support, [ --enable-hello Enable Hello World support]) if test $PHP_HELLO = yes; then AC_DEFINE(HAVE_HELLO, 1, [Whether you have Hello World]) PHP_NEW_EXTENSION(hello, hello.c, $ext_shared) fi ~ php_hello.h: #ifndef PHP_HELLO_H #define PHP_HELLO_H 1 #define PHP_HELLO_WORLD_VERSION 1.0 #define PHP_HELLO_WORLD_EXTNAME hello PHP_FUNCTION(hello_world); extern zend_module_entry hello_module_entry; #define phpext_hello_ptr hello_module_entry ~ #ifndef PHP_HELLO_H #define PHP_HELLO_H 1 #define PHP_HELLO_WORLD_VERSION 1.0 #define PHP_HELLO_WORLD_EXTNAME hello PHP_FUNCTION(hello_world); extern zend_module_entry hello_module_entry; #define phpext_hello_ptr hello_module_entry #endifsusi-note:/home/hagen/download/php-5.2.3/ext/hello # cat php_hello.c #ifdef HAVE_CONFIG_H #include config.h #endif #include php.h #include php_hello.h static function_entry hello_functions[] = { PHP_FE(hello_world, NULL) {NULL, NULL, NULL} }; zend_module_entry hello_module_entry = { #if ZEND_MODULE_API_NO = 20010901 STANDARD_MODULE_HEADER, #endif PHP_HELLO_WORLD_EXTNAME, hello_functions, NULL, NULL, NULL, NULL, NULL, #if ZEND_MODULE_API_NO = 20010901 PHP_HELLO_WORLD_VERSION, #endif STANDARD_MODULE_PROPERTIES }; #ifdef COMPILE_DL_HELLO ZEND_GET_MODULE(hello) #endif PHP_FUNCTION(hello_world) { RETURN_STRING(Hello World, 1); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php That's a bit out of the scope of this list, but a simple fix anyway. Change config.m4: PHP_NEW_EXTENSION(hello, hello.c, $ext_shared) to PHP_NEW_EXTENSION(hello, php_hello.c, $ext_shared) -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php-compile error: No rule to make target
Hi Daniel That's a bit out of the scope of this list, but a simple fix anyway. Change config.m4: PHP_NEW_EXTENSION(hello, hello.c, $ext_shared) to PHP_NEW_EXTENSION(hello, php_hello.c, $ext_shared) Thank you very much! You made my day :) it was the wrong filename in the m4-file. I will write this error to zend.com that they can improve their lesson. have a nice day kind regards, jdelmour -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php compile error with mysql undefined reference to `mysql_real_escape_string'
Hi all! I'm installing php4.3.3, apache 1.3.28 with mysql3.22.32 I'm using this option --with-mysql=/usr/local/mysql But when I compile the php code, I get this error: ext/mysql/php_mysql.o: In function `zif_mysql_client_encoding': /root/fuente/archivos/php-4.3.3/ext/mysql/php_mysql.c:1118: undefined reference to `mysql_character_set_name' ext/mysql/php_mysql.o: In function `zif_mysql_real_escape_string': /root/fuente/archivos/php-4.3.3/ext/mysql/php_mysql.c:1705: undefined reference to `mysql_real_escape_string' collect2: ld returned 1 exit status To solve it..I try the option --disable-cli on ./configure, and all ok. But now I have the same problem (/php-4.3.3/ext/mysql/php_mysql.c:1118: undefined reference to `mysql_character_set_name') when I try to compile the apache... Please!!! Does anybody know how to solve it? Thanks in advance!! __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: php compile error with mysql undefined reference to `mysql_real_escape_string'
You really should be subscribing to the php.install list when asking questions of this type. But it sounds like you need to first install mysql, then install apache, then install php. In that order and you should be ok. When in doubt read the manuals for each application for further information on the different options available for your ./configure. HTH Jas Ivone Uribe wrote: Hi all! I'm installing php4.3.3, apache 1.3.28 with mysql3.22.32 I'm using this option --with-mysql=/usr/local/mysql But when I compile the php code, I get this error: ext/mysql/php_mysql.o: In function `zif_mysql_client_encoding': /root/fuente/archivos/php-4.3.3/ext/mysql/php_mysql.c:1118: undefined reference to `mysql_character_set_name' ext/mysql/php_mysql.o: In function `zif_mysql_real_escape_string': /root/fuente/archivos/php-4.3.3/ext/mysql/php_mysql.c:1705: undefined reference to `mysql_real_escape_string' collect2: ld returned 1 exit status To solve it..I try the option --disable-cli on ./configure, and all ok. But now I have the same problem (/php-4.3.3/ext/mysql/php_mysql.c:1118: undefined reference to `mysql_character_set_name') when I try to compile the apache... Please!!! Does anybody know how to solve it? Thanks in advance!! __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php compile error with mysql undefined reference to `mysql_real_escape_string'
Hi all! I'm installing php4.3.3, apache 1.3.28 with mysql3.22.32 I'm using this option --with-mysql=/usr/local/mysql But when I compile the php code, I get this error: ext/mysql/php_mysql.o: In function `zif_mysql_client_encoding': /root/fuente/archivos/php-4.3.3/ext/mysql/php_mysql.c:1118: undefined reference to `mysql_character_set_name' ext/mysql/php_mysql.o: In function `zif_mysql_real_escape_string': /root/fuente/archivos/php-4.3.3/ext/mysql/php_mysql.c:1705: undefined reference to `mysql_real_escape_string' collect2: ld returned 1 exit status To solve it..I try the option --disable-cli on ./configure, and all ok. But now I have the same problem (/php-4.3.3/ext/mysql/php_mysql.c:1118: undefined reference to `mysql_character_set_name') when I try to compile the apache... Please!!! Does anybody know how to solve it? Thanks in advance!! __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] cURL PHP compile error
Trying to setup PHP with cURL support... I run this configure command: ./configure --with-mysql --with-apxs --with-openssl=/usr/local/ssl --with-curl --with-mcrypt --enable-sockets and receive this error: /usr/local/lib/libcurl.so: undefined reference to `UI_OpenSSL' Help!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Compile Error
Running Redhat 8.0 PHP 4.3.0 When I try to configure with the following: ./configure --with-apxs=/web_root/bin/apxs --enable-track-vars --enable-versioning --with-mysql=/usr/mysql --with-gd=/usr/local --with-jpeg-dir=/usr/local/bin/ --with-png-dir=/usr/lib --with-zlib-dir=/usr/lib --with-zlib --enable-xslt --enable-cli --disable-debug --with-xslt-sablot I get the following error: ... configure: error: libjpeg.(a|so) not found. Any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Compile Error
Hi, On Friday 31 January 2003 01:10, Robert Fitzpatrick wrote: Running Redhat 8.0 PHP 4.3.0 When I try to configure with the following: ./configure --with-apxs=/web_root/bin/apxs --enable-track-vars --enable-versioning --with-mysql=/usr/mysql --with-gd=/usr/local Are you sure you told the correct path: --with-jpeg-dir=/usr/local/bin/ Try just /usr/local --with-png-dir=/usr/lib --with-zlib-dir=/usr/lib --with-zlib --enable-xslt --enable-cli --disable-debug --with-xslt-sablot johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] compile error
I'm trying to compile PHP 4.2.2. I am running Apache 2.0.40 (yes I know support is experimental). I am compiling on Redhat 7.3 Linux 2.4.18. I did my PHP configure line: ./configure --enable-track-vars --with-mysql --with-mail --with-apxs2=/usr/local/apache2/bin/apxs and then I do a make, and it errors out with: make[3]: Entering directory `/root/php-4.2.2/sapi/apache2filter' /bin/sh /root/php-4.2.2/libtool --silent --mode=compile gcc -I. -I/root/php-4.2.2/sapi/apache2filter -I/root/php-4.2.2/main -I/root/php-4.2.2 -I/usr/local/apache2/include -I/root/php-4.2.2/Zend -I/root/php-4.2.2/ext/mysql/libmysql -I/root/php-4.2.2/ext/xml/expat -D_REENTRANT -I/root/php-4.2.2/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic -c sapi_apache2.c sapi_apache2.c: In function `php_register_hook': sapi_apache2.c:534: warning: passing arg 3 of `ap_register_output_filter' makes pointer from integer without a cast sapi_apache2.c:534: too few arguments to function `ap_register_output_filter' sapi_apache2.c:535: warning: passing arg 3 of `ap_register_input_filter' makes pointer from integer without a cast sapi_apache2.c:535: too few arguments to function `ap_register_input_filter' make[3]: *** [sapi_apache2.lo] Error 1 make[3]: Leaving directory `/root/php-4.2.2/sapi/apache2filter' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/php-4.2.2/sapi/apache2filter' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/php-4.2.2/sapi' make: *** [all-recursive] Error 1 Has anyone else had similar errors and found a solution? Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] compile error
You need current PHP CVS to work with Apache 2.0.40. See snaps.php.net On Mon, 19 Aug 2002, Adam Williams wrote: I'm trying to compile PHP 4.2.2. I am running Apache 2.0.40 (yes I know support is experimental). I am compiling on Redhat 7.3 Linux 2.4.18. I did my PHP configure line: ./configure --enable-track-vars --with-mysql --with-mail --with-apxs2=/usr/local/apache2/bin/apxs and then I do a make, and it errors out with: make[3]: Entering directory `/root/php-4.2.2/sapi/apache2filter' /bin/sh /root/php-4.2.2/libtool --silent --mode=compile gcc -I. -I/root/php-4.2.2/sapi/apache2filter -I/root/php-4.2.2/main -I/root/php-4.2.2 -I/usr/local/apache2/include -I/root/php-4.2.2/Zend -I/root/php-4.2.2/ext/mysql/libmysql -I/root/php-4.2.2/ext/xml/expat -D_REENTRANT -I/root/php-4.2.2/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic -c sapi_apache2.c sapi_apache2.c: In function `php_register_hook': sapi_apache2.c:534: warning: passing arg 3 of `ap_register_output_filter' makes pointer from integer without a cast sapi_apache2.c:534: too few arguments to function `ap_register_output_filter' sapi_apache2.c:535: warning: passing arg 3 of `ap_register_input_filter' makes pointer from integer without a cast sapi_apache2.c:535: too few arguments to function `ap_register_input_filter' make[3]: *** [sapi_apache2.lo] Error 1 make[3]: Leaving directory `/root/php-4.2.2/sapi/apache2filter' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/php-4.2.2/sapi/apache2filter' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/php-4.2.2/sapi' make: *** [all-recursive] Error 1 Has anyone else had similar errors and found a solution? Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Compile error.
Using the 4.2.1 source available from the main downloads page, I'm getting: php_functions.c:93:27: missing binary operator before '!' Peculiar to me, or known problem? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Compile error.
Using the 4.2.1 source available from the main downloads page, I'm getting: php_functions.c:93:27: missing binary operator before '!' You get an error when you do what? Unzip the source, compile it, run it, load a .php page, crap your pants??? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Compile error.
On Mon, 24 Jun 2002, John Holmes wrote: Using the 4.2.1 source available from the main downloads page, I'm getting: php_functions.c:93:27: missing binary operator before '!' You get an error when you do what? Unzip the source, compile it, run it, load a .php page, crap your pants??? I would have though compile it would be obvious from the fact thats a gcc error. I guess I thought wrong. The compile is for apache 2 btw. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] compile error
Hello, I am looking through the documentation and archives and have been unable to find anything about my problem, which is: Installing php-4.0.6 on alpha OSF1 v5.1 CONFIG LINE: ./configure --with-apache=../apache_1.3.22 --with-imap=/usr/local/src/imap-4.7 --with-mysql=/usr/local/mysql --with-gd=/usr/local/src/gd-1.8.4 --with-mm=/usr/local/src/mm ERROR: cc: Error: scanf.h, line 48: There is no definition for the inline function named scan_set_error_return in this compilation unit. (noinlfunc) inline void scan_set_error_return(int numVars,pval **return_value); ^ I cannot find any references to this type of error, so any help or ideas are greatly appreciated. I can also send out my config.log file to anyone if they want. Thanks in advance, thomas holton .. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP compile error with LDAP
i, i'm sorry if this has been discussed in the list... but i have searched the entire list's archive but i have not found no solution/hint for the problem. I have PHP compiled with imap support. I works just fine. I have recompiled PHP to add ldap support. The configure and make runs fine, but when i start apache, i get this error: Syntax error on line 205 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: undefined symbol: ldap_value_free /usr/local/apache/bin/apachectl start: httpd could not be started I have also run a ldd on /usr/local/apache/libexec/libphp4.so and i get this output. libpam.so.0 = /lib/libpam.so.0 (0x401e3000) libdl.so.2 = /lib/libdl.so.2 (0x401eb000) libresolv.so.2 = /lib/libresolv.so.2 (0x401ee000) libm.so.6 = /lib/libm.so.6 (0x4020) libcrypt.so.1 = /lib/libcrypt.so.1 (0x4022) libnsl.so.1 = /lib/libnsl.so.1 (0x4024d000) libc.so.6 = /lib/libc.so.6 (0x40264000) /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x8000) My /etc/ld.so.conf /usr/X11R6/lib /usr/kerberos/lib /usr/lib /usr/lib/qt-2.2.0/lib /usr/local/lib /lib Thank's Miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] compile error
I am having trouble installing php4. When I try to compile, it stops with the following error: In file included from /usr/src/php4/ext/standard/fsock.h:43, from /usr/src/php4/ext/standard/php_standard.h:43, from main.c:52: /usr/include/sys/socket.h:48: conflicting types for `socklen_t' php.h:115: previous declaration of `socklen_t' *** Error code 1 Stop. This is on a machine that has been recently upgraded to FreeBSD 3.0-stable. Can anyone advise how to fix this error? Thank you, Doug -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Compile error w/ libextra.a (ranlib)
that this was merely the somewhat out of date and rarely seen _PHP2_ (phew, I guess...). So I need to get hosting support for this site up ASAP. I will need support for both PHP2 and PHP4 (which I will be converting the code to) and both msql and mysql (again, converting from the former to the latter). Seeing as Unless I am grossly mistaken, the PHP/FI (aka PHP2) code simply wasn't capable of doing that --enable-versioning thing that lets two PHP Modules co-exist happily. So you are *not* going to successfully get both installed in one httpd binary as Modules. You've got a couple options: 1. Install a whole 'nother httpd on a different port from 80 (say, 81) and make that the new one with SSL, PHP4, MySQL etc. and port page by page until you're all done. Then a quick presto-chango, and you can swap out that dinosaur. 2. Deprecate PHP2 to use CGI install with a different extension (.phtml or .php2 or .phpfi or...) and have only PHP4 as a Module. (Or, vice versa -- PHP2 as module, PHP4 as CGI). Oh yeah -- msql to mysql conversion is probably going to be a breeze. Global search and replace and test the page. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Compile error in php4.04pl1 with apache
Hi ! I've been trying to compile apache with php4.04pl1 as a static module into apache 1.3.17. configure, make and make install works fine with php. When I get to apache configure works but when trying to run make I get an error. configure is run with: ./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/li bphp4.a If I exclude --activate-module the make and make installs succeed. I also tried to use php4.03pl1 instead, which works fine. With php4.04pl1 on apache 1.3.14 I get the same result. The error I get is the following: gcc -c -I./os/unix -I./include -DLINUX=22 -I/home/eric/src/php-4.0.4pl1 - I/home/eric/src/php-4.0.4pl1/main -I/home/eric/src/php-4.0.4pl1/main -I/home /eric/src/php-4.0.4pl1/Zend -I/home/eric/src/php-4.0.4pl1/Zend -I/home/eric/ src/php-4.0.4pl1/TSRM -I/home/eric/src/php-4.0.4pl1/TSRM -I/home/eric/src/ph p-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` modules.c gcc -c -I./os/unix -I./include -DLINUX=22 -I/home/eric/src/php-4.0.4pl1 - I/home/eric/src/php-4.0.4pl1/main -I/home/eric/src/php-4.0.4pl1/main -I/home /eric/src/php-4.0.4pl1/Zend -I/home/eric/src/php-4.0.4pl1/Zend -I/home/eric/ src/php-4.0.4pl1/TSRM -I/home/eric/src/php-4.0.4pl1/TSRM -I/home/eric/src/ph p-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` buildmark.c gcc -DLINUX=22 -I/home/eric/src/php-4.0.4pl1 -I/home/eric/src/php-4.0.4pl1/ main -I/home/eric/src/php-4.0.4pl1/main -I/home/eric/src/php-4.0.4pl1/Zend - I/home/eric/src/php-4.0.4pl1/Zend -I/home/eric/src/php-4.0.4pl1/TSRM -I/home /eric/src/php-4.0.4pl1/TSRM -I/home/eric/src/php-4.0.4pl1 -DUSE_EXPAT -I./li b/expat-lite -DNO_DL_NEEDED `./apaci`\ -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a lib/expat-lite/libexpat.a -Wl,-rpath,/usr/local/mysql//lib -rdynamic -L/us r/local/mysql//lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lm odphp4 -lpam -ldl -lmysqlclient -lresolv -lm -ldl -lcrypt -lnsl -lresolv -lm -lcrypt /usr/local/mysql//lib/libmysqlclient.a(my_compress.o): In function `my_uncompress': my_compress.o(.text+0x97): undefined reference to `uncompress' /usr/local/mysql//lib/libmysqlclient.a(my_compress.o): In function `my_compress_alloc': my_compress.o(.text+0x12b): undefined reference to `compress' collect2: ld returned 1 exit status make[2]: *** [target_static] Error 1 make[2]: Leaving directory `/home/eric/src/apache_1.3.17/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/home/eric/src/apache_1.3.17' make: *** [build] Error 2 I guessed there was some problems with the mysqlpart in php, and maybe that the mysql version was wrong or something, but I tried several different versions of mysql. I must be something funny with php4.04pl1 or something else? Any help or suggestions would be appreciated! Best regards, Eric -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Compile error w/ libextra.a (ranlib)
Hello, I am attempting to take over development and maintenance of a very neglected website (and with your donation of only 50 per day...). The site contained code which was originally thought to be some proprietary, modified version of PHP (which really pissed me off!)... but eventually it was discovered that this was merely the somewhat out of date and rarely seen _PHP2_ (phew, I guess...). So I need to get hosting support for this site up ASAP. I will need support for both PHP2 and PHP4 (which I will be converting the code to) and both msql and mysql (again, converting from the former to the latter). Seeing as how there are several hundred pages on the site, in various states of decay and coded by various individuals, batch replacements and regular expressions will not readily handle the conversion, thus necessitating the PHP2 and msql. I have one and only one server available for this site (including for my conversion development), thus necessitating the PHP4 and mysql. So I'm trying to compile apache w/ the following command (oh, did I mention I'm adding SSL too?): [root@machine apache_1.3.14]# SSL_BASE=../openssl-0.9.6 RSA_BASE=/rsaref-2.0/local ./configure --enable-module=ssl --activate-module=src/modules/php4/libphp4.a --enable-module=php4 --activate-module=src/modules/extra/libphp.a --enable-module=php --prefix=/usr/local/apache --enable-shared=ssl ... configuration output... blah blah blah ... [root@machine apache_1.3.14]# make it goes through several directories compiling successfully, including /modules/php4 and modules/extra (which is where PHP2 is). Then I get the following error: gcc -c -I./os/unix -I./include -DLINUX=2 -DMOD_SSL=207101 -I/usr/local/source/php-4.0.3pl1 -I/usr/local/source/php-4.0.3pl1/main -I/usr/local/source/php-4.0.3pl1/main -I/usr/local/source/php-4.0.3pl1/Zend -I/usr/local/source/php-4.0.3pl1/Zend -I/usr/local/source/php-4.0.3pl1/TSRM -I/usr/local/source/php-4.0.3pl1/TSRM -I/usr/local/source/php-4.0.3pl1 -DEAPI -DUSE_EXPAT -I./lib/expat-lite `./apaci` buildmark.c gcc -DLINUX=2 -DMOD_SSL=207101 -I/usr/local/source/php-4.0.3pl1 -I/usr/local/source/php-4.0.3pl1/main -I/usr/local/source/php-4.0.3pl1/main -I/usr/local/source/php-4.0.3pl1/Zend -I/usr/local/source/php-4.0.3pl1/Zend -I/usr/local/source/php-4.0.3pl1/TSRM -I/usr/local/source/php-4.0.3pl1/TSRM -I/usr/local/source/php-4.0.3pl1 -DEAPI -DUSE_EXPAT -I./lib/expat-lite `./apaci` -rdynamic \ -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/php4/libphp4.a modules/extra/libextra.a main/libmain.a ./os/unix/libos.a ap/libap.a lib/expat-lite/libexpat.a -Wl,-rpath,/usr/local/Hughes/lib -Wl,-rpath,/usr/local/mysql/lib/mysql -rdynamic -L/usr/local/Hughes/lib -L/usr/local/mysql/lib/mysql -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lpam - ldl -lmysqlclient -lz -lmsql -lgd -lresolv -lm -ldl -lcrypt -lnsl -lresolv -lm -lcrypt -ldl modules/extra/libextra.a: could not read symbols: Archive has no index; run ranlib to add one collect2: ld returned 1 exit status make[2]: *** [target_static] Error 1 make[2]: Leaving directory `/usr/local/source/apache_1.3.14/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/usr/local/source/apache_1.3.14' make: *** [build] Error 2 [root@machine apache_1.3.14]# Now, I've searched the archives and found references to the "modules/extra/libextra.a: could not read symbols: Archive has no index; run ranlib to add one" error... but no solution. The one exception was someone who was screwing up because they were trying to use libextra.a as part of a PHP3 install, not a PHP2 install. Duh. Unfortunately that's not the case here. Any assistance would be appreciated, and yes, I have tried the obvious: ranlib /path/to/modules/extra/libextra.a FWIW, this is ranlib version "GNU ranlib 2.9.5" Any assistance appreciated, TIA... -- Doug Taylor Lead Web Developer Enabled Sites 331 Soquel Ave, Suite 205 Santa Cruz, CA 95062