#35409 [Opn->Bgs]: Several compile problems
| From: | sniper@php.net | Date: | Mon, 28 Nov 2005 14:14:05 +0000 |
| Subject: | #35409 [Opn->Bgs]: Several compile problems | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-89227@lists.php.net to get a copy of this message | ||
ID: 35409
Updated by: sniper@php.net
Reported By: sales at vivizi dot com
-Status: Open
+Status: Bogus
Bug Type: Compile Failure
Operating System: Linux (RH 7.x)
PHP Version: 5.1.0
New Comment:
--with-libdir is for 64bit systems where there might be different
directory than 'lib', where you'd use --with-libdir=lib64 for example.
--enable-versioning - If you don't know what it is meant for DO NOT USE
IT!
And try with clean sources. "make clean" might help too..
Previous Comments:
------------------------------------------------------------------------
[2005-11-28 15:11:43] sales at vivizi dot com
Wow, no reason to get picky!
--with-libdir=/usr/lib worked just fine with 5.0.5, I actually just
compiled it. No fatal errors.
When using 5.1.0, it does not work.
So don't blame ME for that.
--enable-versioning: I thought this would give more details on versions
being used. There is not a lot of docs available (on that), so don't
blame me on that... I've always used it and it has always worked fine!
when using
rm -f config.cache ; ./configure --disable-all --with-readline
I get:
sapi/cgi/.libs/cgi_main.o: In function `main':
/usr/src/redhat/BUILD/php-5.1.0/sapi/cgi/cgi_main.c:968: undefined
reference to `FCGX_IsCGI'
/usr/src/redhat/BUILD/php-5.1.0/sapi/cgi/cgi_main.c:1149: undefined
reference to `FCGX_OpenSocket'
/usr/src/redhat/BUILD/php-5.1.0/sapi/cgi/cgi_main.c:1152: undefined
reference to `FCGX_OpenSocket'
/usr/src/redhat/BUILD/php-5.1.0/sapi/cgi/cgi_main.c:1161: undefined
reference to `FCGX_IsCGI'
/usr/src/redhat/BUILD/php-5.1.0/sapi/cgi/cgi_main.c:1179: undefined
reference to `FCGX_Init'
/usr/src/redhat/BUILD/php-5.1.0/sapi/cgi/cgi_main.c:1180: undefined
reference to `FCGX_InitRequest'
/usr/src/redhat/BUILD/php-5.1.0/sapi/cgi/cgi_main.c:1288: undefined
reference to `FCGX_Accept_r'
/usr/src/redhat/BUILD/php-5.1.0/sapi/cgi/cgi_main.c:1501: undefined
reference to `FCGX_Finish_r'
/usr/src/redhat/BUILD/php-5.1.0/sapi/cgi/cgi_main.c:1640: undefined
reference to `FCGX_Finish_r'
/usr/src/redhat/BUILD/php-5.1.0/sapi/cgi/cgi_main.c:1671: undefined
reference to `__canary_death_handler'
sapi/cgi/.libs/cgi_main.o: In function `sapi_cgibin_single_write':
/usr/src/redhat/BUILD/php-5.1.0/sapi/cgi/cgi_main.c:231: undefined
reference to `FCGX_IsCGI'
/usr/src/redhat/BUILD/php-5.1.0/sapi/cgi/cgi_main.c:233: undefined
reference to `FCGX_PutStr'
/usr/src/redhat/BUILD/php-5.1.0/sapi/cgi/cgi_main.c:248: undefined
reference to `__canary_death_handler'
sapi/cgi/.libs/getopt.o: In function `php_opt_error':
/usr/src/redhat/BUILD/php-5.1.0/sapi/cgi/getopt.c:51: undefined
reference to `__canary_death_handler'
sapi/cgi/.libs/getopt.o: In function `php_getopt':
/usr/src/redhat/BUILD/php-5.1.0/sapi/cgi/getopt.c:154: undefined
reference to `__canary_death_handler'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1
------------------------------------------------------------------------
[2005-11-28 12:38:48] tony2001@php.net
There is no --with-libdir option in 5.0.
I bet you don't know what --enable-versioning does, why do you use it
then, huh?
Please try to configure --with-readline only and report this issue
separately, if you're able to reproduce it.
------------------------------------------------------------------------
[2005-11-28 12:33:12] sales at vivizi dot com
OK,
the problem here was the line:
--with-libdir=/usr/lib
(/usr also did not work).
I removed it and that seemed to work.
Then I ran into:
configure: error: --enable-versioning cannot be used with shared
modules
Removed that, then it worked.
Then, near the end, it gave me:
e -lncurses -laspell -lpspell -lpanel -lncurses -lmysqlclient -lm
-lcrypt -lpam -lfreetype -lpng -lz -ljpeg -lssl -lcrypto -lz -lssl
-lcrypto -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm -lxml2
-lz -lm -lcrypt -lxml2 -lz -lm -lcrypt -o sapi/cli/php
sapi/cli/.libs/php_cli_readline.o: In function `cli_code_completion':
sapi/cli/.libs/php_cli_readline.o(.text+0xab2): undefined reference to
`rl_completion_matches'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
So I removed --with-readline, and it worked...
However, these options worked just fine on 5.0.5, same box, _right now_
(read previous posts)
------------------------------------------------------------------------
[2005-11-28 00:41:07] sniper@php.net
Now just add those configure other options one by one..
------------------------------------------------------------------------
[2005-11-28 00:08:01] sales at vivizi dot com
That seems to work!
"Thank you for using PHP." (= success!)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/35409
--
Edit this bug report at http://bugs.php.net/?id=35409&edit=1