LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-11-2006, 06:55 PM   #1
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
problem compiling php5


I can't seem to compile php5 on my 10.2 system with a custom 2.6.13 kernel.

./configure --with-mysql --with-apxs=/usr/sbin/apxs --with-unixODBC --with-pgsql

seems to go just fine. After saying "No, thank YOU," I type make and the compile crashes right away with voluminous error messages of which I include the beginning and end below.

Any help would be really appreciated.

Thanks,
Brian

/usr/lib/gcc-lib/i486-slackware-linux/3.3.6/../../../crt1.o(.text+0x18): In func
tion `_start':
../sysdeps/i386/elf/start.S:115: undefined reference to `main'
ext/odbc/php_odbc.lo(.text+0x58): In function `_free_odbc_result':
/home/carey/Downloads/Programs/php/php-5.0.5/ext/odbc/php_odbc.c:176: undefined
reference to `_efree'
ext/odbc/php_odbc.lo(.text+0x95):/home/carey/Downloads/Programs/php/php-5.0.5/ex
t/odbc/php_odbc.c:174: undefined reference to `_efree'
ext/odbc/php_odbc.lo(.text+0xff): In function `_close_odbc_conn':
/home/carey/Downloads/Programs/php/php-5.0.5/ext/odbc/php_odbc.c:221: undefined
reference to `executor_globals'
ext/odbc/php_odbc.lo(.text+0x104):/home/carey/Downloads/Programs/php/php-5.0.5/e
xt/odbc/php_odbc.c:221: undefined reference to `zend_hash_next_free_element'
ext/odbc/php_odbc.lo(.text+0x129):/home/carey/Downloads/Programs/php/php-5.0.5/e
xt/odbc/php_odbc.c:223: undefined reference to `_zend_list_find'
ext/odbc/php_odbc.lo(.text+0x168):/home/carey/Downloads/Programs/php/php-5.0.5/e
xt/odbc/php_odbc.c:235: undefined reference to `_efree'
ext/odbc/php_odbc.lo(.text+0x18a):/home/carey/Downloads/Programs/php/php-5.0.5/e
xt/odbc/php_odbc.c:227: undefined reference to `_zend_list_delete'
ext/odbc/php_odbc.lo(.text+0x1af): In function `_close_odbc_pconn':
/home/carey/Downloads/Programs/php/php-5.0.5/ext/odbc/php_odbc.c:249: undefined
reference to `executor_globals'
ext/odbc/php_odbc.lo(.text+0x1b4):/home/carey/Downloads/Programs/php/php-5.0.5/e
xt/odbc/php_odbc.c:249: undefined reference to `zend_hash_next_free_element'
ext/odbc/php_odbc.lo(.text+0x1d9):/home/carey/Downloads/Programs/php/php-5.0.5/e
xt/odbc/php_odbc.c:251: undefined reference to `_zend_list_find'
ext/odbc/php_odbc.lo(.text+0x23a):/home/carey/Downloads/Programs/php/php-5.0.5/e
xt/odbc/php_odbc.c:255: undefined reference to `_zend_list_delete'
ext/odbc/php_odbc.lo(.text+0x4fb): In function `zm_startup_odbc':
/home/carey/Downloads/Programs/php/php-5.0.5/ext/odbc/php_odbc.c:423: undefined
reference to `zend_register_ini_entries'
ext/odbc/php_odbc.lo(.text+0x50d):/home/carey/Downloads/Programs/php/php-5.0.5/e
xt/odbc/php_odbc.c:424: undefined reference to `zend_register_list_destructors_e
x'

...

ext/standard/info.lo(.text+0x1f06): In function `zif_php_egg_logo_guid':
/home/carey/Downloads/Programs/php/php-5.0.5/ext/standard/info.c:1056: undefined
reference to `zend_wrong_param_count'
ext/standard/info.lo(.text+0x1f56): In function `zif_zend_logo_guid':
/home/carey/Downloads/Programs/php/php-5.0.5/ext/standard/info.c:1068: undefined
reference to `zend_wrong_param_count'
ext/standard/info.lo(.text+0x1fe7): In function `zif_php_sapi_name':
/home/carey/Downloads/Programs/php/php-5.0.5/ext/standard/info.c:1080: undefined
reference to `zend_wrong_param_count'
main/internal_functions_cli.lo(.text+0xe): In function `php_startup_internal_ext
ensions':
main/internal_functions_cli.c:74: undefined reference to `php_startup_extensions
'
main/internal_functions_cli.lo(.data+0x0): undefined reference to `xml_module_en
try'
main/internal_functions_cli.lo(.data+0x4): undefined reference to `tokenizer_mod
ule_entry'
main/internal_functions_cli.lo(.data+0x8): undefined reference to `basic_functio
ns_module'
main/internal_functions_cli.lo(.data+0xc): undefined reference to `sqlite_module
_entry'
main/internal_functions_cli.lo(.data+0x10): undefined reference to `spl_module_e
ntry'
main/internal_functions_cli.lo(.data+0x14): undefined reference to `simplexml_mo
dule_entry'
main/internal_functions_cli.lo(.data+0x18): undefined reference to `session_modu
le_entry'
main/internal_functions_cli.lo(.data+0x1c): undefined reference to `posix_module
_entry'
main/internal_functions_cli.lo(.data+0x20): undefined reference to `pgsql_module
_entry'
main/internal_functions_cli.lo(.data+0x24): undefined reference to `pcre_module_
entry'
main/internal_functions_cli.lo(.data+0x2c): undefined reference to `mysql_module
_entry'
main/internal_functions_cli.lo(.data+0x30): undefined reference to `iconv_module
_entry'
main/internal_functions_cli.lo(.data+0x34): undefined reference to `dom_module_e
ntry'
main/internal_functions_cli.lo(.data+0x38): undefined reference to `ctype_module
_entry'
main/internal_functions_cli.lo(.data+0x3c): undefined reference to `libxml_modul
e_entry'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
 
Old 01-12-2006, 12:37 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Sheesh! It seems you are missing a large part of PHP. The zend stuff and the types of error messages seem to indicate that there is a library / opject code file that the rest of PHP must link against that doesn't exist. Do you have an untainted PHP download?

I compile my PHP with much the same settings as yours on my FC3 2.6.14.3 based system and it works just fine. It also works on an older Rh9 2.4 kernel based system I have a t work.

The only thing I can guess is that somehow, your PHP download is not complete and there are files missing, specifically files relative to the zend engine, which is the core of PHP.
 
Old 01-12-2006, 01:07 AM   #3
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Original Poster
Rep: Reputation: Disabled
It's working now...used the sources from Slackware instead of from php and they compile just fine. Thanks...Brian
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling PHP5 on Intel EMT64 / SLES 9 tisource Linux - Software 3 01-02-2006 11:40 AM
Compiling PHP5 Terroth Linux - Newbie 2 06-27-2005 01:35 PM
PHP5 compiling problems Ephracis Linux - Software 10 02-10-2005 01:45 PM
Compiling PHP5 on FC2 imemyself Linux - Software 0 10-09-2004 06:20 PM
Error compiling PHP5 with MySQL Boby Linux - Software 3 09-10-2004 09:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration