Skip to Content.
Sympa Menu

freetds - Re: apache can't start after successful apache/php/freetds- build

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "jay" <jsoucy AT mos.org>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: Re: apache can't start after successful apache/php/freetds- build
  • Date: Wed, 3 Jul 2002 12:56:09 -0400


> As near as I can tell you are missing libgcc.a being linked in
> somewhere...but where? apache looks like a good spot maybe...
>
> cd apache-1.3.x
> LIBS="-lgcc"
> export LIBS
> ./configure ...yada yada yada..
> make
> make install
>

I rebuilt apache after setting LIBS to -lgcc, but got the same error on
apachectl start. So I gave it a shot in the PHP directory, and make
crashed:

ld: fatal: library -lgcc: not found
ld: fatal: File processing errors. No output written to .libs/libphp4.so
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.2.1'
make: *** [all-recursive] Error 1

Jay



> or something like that.
>
> Brian
>
> The alternative is to remove all references to "assert()", but that is a
> real pain.
>
> > > Ok, a 5 minute google search yields this.
> > >
> > > __eprintf() is an internal gcc function that gets linked into the
> > > executable (it's used by the assert function). So, since this is a
> > > shared
> > > lib, it is not compiled in to libsybdb.so but instead into the final
> > > executable (apache). My guess is that different compilers were used for
> > > compiling freetds/php/apache somewhere along the line? If not, write
> > > back
> > > and we'll dig deeper.
> > >
> >
> > I was thinking the same thing, so I went back and rebuilt freetds, apache,
> > & php. Here's what I did:
> >
> > freetds
> > CC=gcc ./configure; make; make install
> >
> > apache
> > CC=gcc ./configure --enable-module=most --enable-shared=max
> > --enable-module=ssl; make; make install
> >
> > php
> > CC=gcc ./configure --with-apxs=/usr/local/apache/bin/apxs
> > --with-sybase=/usr/local/freetds --with-mysql; make; make install
> >
> > Same error!
> >
> > -Jay
> > > Brian
> > >
> > > > Brian,
> > > >
> > > > Thanks for writing. This is with version 0.53. I started over again,
> > > > recompiling freetds and then recompiling php. Same stuff when I start
> > > > apache:
> > > >
> > > > Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1:
> > > > /usr/local/apache/bin/httpd: fatal: relocation error: file
> > > > /usr/local/freetds/lib//libsybdb.so.1: symbol __eprintf: referenced
> > > > symbol
> > > > not found




Archive powered by MHonArc 2.6.24.

Top of Page