php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48741 Compilation error
Submitted: 2009-06-30 15:25 UTC Modified: 2009-06-30 19:39 UTC
From: admin at phpcode dot us Assigned:
Status: Not a bug Package: *Compile Issues
PHP Version: 5.3.0 OS: OpenBSD
Private report: No CVE-ID: None
 [2009-06-30 15:25 UTC] admin at phpcode dot us
Description:
------------
PHP 5.3.0 RC4 do't compile at all on OpenBSD current version (27/06/09).

Configure options:
--disable-all \
--disable-static \
--with-apxs=/usr/sbin/apxs \
--with-iconv=/usr/local \
--with-pcre-regex \
--with-zlib \
--with-pear=/usr/local/share/php5 \
--with-config-file-scan-dir=/var/www/conf/php5 \
--enable-bcmath \
--enable-session \
--enable-calendar \
--enable-ctype \
--enable-ftp \
--enable-xml \
--enable-libxml \
--enable-wddx \
--enable-cli \
--enable-sysvsem \
--enable-sysvshm \
--enable-shared \
--enable-inline-optimization

Error message:

/usr/lib/crt0.o(.text+0xe8): In function `___start':
: undefined reference to `main'
main/main.o(.data.rel+0x0): undefined reference to `php_register_internal_extensions'
collect2: ld returned 1 exit status
*** Error code 1

Stop in /usr/ports/obj/php5-core-5.3.0RC4/php-5.3.0RC4 (line 243 of Makefile).
*** Error code 1



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-06-30 17:53 UTC] iliaa@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

.
 [2009-06-30 19:39 UTC] admin at phpcode dot us
Compile success on 5.3.0 releases.
 [2011-09-25 03:47 UTC] kk dot polygon at gmail dot com
Have this bug on Linux 2.6.16.21-0.25-smp SUSE LINUX 10.1 (X86-64)

Error in compilation:
main/main.o:(.data+0x0): undefined reference to 
`php_register_internal_extensions'
collect2: ld returned 1 exit status

Configure options:
--without-pgsql --with-mysql --with-curl --with-openssl --enable-libxml --with-
zlib --enable-zip --with-xsl --with-jpeg-dir=/usr/ --with-gd --with-oci8 --
enable-sigchild --with-jpeg-dir=/usr/ --with-png-dir=/usr/ --with-freetype-
dir=/usr/ --enable-mbstring --enable-pcntl --enable-shmop --enable-sockets 

php version: 5.3.8
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 14:01:30 2024 UTC