Bluehost.com Web Hosting $6.95

cvs php problem with curl

This is a discussion on cvs php problem with curl within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hello I checked out openssl,mm,apr,apr-util,apache 2,curl,libxml and php from cvs. php couse an ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-05-2004
Haluk Durmus
 
Posts: n/a
Default cvs php problem with curl

Hello

I checked out openssl,mm,apr,apr-util,apache 2,curl,libxml and php
from cvs.

php couse an ERROR

I did the following steps:



export ORACLE_BASE=/usr/local/share/oracle/
export ORACLE_HOME=/usr/local/share/oracle/OraHome1
export ORACLE_DOC=$ORACLE_BASE/doc
export ORACLE_SID=udb
export TWO_TASK=udb.suchtreffer.de
export PATH=$PATH:/usr/local/share/oracle/OraHome1/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export CLASSPATH=/usr/local/share/oracle/jre:$ORACLE_HOME/jlib
export NLS_LANG='ENGLISH_UNITED KINGDOM.WE8ISO8859P1'
export ORA_NLS33=/usr/local/share/oracle/OraHome1/ocommon/nls/admin/data


openssl:
cd /usr/local/src
rsync -rztpv --delete rsync://dev.openssl.org/openssl-cvs/
/usr/local/src/openssl-cvs-rsync/
cvs -d /usr/local/src/openssl-cvs-rsync co openssl
cd ./openssl
config no-idea no-threads -fPIC
make
make test
make install

mm:
cd /usr/local/src
download mm-1.3.0.tar.gz (http://www.ossp.org/pkg/lib/mm/)
tar -zxvpf mm-1.3.0.tar.gz
cd ./mm-1.3.0
../configure --disable-shared
make
make install

apr:
cd /usr/local/src
cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login
> Password: anoncvs

cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co apr
cd ./apr
../buildconf
../configure
make
make install

apr-util:
cd /usr/local/src
cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co apr-util
cd ./apr-util
../buildconf
../configure --with-apr=../apr
make
make install

apache 2:
cd /usr/local/src
cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co -d httpd
httpd-2.0
cd ./httpd/srclib
ln -s /usr/local/src/apr .
ln -s /usr/local/src/apr-util .
cd ..
../buildconf
../configure --prefix=/usr/local --with-apr=../apr
--with-apr-util=../apr-util/ --with-ssl=/usr/local/ssl --enable-ssl
make
make install

curl:
cd /usr/local/src
cvs -d :pserver:cvsread@cvs.php.net:/repository login
> Password: phpfi

cvs -d :pserver:cvsread@cvs.php.net:/repository checkout curl
cd ./curl
../buildconf
../configure --prefix=/usr/local --disable-ipv6
--with-ssl=/usr/local/ssl
make
make install


libxml2:

cd /usr/local/src
cvs -d :pserver:anonymous@anoncvs.gnome.org:/cvs/gnome login
> Password: [RETURN]

cvs -d :pserver:anonymous@anoncvs.gnome.org:/cvs/gnome co libxml2
cd ./libxml2
../autogen.sh
make
make install


php:
cd /usr/local/src
cvs -d :pserver:cvsread@cvs.php.net:/repository co -d php php-src
cd ./php
../buildconf
../configure --with-apache2=../httpd --enable-sysvshm=yes
--enable-url-includes --enable-track-vars=yes --enable-trans-sid=yes
--with-xml=../libxml2 --enable-magic-quotes --enable-ftp
--with-oracle=$ORACLE_HOME --with-oci8=$ORACLE_HOME --enable-sigchild
--with-mysql --with-openssl=/usr/local/ssl --with-curl=usr/local/lib
--with-curlwrappers
make

now I get an Error-Message:

gcc -Iext/curl/ -I/usr/local/src/php/ext/curl/ -DPHP_ATOM_INC
-I/usr/local/src/php/include -I/usr/local/src/php/main
-I/usr/local/src/php -I/usr/local/src/php/Zend
-I/usr/local/include/libxml2 -I/usr/local/ssl/include
-I/usr/local/include -I/usr/include/mysql
-I/usr/local/share/oracle/OraHome1/rdbms/public
-I/usr/local/share/oracle/OraHome1/rdbms/demo
-I/usr/local/src/php/TSRM -g -O2 -c
/usr/local/src/php/ext/curl/interface.c -o ext/curl/interface.o &&
echo > ext/curl/interface.lo
/usr/local/src/php/ext/curl/interface.c: In function `curl_free_post':
/usr/local/src/php/ext/curl/interface.c:643: warning: passing arg 1 of
`curl_formfree' from incompatible pointer type
/usr/local/src/php/ext/curl/interface.c: In function
`alloc_curl_handle':
/usr/local/src/php/ext/curl/interface.c:711: sizeof applied to an
incomplete type
/usr/local/src/php/ext/curl/interface.c: In function
`zif_curl_setopt':
/usr/local/src/php/ext/curl/interface.c:999: warning: passing arg 1 of
`curl_formadd' from incompatible pointer type
/usr/local/src/php/ext/curl/interface.c:999: warning: passing arg 2 of
`curl_formadd' from incompatible pointer type
/usr/local/src/php/ext/curl/interface.c:1006: warning: passing arg 1
of `curl_formadd' from incompatible pointer type
/usr/local/src/php/ext/curl/interface.c:1006: warning: passing arg 2
of `curl_formadd' from incompatible pointer type
make: *** [ext/curl/interface.lo] Error 1

I also tried to configure php with
--with-curl=/usr/local/lib
--with-curl=/usr/local/include/curl
--with-curl=/usr/local/src/curl/include/curl/


Can you help ?
please !
Reply With Quote
  #2 (permalink)  
Old 02-06-2004
Haluk Durmus
 
Posts: n/a
Default Re: cvs php problem with curl

Haluk Durmus wrote:
> Hello
>
> I checked out openssl,mm,apr,apr-util,apache 2,curl,libxml and php
> from cvs.
>
> php couse an ERROR
>
> I did the following steps:
>
>
>
> export ORACLE_BASE=/usr/local/share/oracle/
> export ORACLE_HOME=/usr/local/share/oracle/OraHome1
> export ORACLE_DOC=$ORACLE_BASE/doc
> export ORACLE_SID=udb
> export TWO_TASK=udb.suchtreffer.de
> export PATH=$PATH:/usr/local/share/oracle/OraHome1/bin
> export LD_LIBRARY_PATH=$ORACLE_HOME/lib
> export CLASSPATH=/usr/local/share/oracle/jre:$ORACLE_HOME/jlib
> export NLS_LANG='ENGLISH_UNITED KINGDOM.WE8ISO8859P1'
> export ORA_NLS33=/usr/local/share/oracle/OraHome1/ocommon/nls/admin/data
>
>
> openssl:
> cd /usr/local/src
> rsync -rztpv --delete rsync://dev.openssl.org/openssl-cvs/
> /usr/local/src/openssl-cvs-rsync/
> cvs -d /usr/local/src/openssl-cvs-rsync co openssl
> cd ./openssl
> config no-idea no-threads -fPIC
> make
> make test
> make install
>
> mm:
> cd /usr/local/src
> download mm-1.3.0.tar.gz (http://www.ossp.org/pkg/lib/mm/)
> tar -zxvpf mm-1.3.0.tar.gz
> cd ./mm-1.3.0
> ./configure --disable-shared
> make
> make install
>
> apr:
> cd /usr/local/src
> cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login
> > Password: anoncvs

> cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co apr
> cd ./apr
> ./buildconf
> ./configure
> make
> make install
>
> apr-util:
> cd /usr/local/src
> cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co apr-util
> cd ./apr-util
> ./buildconf
> ./configure --with-apr=../apr
> make
> make install
>
> apache 2:
> cd /usr/local/src
> cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co -d httpd
> httpd-2.0
> cd ./httpd/srclib
> ln -s /usr/local/src/apr .
> ln -s /usr/local/src/apr-util .
> cd ..
> ./buildconf
> ./configure --prefix=/usr/local --with-apr=../apr
> --with-apr-util=../apr-util/ --with-ssl=/usr/local/ssl --enable-ssl
> make
> make install
>
> curl:
> cd /usr/local/src
> cvs -d :pserver:cvsread@cvs.php.net:/repository login
> > Password: phpfi

> cvs -d :pserver:cvsread@cvs.php.net:/repository checkout curl
> cd ./curl
> ./buildconf
> ./configure --prefix=/usr/local --disable-ipv6
> --with-ssl=/usr/local/ssl
> make
> make install
>
>
> libxml2:
>
> cd /usr/local/src
> cvs -d :pserver:anonymous@anoncvs.gnome.org:/cvs/gnome login
> > Password: [RETURN]

> cvs -d :pserver:anonymous@anoncvs.gnome.org:/cvs/gnome co libxml2
> cd ./libxml2
> ./autogen.sh
> make
> make install
>
>
> php:
> cd /usr/local/src
> cvs -d :pserver:cvsread@cvs.php.net:/repository co -d php php-src
> cd ./php
> ./buildconf
> ./configure --with-apache2=../httpd --enable-sysvshm=yes
> --enable-url-includes --enable-track-vars=yes --enable-trans-sid=yes
> --with-xml=../libxml2 --enable-magic-quotes --enable-ftp
> --with-oracle=$ORACLE_HOME --with-oci8=$ORACLE_HOME --enable-sigchild
> --with-mysql --with-openssl=/usr/local/ssl --with-curl=usr/local/lib
> --with-curlwrappers
> make
>
> now I get an Error-Message:
>
> gcc -Iext/curl/ -I/usr/local/src/php/ext/curl/ -DPHP_ATOM_INC
> -I/usr/local/src/php/include -I/usr/local/src/php/main
> -I/usr/local/src/php -I/usr/local/src/php/Zend
> -I/usr/local/include/libxml2 -I/usr/local/ssl/include
> -I/usr/local/include -I/usr/include/mysql
> -I/usr/local/share/oracle/OraHome1/rdbms/public
> -I/usr/local/share/oracle/OraHome1/rdbms/demo
> -I/usr/local/src/php/TSRM -g -O2 -c
> /usr/local/src/php/ext/curl/interface.c -o ext/curl/interface.o &&
> echo > ext/curl/interface.lo
> /usr/local/src/php/ext/curl/interface.c: In function `curl_free_post':
> /usr/local/src/php/ext/curl/interface.c:643: warning: passing arg 1 of
> `curl_formfree' from incompatible pointer type
> /usr/local/src/php/ext/curl/interface.c: In function
> `alloc_curl_handle':
> /usr/local/src/php/ext/curl/interface.c:711: sizeof applied to an
> incomplete type
> /usr/local/src/php/ext/curl/interface.c: In function
> `zif_curl_setopt':
> /usr/local/src/php/ext/curl/interface.c:999: warning: passing arg 1 of
> `curl_formadd' from incompatible pointer type
> /usr/local/src/php/ext/curl/interface.c:999: warning: passing arg 2 of
> `curl_formadd' from incompatible pointer type
> /usr/local/src/php/ext/curl/interface.c:1006: warning: passing arg 1
> of `curl_formadd' from incompatible pointer type
> /usr/local/src/php/ext/curl/interface.c:1006: warning: passing arg 2
> of `curl_formadd' from incompatible pointer type
> make: *** [ext/curl/interface.lo] Error 1
>
> I also tried to configure php with
> --with-curl=/usr/local/lib
> --with-curl=/usr/local/include/curl
> --with-curl=/usr/local/src/curl/include/curl/
>
>
> Can you help ?
> please !


I solved it by my selfe.
I switched CURL down to curl_7_10_5.
now it's working :)
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:16 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0