Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Apr 2000 11:44:53 -0400
From:      Bush Doctor <dervish@goku.cl.msu.edu>
To:        Doug Poland <dpoland@execpc.com>
Cc:        freebsd-emulation@freebsd.org
Subject:   Re: Linux sybase library
Message-ID:  <20000428114453.A19406@goku.cl.msu.edu>
In-Reply-To: <NDBBKMNOJKJGAEKJNLIAIELMDHAA.dpoland@execpc.com>; from dpoland@execpc.com on Thu, Apr 27, 2000 at 05:54:41PM -0500
References:  <20000427172610.A50733@goku.cl.msu.edu> <NDBBKMNOJKJGAEKJNLIAIELMDHAA.dpoland@execpc.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Out of da blue Doug Poland aka (dpoland@execpc.com) said:
> > 
> > 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 
I did a little research and you need to install freeTDS
check http://www.freetds.org for more info.

From the FAQ I got this ...

3.3 How do I compile PHP 3 with FreeTDS? 
	Simply follow the PHP directions but use /usr/local/freetds (or your
	freetds directory if different) instead of the sybase directory. 

So you'll have to install freeTDS first, then do the following
SYBASE=/path/to/freetds
export SYBASE
# ./configure --with-sybase-ct=$SYBASE --with-apxs=/usr/local/sbin/apxs

I've downloaded sybase myself and i'll give it a whirl over the weekend.
Let me know what happens on you end ...

> --
> Doug


#;^)
-- 
f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.

bush doctor
<dervish@goku.cl.msu.edu>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-emulation" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000428114453.A19406>