Re: [PHP-DEV] [PHP3/4] Sybase-CT, Apache 1.3.9, RedHat 6.1 Seg fault From: Jason Cornez (jcornez <email protected>)
Date: 11/23/99

Thanks for your quick response.

# /usr/sbin/httpd -v
Server version: Apache/1.3.9 (Unix) (Red Hat/Linux)
Server built: Sep 21 1999 10:46:27
#
# grep -e "CFG_LD.*_SHLIB" /usr/sbin/apxs
my $CFG_LD_SHLIB = 'gcc'; # substituted via
Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = '-shared'; # substituted via
Makefile.tmpl
    my $cmd = "$CFG_LD_SHLIB $CFG_LDFLAGS_SHLIB -o $dso_file";
                if($CFG_LD_SHLIB ne "gcc") {
#

Apache 1.3.9 was automatically installed (via RPM) when I installed RedHat
6.1. It is also worth noting that using --with-sybase=/opt/sybase results
in an executable that works perfectly well. But I need the sybase-ct
support.

-Jason

----8<----

Rasmus Lerdorf wrote:

  On Mon, 22 Nov 1999, Jason S. Cornez wrote:
> Does anyone know how to resolve this problem? I've seen other people
> mention similar problem in this space, but I have yet to see a solution.

  Which version of Apache?

> #2 0x400e3f66 in _IO_vfprintf (s=0x4018bfc0,

  Whenever I see an _IO_* function in a core dump, I immediately suspect the
  linking problem that was present in all versions of Apache up to
  1.3.9. So, if you are not using Apache-1.3.9, please upgrade and try
  again. Even if you are, make very sure that the apxs script you are
  running the PHP configure against is the one that came from your 1.3.9
  install. The think to look for the that it uses "gcc -shared" to link as
  opposed to "ld -Bshareable".

  -Rasmus