Skip to Content.
Sympa Menu

freetds - Compiling FreeTDS on FreeBSD 4.0-Current with PHP & Apache

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Karl Pielorz <kpielorz AT tdx.co.uk>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: Compiling FreeTDS on FreeBSD 4.0-Current with PHP & Apache
  • Date: Wed, 14 Jul 1999 08:12:30 +0100


Hi All,

I'm new to the list, and I couldn't find any archive to search :( - So, sorry
if this is a known problem...

I'm having problems compiling FreeTDS 0.45 with PHP/Apache support under
FreeBSD 4.0-Current... Apparently theres a namespace clash with libc and
libsybdb, both of which define "dbopen". The end result is when Apache starts
up, due to different linking order - it's mistakingly calling "dbopen" in
FreeTDS, passing it wrong args - which leads to a segfault.

Apparently this is also likely to happen with any systems running GNU libc 2,
as they have 'dbopen' in libdb?...

At the moment I've worked around the problem by putting a '#define dbopen
tds_dbopen' in tds.h, and modifying the PHP's sybase.c with a simlar
#define...

This compiles and runs...

It's not a problem under FreeBSD 2.2.X and 3.X as far as I can see (I managed
to compile it all without modification under those ops-sys's).

Like I said, sorry if this is a known problem :)

-Karl




Archive powered by MHonArc 2.6.24.

Top of Page