Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Error compiling php - Wrong ADS version

3 posts in PHP Last posting was on 2010-11-06 16:10:12.0Z
Omar Garro Posted on 2010-11-05 14:23:09.0Z
Reply-To: "Omar Garro" <ogarro@rapi-estant.com.ar>
From: "Omar Garro" <ogarro@rapi-estant.com.ar>
Newsgroups: advantage.PHP
Subject: Error compiling php - Wrong ADS version
Date: Fri, 5 Nov 2010 11:23:09 -0300
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 201.235.113.40
Message-ID: <4cd411c4@solutions.advantagedatabase.com>
X-Trace: 5 Nov 2010 08:16:36 -0700, 201.235.113.40
Path: solutions.advantagedatabase.com!201.235.113.40
Xref: solutions.advantagedatabase.com Advantage.PHP:1107
Article PK: 1135591

After having run ./buildconf --force , I try to run :

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-advantage=/usr/local/ads/php
--enable-track-vars

and after a while, an error occurs:
--------------------
checking for Advantage support... yes
checking for SQLAllocEnv in -ladsodbc... no
configure: error: wrong advantage lib version or lib not found
---------------

any Idea ?

I looked into "configure" file and it's quite strange to find:

LIBNAME=adsodbc
LIBSYMBOL=SQLAllocEnv
old_LIBS=$LIBS
case $host_alias in
i?86*)
LIBDIR="$LIBS -L$ADVANTAGE_DIR/lib"
;;
x86_64*)
LIBDIR="$LIBS -L$ADVANTAGE_DIR/lib64"
;;
*)
LIBDIR="$LIBS -L$ADVANTAGE_DIR/lib"
;;
esac


while "$LIBS -L$ADVANTAGE_DIR/lib64" doesn't exist !!!!!!!!!!!


I should say that my linux is 64bits based


Jed Thomet Posted on 2010-11-05 15:16:19.0Z
Date: Fri, 5 Nov 2010 15:16:19 +0000 (UTC)
Message-ID: <49739e7d542828cd4ae13df2b83a@devzone.advantagedatabase.com>
From: Jed Thomet <jedt_no_unrequested_emails_please@ianywhere.com>
Subject: Re: Error compiling php - Wrong ADS version
Newsgroups: Advantage.PHP
References: <4cd411c4@solutions.advantagedatabase.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=iso-8859-1; format=flowed
X-Newsreader: JetBrains Omea Reader 1098.1
NNTP-Posting-Host: 10.24.40.125
X-Trace: 5 Nov 2010 09:12:46 -0700, 10.24.40.125
Lines: 44
Path: solutions.advantagedatabase.com!10.24.40.125
Xref: solutions.advantagedatabase.com Advantage.PHP:1109
Article PK: 1135593

Hello Omar,

What version of the PHP Driver are you attempting to install? Also (and
perhaps more importantly), what Linux distribution are you using? And, can
you provide the output of the command "uname -i" from your Linux box? Thanks!

Jed Thomet
Advantage R&D

> After having run ./buildconf --force , I try to run :
>
> ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
> --with-advantage=/usr/local/ads/php
> --enable-track-vars
> and after a while, an error occurs:
> --------------------
> checking for Advantage support... yes
> checking for SQLAllocEnv in -ladsodbc... no
> configure: error: wrong advantage lib version or lib not found
> ---------------
> any Idea ?
>
> I looked into "configure" file and it's quite strange to find:
>
> LIBNAME=adsodbc
> LIBSYMBOL=SQLAllocEnv
> old_LIBS=$LIBS
> case $host_alias in
> i?86*)
> LIBDIR="$LIBS -L$ADVANTAGE_DIR/lib"
> ;;
> x86_64*)
> LIBDIR="$LIBS -L$ADVANTAGE_DIR/lib64"
> ;;
> *)
> LIBDIR="$LIBS -L$ADVANTAGE_DIR/lib"
> ;;
> esac
> while "$LIBS -L$ADVANTAGE_DIR/lib64" doesn't exist !!!!!!!!!!!
>
> I should say that my linux is 64bits based
>


Omar Garro Posted on 2010-11-06 16:10:12.0Z
Reply-To: "Omar Garro" <ogarro@rapi-estant.com.ar>
From: "Omar Garro" <ogarro@rapi-estant.com.ar>
Newsgroups: Advantage.PHP
References: <4cd411c4@solutions.advantagedatabase.com> <49739e7d542828cd4ae13df2b83a@devzone.advantagedatabase.com>
Subject: Re: Error compiling php - Wrong ADS version
Date: Sat, 6 Nov 2010 13:10:12 -0300
Lines: 85
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 201.235.113.40
Message-ID: <4cd57c62@solutions.advantagedatabase.com>
X-Trace: 6 Nov 2010 10:03:46 -0700, 201.235.113.40
Path: solutions.advantagedatabase.com!201.235.113.40
Xref: solutions.advantagedatabase.com Advantage.PHP:1110
Article PK: 1135594

Hi Jed, thanks for your answer.
I'm trying to install PHP driver version 10 over a 64 bits Ubuntu linux
distrib.
uname -i just outputs: "unknown"

is there something wrong with that ?

There's something I notice quite strange...

When I untar "adsphp-10.00.0.3.tar.gz", it creates the folder
"adsphp-10.00.0.3" which contains "setup.files/lib" and
"setup.files/lib64".

After I run setup.pl script , under /usr/local/ads/php there's only one
"/lib" folder ( no /lib64 folder there ).

And ./configure (from php source code) reference to /lib64 folder !!!!!

========================
case $host_alias in
i?86*)
LIBDIR="$LIBS -L$ADVANTAGE_DIR/lib"
;;
x86_64*)
LIBDIR="$LIBS -L$ADVANTAGE_DIR/lib64"
;;
*)
LIBDIR="$LIBS -L$ADVANTAGE_DIR/lib"
;;
esac
========================


Please let me know if you can work it out. I'm kind of desperate !

"Jed Thomet" <jedt_no_unrequested_emails_please@ianywhere.com> escribi? en
el mensaje
news:49739e7d542828cd4ae13df2b83a@devzone.advantagedatabase.com...

> Hello Omar,
>
> What version of the PHP Driver are you attempting to install? Also (and
> perhaps more importantly), what Linux distribution are you using? And,
> can you provide the output of the command "uname -i" from your Linux box?
> Thanks!
>
> Jed Thomet
> Advantage R&D
>
>> After having run ./buildconf --force , I try to run :
>>
>> ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
>> --with-advantage=/usr/local/ads/php
>> --enable-track-vars
>> and after a while, an error occurs:
>> --------------------
>> checking for Advantage support... yes
>> checking for SQLAllocEnv in -ladsodbc... no
>> configure: error: wrong advantage lib version or lib not found
>> ---------------
>> any Idea ?
>>
>> I looked into "configure" file and it's quite strange to find:
>>
>> LIBNAME=adsodbc
>> LIBSYMBOL=SQLAllocEnv
>> old_LIBS=$LIBS
>> case $host_alias in
>> i?86*)
>> LIBDIR="$LIBS -L$ADVANTAGE_DIR/lib"
>> ;;
>> x86_64*)
>> LIBDIR="$LIBS -L$ADVANTAGE_DIR/lib64"
>> ;;
>> *)
>> LIBDIR="$LIBS -L$ADVANTAGE_DIR/lib"
>> ;;
>> esac
>> while "$LIBS -L$ADVANTAGE_DIR/lib64" doesn't exist !!!!!!!!!!!
>>
>> I should say that my linux is 64bits based
>>
>
>