Skip to Content.
Sympa Menu

freetds - RE: [freetds] RE: Compiling for PHP extension error

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] RE: Compiling for PHP extension error
  • Date: Tue, 12 Apr 2005 15:18:56 -0400

> From: jleelim online
> Sent: Tuesday, April 12, 2005 1:29 PM
>
> I did use "--prefix=/usr/local/freetds" but I forgot to write this in
my
> posting.

ok...

> I also tried older versions of FreeTDS 0.53, 0.60.1 and no luck. On
0.53 I
> get a different error message in Apache log:

Older versions won't help. I don't remember the last time I recommended
falling back to a prior version.

> Any other suggestions?

Two meta-suggestions: This is a public forum, so please don't top-post,
and don't delete the comments your replying to. I happen to remember
your situation because I spent a little time constructing the readelf(1)
example for you. But everyone else, including someone else who might be
able to help, or someone later reading the archives for a solution,
won't have a clue what we're talking about.

Other than that, I don't run the software you're using, so I can only
give you guidelines. I think the run-time linker isn't finding the
FreeTDS shared objects. Where it looks is controlled by the binary's
RPATH and things like LD_LIBRARY_PATH. In my prior reply, I showed you
how to display the RPATH in /usr/lib/php4/sybase.so.

(I note you set LD_LIBRARY_PATH before building PHP. That has no
effect. LD_LIBRARY_PATH influences the run-time linker, see "man
ld.so".)

Beyond that, you want to keep in mind that httpd is running in its own
environment, probably with different privileges than you have. If the
binary's RPATH doesn't include /usr/local/freetds, make sure httpd's
environment has an LD_LIBRARY_PATH that does.

HTH.

--jkl


-----------------------------------------
The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named
above. If you are not the intended recipient, or an employee or agent
responsible
for delivering this message to the intended recipient, any review,
dissemination,
distribution or duplication of this communication is strictly prohibited. If
you are
not the intended recipient, please contact the sender immediately by reply
e-mail
and destroy all copies of the original message. Please note that we do not
accept
account orders and/or instructions by e-mail, and therefore will not be
responsible
for carrying out such orders and/or instructions. If you, as the intended
recipient
of this message, the purpose of which is to inform and update our clients,
prospects
and consultants of developments relating to our services and products, would
not
like to receive further e-mail correspondence from the sender, please "reply"
to the
sender indicating your wishes. In the U.S.: 1345 Avenue of the Americas, New
York,
NY 10105.




Archive powered by MHonArc 2.6.24.

Top of Page