Curl 7.16.0

This is what I get before PHP 5.2.x is even extracted from its archive. It didn't compile with 5.1.x either. This also happens no matter what version of cURL I use.

Code:
url.c:84:18: idna.h: No such file or directory
url.c:85:17: tld.h: No such file or directory
url.c:86:24: stringprep.h: No such file or directory
url.c:88:22: idn-free.h: No such file or directory
url.c: In function `tld_check_name':
url.c:2408: error: `IDNA_SUCCESS' undeclared (first use in this function)
url.c:2408: error: (Each undeclared identifier is reported only once
url.c:2408: error: for each function it appears in.)
url.c:2412: error: `TLD_INVALID' undeclared (first use in this function)
url.c:2415: error: `Tld_rc' undeclared (first use in this function)
url.c:2415: error: syntax error before "rc"
url.c:2432: error: `TLD_SUCCESS' undeclared (first use in this function)
url.c: In function `fix_hostname':
url.c:2452: error: `IDNA_SUCCESS' undeclared (first use in this function)
*** Error code 1

Stop in /usr/local/directadmin/customapache/curl-7.16.0/lib.
*** Error code 1

Stop in /usr/local/directadmin/customapache/curl-7.16.0/lib.
*** Error code 1

Stop in /usr/local/directadmin/customapache/curl-7.16.0.

I guess if it never gets fixed its not the end of the world... just kinda annoying.
 
yes... I read that... and I don't see a file "interface.c" in the curl-7.16.0 directory

And that bug is for the PHP archive which doesn't get extracted by the time the ./build script goes into an endless loop with the error above.
 
nobleclem said:
yes... I read that... and I don't see a file "interface.c" in the curl-7.16.0 directory

And that bug is for the PHP archive which doesn't get extracted by the time the ./build script goes into an endless loop with the error above.

Go to /usr/local/directadmin/customapache and download your copy of PHP in this folder. Extract the copy of PHP by hand (tar zxvf php-5.2.0.tar.gz), then cd into the php-dir and edit the interface.c file. Run the following commands to install PHP:

../configure.php (or '../configure.php_ap2' for Apache 2)

make
make install
make clean
/usr/local/etc/rc.d/httpd restart
 
thanks for the manual instructions... but why does the "./build php_ap2 y" not work?

that is when the above error happens.
 
nobleclem said:
thanks for the manual instructions... but why does the "./build php_ap2 y" not work?

that is when the above error happens.

Because of a bug in a file in the PHP-archive!
Just do it like I described above, it's the same!

If you want to fix the method with the build script you can try to extract the PHP-archive, modify the file and add to a archive again. Maybe that works, but seems very useless to me. :rolleyes:
 
yea... my problem wasn't php 5.2 as stated above it was installing the new version of curl using the ./build script. for some reason if I use the build script I get make errors of CURL not php 5.2

BUT what I did just before your instructions above is I manually extracted and did a make install clean of curl 7.16

Then followed your instructions with the edited interfaces.c file and now the new curl is working with php5.2 instead of some old 7.15.1 version that was there.


I hope DA fixes the curl make problem with their build script.
 
let's try to install curl 7.16.0

cd /usr/local/directadmin/customapache/
wget http://curl.haxx.se/download/curl-7.16.0.tar.gz
tar zxvf curl-7.16.0.tar.gz
cd /usr/local/directadmin/customapache/curl-7.16.0
./make
./make install
./make clean

cd ..
./build php n
service httpd restart

notice that ./build curl with changing version in build doesn't work as it is said in this topic. this presage funny thing on next build all.

Was a pain to have it running.
 
it's running on my server

curl
CURL support enabled
CURL Information libcurl/7.16.0 OpenSSL/0.9.8d zlib/1.2.3

no need to recompile php !

if i recompile it make errors, DA has to correct scripts, otherwise i have to reinstall curl older version before recompile, then install new curl
 
Curl install issue

Anyone else get this after untaring the tar.gz file, cd into the curl-17.16.0 and type the following

02:16 PM[root@box /usr/local/directadmin/customapache/curl-7.16.0 ] make

hecking how to use *nroff to get plain text from man pages... -man
checking whether to enable ares... no
checking whether to enable verbose strings... yes
checking whether to enable SSPI support (win32 builds only)... no
checking whether to enable debug options... no
checking whether to enable cryptographic authentication methods... yes
checking whether to enable support for cookies... yes
checking whether to enable hidden symbols in the library... no
configure: creating ./config.status
config.status: error: cannot find input file:
*** Error code 1

Stop in /usr/local/directadmin/customapache/curl-7.16.0.

any ideas would be appreciated as to why I get this..
 
anyone having problems with this on php 4.4.4? seen fixes for 5.1 but not 4.4, for now I have rolled back curl.
 
don't recompile php after curl update, it won't run with DA actual build script

recompile curl 7.15.0 , recompile php, then recompile curl 7.16.0 (manually in its folder)

this is the only way wich work on my conf.
 
Back
Top