From owner-freebsd-emulation Thu Apr 27 15:54:52 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from mailgw02.execpc.com (mailgw02.execpc.com [169.207.3.78]) by hub.freebsd.org (Postfix) with ESMTP id 8FF6437BB49 for ; Thu, 27 Apr 2000 15:54:48 -0700 (PDT) (envelope-from dpoland@execpc.com) Received: from judah (xorth-1-81.mdm.fox.execpc.com [169.207.124.81]) by mailgw02.execpc.com (8.9.1) id RAA21485; Thu, 27 Apr 2000 17:54:42 -0500 From: "Doug Poland" To: "Bush Doctor" Cc: Subject: RE: Linux sybase library Date: Thu, 27 Apr 2000 17:54:41 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal In-Reply-To: <20000427172610.A50733@goku.cl.msu.edu> Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > Out of da blue Doug Poland aka (dpoland@execpc.com) said: > > > > > > Out of da blue Doug Poland aka (dpoland@execpc.com) said: > > > > Hello, > > > > > > > > I'm having a problem with a Sybase (for linux) library reference. I've > > > > tried posts on -questions, php3-help@lists.php.net, sybase-l but so far > > > > no help. I don't think there are many people out there running Sybase > > > > on FreeBSD trying to use apache/php3. > > > > > > > > Running 3.1-RELEASE, apache-1.3.12, php-3.0.16, sybase-11.0.3.3. > > > > > > > > I've configured and compiled php3 into libphp3.so. When I > > > > attempt to start apache, it tells me... > > > > > > > > # apachectl start > > > > Syntax error on line 215 of /usr/local/etc/apache/httpd.conf: > > > > Cannot load /usr/local/libexec/apache/libphp3.so into server: > > > > /usr/lib/libcs.so: Undefined symbol "intl_cstrbuild" > > > > /usr/local/sbin/apachectl start: httpd could not be started > > > > > > > > Any ideas on this? I'm no UNIX guru by any stretch of the imagination. > > > > I do, however, want to get this environment running as a prototype and > > > > proof-of-concept for a low-cost, high-speed, web/db platform. I'm > > > > afraid if I can't figure this out, I'll have to use linux, where I > > > > have even less experience, yikes! > > > You're missing a library that either apache or php needed to > > > be linked against so the run time loader could access it. > > > You don't say, but do you have the linux compatibility module installed? > > > Did you build apache from ports or by hand? > > > > > > > Yes, I have the linux compatibility module installed. > > The proof is sybase runs. > > > > The library /usr/lib/libcs.so was installed from the > > sybase rpm. The file in /usr/lib is a symbolic link > > to /opt/sybase/lib. > > > > I actually installed apache from the package > > apache-php3-1.3.4. I tried building apache > > from apache source but failed miserablly. Since > > the package is compiled with DSO, I figured I > > could make a php DSO using php3 from php.net > > > > When you built php, did you configure it with sysbase > database support? Did you also link php against libcs.so? > (i.e. with -lcs) > Yes, with sybase support, here's the command line... # ./configure \ ? --with-sybase-ct=$SYBASE \ ? --with-apxs=/usr/local/sbin/apxs I did NOT link php against libcs.so. So should my configure look like this? # ./configure \ ? --with-sybase-ct=$SYBASE \ ? --with-apxs=/usr/local/sbin/apxs \ ? --with-lcs > > Would having the linux_devel package installed > > make any difference? I tried it once but gcc > > failed immediately. > > > > No this is only necessary if you're developing linux > apps or tools on freebsd ... > Good, it takes up a lot of precious disk space. I can't try it until tomorrow morning. I hope this works, I've started loading SuSE linux on another box just in case :( -- Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message