Home  |  Linux  | Mysql  | PHP  | XML
From:Angel Motta Date:Mon Mar  8 22:15:58 2010
Subject:Re: error instant client PHP configure script
Sorry for send twice.
I forgot php version and apache
php-5.2.8
apache: httpd-2.2.12

2010/3/8 Angel Motta <angelmotta@gmail.com>

> Hi Christopher and Thanks for your assistance
>
> I am using:
> RHEL 5.3 - 32bit platform
> instantclient-basic-linux32-11.2.0.1.zip
> instantclient-sdk-linux32-11.2.0.1.zip
>
> I want to install oci8 support with snmp. When I enable snmp-support (that
> is my objective) in the configure I get this error:
>
> ./configure --prefix=/usr/local/php --with-xmlrpc
> --with-apxs2=/usr/local/apache2/bin/apxs
> --with-config-file-path=/usr/local/php/etc --with-gd=/usr/
> --with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr
> --with-xpm-dir=/usr --with-zlib=/usr
> --with-oci8=instantclient,/opt/instantclient
> --with-pdo-oci=instantclient,/opt/instantclient,11.1 --with-snmp=/usr/
> --with-openssl-dir=/usr --with-iconv=/usr/local/lib --with-curl=/usr
> --with-curlwrappers --with-libxml-dir=/usr --with-gettext=/usr
> --enable-sigchild --enable-libxml --enable-soap
>
> checking for SNMP support... yes
> checking OpenSSL dir for SNMP... /usr
> checking whether to enable UCD SNMP hack... yes
> checking for snmp_parse_oid in -lnetsnmp... no
> checking for init_snmp in -lnetsnmp... no
> configure: error: SNMP sanity check failed. Please check config.log for
> more information.
>
> #> vi config.log
> Start with some like:
> configure:2165: error: '__CYGWIN32__' undeclared (first use in this
> function)
> configure:2194: error: '__MINGW32__' undeclared (first use in this
> function)
>
> End with some of this:
>
> /opt/instantclient/libclntsh.so: file not recognized: File format not
> recognized
> 2017 collect2: ld returned 1 exit status
> 2018 configure: failed program was:
> 2019 #line 88940 "configure"
> 2020 #include "confdefs.h"
> 2021 /* Override any gcc2 internal prototype to avoid an error. */
> 2022 /* We use char because int might match the return type of a gcc2
> 2023 builtin and then its argument prototype would still apply. */
> 2024 char init_snmp();
>
>
> Thanks
> --
> Angel
>
> 2010/3/8 Christopher Jones <christopher.jones@oracle.com>
>
>
>> What platform? What PHP version?
>> Are you doing something like using 32 bit instantclient on a 64 bit
>> machine?
>>
>> Chris
>>
>>
>> Angel Motta wrote:
>>
>>> Hi List
>>> Is my first time that I write to this list.
>>> I am having problems to compile php with oci support.
>>>
>>> I run this:
>>> ./configure --prefix=/usr/local/php --with-xmlrpc
>>> --with-apxs2=/usr/local/apache2/bin/apxs
>>> --with-config-file-path=/usr/local/php/etc --with-gd=/usr/
>>> --with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr
>>> --with-xpm-dir=/usr --with-zlib=/usr
>>> --with-oci8=instantclient,/opt/instantclient
>>> --with-pdo-oci=instantclient,/opt/instantclient,11.1 --with-openssl-dir=/usr
>>> --with-iconv=/usr/local --with-curl=/usr --with-curlwrappers
>>> --with-libxml-dir=/usr --with-gettext=/usr --enable-sigchild --enable-libxml
>>> --enable-soap
>>>
>>> And I receive alert at finish of ./configure and I see the debug.log with
>>> this at the end:
>>> conftest.c: In function 'main':
>>> conftest.c:3: warning: incompatible implicit declaration of built-in
>>> function 'exit'
>>> /opt/instantclient/libclntsh.so: file not recognized: File format not
>>> recognized
>>> collect2: ld returned 1 exit status
>>>
>>>
>>> Thanks for your assistance
>>> --
>>> Angel
>>>
>>
>> --
>> Email: christopher.jones@oracle.com Tel: +1 650 506 8630
>> Blog: http://blogs.oracle.com/opal/ Free PHP Book:
>> http://tinyurl.com/UGPOM
>>
>
>
>
> --
> Atte
> Angel Motta Paz
>



--
Atte
Angel Motta Paz

Navigate in group php.install at sever news.php.net
Previous Next


Your recent visits
Re: [PHP-INSTALL] error instant client PHP configure script
Subba Reddy P sent you a Friend Request on Yaari
php
What need to do for supporting a new extension?
Re: [PHP-INSTALL] What need to do for supporting a new extension?



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants