For Programmers: Free Programming Magazines  


Home > Archive > Kylix > September 2005 > Deploy Kyllix / Apache DSO using DBClient unit









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Deploy Kyllix / Apache DSO using DBClient unit
Phil Henningsen

2005-09-22, 4:00 am

Hi folks,

This is a duplicate of a post to the borland.public.kylix.deployment
newsgroup. The last post to the newsgroup was on 5/2/2005 so I don't
have much hope that anyone is watching. So I hope that you'll forgive
me for copying it here.....

I am attempting to deploy two apache DSO's (written in Kylix3, being
deployed on apache 2.0.51, Fedora FC2) to a web server machine that has
never had Kylix installed on it. Both apps use Firebird 1.5.2 and
dbExpress.

App1 works fine, including Firebird queries, etc.

App2 croaks on startup (WebModuleCreate) with an EInOutError I/O error
103. I have traced it to a statement that tries to create an object
(not in the main unit) that uses a TClientDataSet. This is the only
unit that uses Kylix's DBClient unit.

My assumption at this time is that the EInOutError is caused when
DBClient trys to dynamically load a .so that is not found.

But which one?

I have installed (in /usr/lib):
dbxres.en.1.0
libgds.so.1
libjs.borland.so
libmidas.so.1.0
libsqlib.so.1.0

and I have soft links set up to (eg) libmidas.so.1 and libmidas.so

I have also studied Rick Ross's excellent
http://www.rick-ross.com/papers/k3/k3deploy.html

What else am I missing?

Any help would be urgently appreciated.

Thanks!

Phil
Tony Caduto

2005-09-25, 3:59 am

Did you run ldd against the compiled dso to see exactly what the
dependencies are? Maybe you are pulling in QT somehow, it's possible
you have something in your uses that is pulling it in.

when I run ldd agains my DSO's that use Zeos I see this:

linux-gate.so.1 => (0xffffe000)
libhttpd.so => not found
libpthread.so.0 => /lib/libpthread.so.0 (0x4001e000)
libdl.so.2 => /lib/libdl.so.2 (0x40070000)
libc.so.6 => /lib/libc.so.6 (0x40074000)
/lib/ld-linux.so.2 (0x40000000)

And these DSOs run fine on any server

have you checked into running something other than DBexpress i.e. Zeos?

Zeos is super stable on Linux, my DSOs have uptimes of hundreds of days
with thousands of hits per day.


Phil Henningsen wrote:

>
> I am attempting to deploy two apache DSO's (written in Kylix3, being
> deployed on apache 2.0.51, Fedora FC2) to a web server machine that has
> never had Kylix installed on it. Both apps use Firebird 1.5.2 and
> dbExpress.
>


--
Tony Caduto
http://www.amsoftwaredesign.com
Home of PG Lightning Admin for Postgresql 8.x
Phil Henningsen

2005-09-25, 3:59 am

Yes, I ran ldd. There was nothing "not found".

I am desperate for a solution. I will pay for support.

Phil

PS: converting to Zeos or AstaIO is a really drastic step (foe me)
when I truly believe that I'm missing just one dynamically loaded SO.

Tony Caduto wrote:
> Did you run ldd against the compiled dso to see exactly what the
> dependencies are? Maybe you are pulling in QT somehow, it's possible
> you have something in your uses that is pulling it in.
>
> when I run ldd agains my DSO's that use Zeos I see this:
>
> linux-gate.so.1 => (0xffffe000)
> libhttpd.so => not found
> libpthread.so.0 => /lib/libpthread.so.0 (0x4001e000)
> libdl.so.2 => /lib/libdl.so.2 (0x40070000)
> libc.so.6 => /lib/libc.so.6 (0x40074000)
> /lib/ld-linux.so.2 (0x40000000)
>
> And these DSOs run fine on any server
>
> have you checked into running something other than DBexpress i.e. Zeos?
>
> Zeos is super stable on Linux, my DSOs have uptimes of hundreds of days
> with thousands of hits per day.
>
>
> Phil Henningsen wrote:
>
>

siegfriedn

2005-09-25, 7:58 am

Is it not the midas one? You need the midas libs with TClientdataset.

You can also compile a midas unit into your dll. It is documented in the
Delphi/Kylix developers guide.

Siegs
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com