php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1127 collect2: ld terminated with signal 11 [Segmentation fault]
Submitted: 1999-02-08 17:22 UTC Modified: 1999-02-08 17:41 UTC
From: bginter at abilnet dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.6 OS: Linux 2.1.131
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bginter at abilnet dot com
New email:
PHP Version: OS:

 

 [1999-02-08 17:22 UTC] bginter at abilnet dot com
Hello,

I'm trying to compile Apache 1.3.4 with mod_ssl 2.2.2-1.3.4 and php 3.0.6. 

This compiles with php 3.0.5.

CFLAGS='-O2 -I/path/to/ssleay/include' \
      ./configure \
          --with-apache=../apache_1.3.4 \
          --with-mysql=/usr/local/mysql \
          --with-gd=/src/gd1.3 \
          --with-sybase-ct=/usr/local/sybase \
          --enable-memory-limit=yes \
          --enable-debug=no \
          --enable-bcmath=yes
make && make install

This works.  I then change into the apache directory:
cd ../apache_1.3.4
SSL_BASE=/usr/local/ssl \
      ./configure \
          --prefix=/usr/local/apache \
          --enable-module=ssl \
          --activate-module=src/modules/php3/libphp3.a \
          --enable-module=php3

And I get the following error on the last stage of the compile:

gcc  -DLINUX=2 -DMOD_SSL=202102 -DUSE_HSREGEX -DEAPI `./apaci` -L/usr/local/ssl/lib   \
      -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/ssl/libssl.a modules/php3/libphp3.a main/libmain.a ./os/unix/libos.a ap/libap.a regex/libregex.a  -Lmodules/php3 -L../modules/php3 -L../../modules/php3 -lmodphp3 -lgdbm       -L/usr/local/sybase/lib -lcs -lct -lcomn -lintl -lsybtcl -linsck -Wl,-rpath,/usr/local/mysql/lib -L/usr/local/mysql/lib -lmysqlclient                        -lm -ldl   -lm  -ldbm -lssl -lcrypto
collect2: ld terminated with signal 11 [Segmentation fault]
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/scsi/src/apache/apache_1.3.4/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/scsi/src/apache/apache_1.3.4'
make: *** [build] Error 2


I've tried compiling it without mod_ssl support and I get the same error:

./configure --activate-module=src/modules/php3/libphp3.a --enable-module=php3
make
[...SNIP...]
gcc  -DLINUX=2 -DUSE_HSREGEX `./apaci`    \
      -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/php3/libphp3.a main/libmain.a ./os/unix/libos.a ap/libap.a regex/libregex.a  -Lmodules/php3 -L../modules/php3 -L../../modules/php3 -lmodphp3 -lgdbm       -L/usr/local/sybase/lib -lcs -lct -lcomn -lintl -lsybtcl -linsck -Wl,-rpath,/usr/local/mysql/lib -L/usr/local/mysql/lib -lmysqlclient                        -lm -ldl   -lm
collect2: ld terminated with signal 11 [Segmentation fault]
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/scsi/src/apache/apache_1.3.4/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/scsi/src/apache/apache_1.3.4'
make: *** [build] Error 2

Ok, so I doubt you would release 3.0.6 if it doesn't compile under Apache 1.3.4.  Here are my program versions:

ldd: version 1.9.9
/lib/libc.so.5.4.44
GNU Make version 3.76.1
GNU ld version 2.9.1 (with BFD 2.9.1.0.19)
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)

Thanks for all your hard work!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-02-08 17:41 UTC] zeev
This is most likely a problem with your hardware or with the rest of your setup. It's not a PHP problem. Read the Sig11 FAQ at http://www.bitwizard.nl/sig11/

---

Actually, this is most likely not a problem with your setup;
The old Sybase-CT library that's available for Linux libc5
tends to do that to ld.  The reason is that it's originally
an a.out library, that was converted to an ELF library by
hand.

There's no much logic at getting it to work.  Try moving around
the Sybase CT libraries in the linking line to the beginning
of the libraries list, and see if it helps.  Move it around
if it doesn't, and try switching among themselves.

These are the Sybase libraries arguments:

-L/usr/local/sybase/lib -lcs -lct -lcomn -lintl -lsybtcl -linsck 

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 09:01:31 2024 UTC