Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

buildapache fails - curl errors...

Discussion in 'EasyApache' started by 4u123, Jan 17, 2006.

  1. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    838
    Likes Received:
    14
    Trophy Points:
    168
    Yesterday I was updating apache on a new server from within WHM and lost my connection half way thru due to a power cut - this screwed up the installation.

    When I try again, everything is ok except curl - I get the errors below...

    Can anyone tell me how to clean this out and start again ? Or shouldl I simply re-install the OS ?

    make -j 1 php-4.3.3...(clean).... Done

    make -j 1 php-4.3.3....... . . . . . . . . . Done
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:604: error: invalid application of `sizeof' to incomplete type `HttpPost'
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c: In function `zif_curl_setopt':
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:884: warning: passing arg 1 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:884: warning: passing arg 2 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:892: warning: passing arg 1 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:892: warning: passing arg 2 of `curl_formadd' from incompatible pointer type
    make: *** [ext/curl/curl.lo] Error 1

    make php-4.3.3...(install).... Done
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:604: error: invalid application of `sizeof' to incomplete type `HttpPost'
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c: In function `zif_curl_setopt':
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:884: warning: passing arg 1 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:884: warning: passing arg 2 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:892: warning: passing arg 1 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:892: warning: passing arg 2 of `curl_formadd' from incompatible pointer type
    make: *** [ext/curl/curl.lo] Error 1
    /etc/rc.d/init.d/httpd start: httpd could not be started

    configure php-4.3.3...(--prefix=/usr --with-xml --enable-bcmath --enable-calendar --with-curl --with-swf=/usr/local/flash --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-ming=../ming-0.2a --enable-magic-quotes --with-mysqli --with-mysql=/usr --enable-discard-path --with-pear --enable-xslt --with-xslt-sablot --enable-safe-mode --enable-sockets --enable-track-vars --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --enable-versioning --with-zlib).... . . . . . . . . . . Done

    make -j 1 php-4.3.3...(clean).... Done

    make -j 1 php-4.3.3....... . . . . . . Done
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:604: error: invalid application of `sizeof' to incomplete type `HttpPost'
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c: In function `zif_curl_setopt':
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:884: warning: passing arg 1 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:884: warning: passing arg 2 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:892: warning: passing arg 1 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:892: warning: passing arg 2 of `curl_formadd' from incompatible pointer type
    make: *** [ext/curl/curl.lo] Error 1

    make php-4.3.3...(install).... Done
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:604: error: invalid application of `sizeof' to incomplete type `HttpPost'
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c: In function `zif_curl_setopt':
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:884: warning: passing arg 1 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:884: warning: passing arg 2 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:892: warning: passing arg 1 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:892: warning: passing arg 2 of `curl_formadd' from incompatible pointer type
    make: *** [ext/curl/curl.lo] Error 1
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Odd.

    Try removing the existing apache build files:

    rm -Rfv /home/cpapachebuild

    Then rebuild and be sure to not select the "Skip apache build if up to date" option
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    838
    Likes Received:
    14
    Trophy Points:
    168
    Tried that.

    Now I get this...

    Untarring php....Done
    Applying CURL curl_formfree patch
    patching file ext/curl/curl.c
    Hunk #1 FAILED at 545.
    Hunk #2 FAILED at 885.
    2 out of 2 hunks FAILED -- saving rejects to file ext/curl/curl.c.rej

    configure php-4.3.3...(--with-apxs=/usr/local/apache/bin/apxs --prefix=/usr/local --with-xml --enable-bcmath --enable-calendar --with-curl --with-swf=/usr/local/flash --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-ming=../ming-0.2a --enable-magic-quotes --with-mysqli --with-mysql=/usr --enable-discard-path --with-pear --enable-xslt --with-xslt-sablot --enable-safe-mode --enable-sockets --enable-track-vars --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --enable-versioning --with-zlib).... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done

    make -j 1 php-4.3.3...(clean).... Done

    make -j 1 php-4.3.3....... . . . . . . . . . Done
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:604: error: invalid application of `sizeof' to incomplete type `HttpPost'
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c: In function `zif_curl_setopt':
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:884: warning: passing arg 1 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:884: warning: passing arg 2 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:892: warning: passing arg 1 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:892: warning: passing arg 2 of `curl_formadd' from incompatible pointer type
    make: *** [ext/curl/curl.lo] Error 1

    make php-4.3.3...(install).... Done
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:604: error: invalid application of `sizeof' to incomplete type `HttpPost'
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c: In function `zif_curl_setopt':
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:884: warning: passing arg 1 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:884: warning: passing arg 2 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:892: warning: passing arg 1 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:892: warning: passing arg 2 of `curl_formadd' from incompatible pointer type
    make: *** [ext/curl/curl.lo] Error 1
    /etc/rc.d/init.d/httpd start: httpd could not be started

    configure php-4.3.3...(--prefix=/usr --with-xml --enable-bcmath --enable-calendar --with-curl --with-swf=/usr/local/flash --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-ming=../ming-0.2a --enable-magic-quotes --with-mysqli --with-mysql=/usr --enable-discard-path --with-pear --enable-xslt --with-xslt-sablot --enable-safe-mode --enable-sockets --enable-track-vars --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --enable-versioning --with-zlib).... . . . . . . . . . . Done

    make -j 1 php-4.3.3...(clean).... Done

    make -j 1 php-4.3.3....... . . . . . Done
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:604: error: invalid application of `sizeof' to incomplete type `HttpPost'
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c: In function `zif_curl_setopt':
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:884: warning: passing arg 1 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:884: warning: passing arg 2 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:892: warning: passing arg 1 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:892: warning: passing arg 2 of `curl_formadd' from incompatible pointer type
    make: *** [ext/curl/curl.lo] Error 1

    make php-4.3.3...(install).... Done
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:604: error: invalid application of `sizeof' to incomplete type `HttpPost'
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c: In function `zif_curl_setopt':
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:884: warning: passing arg 1 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:884: warning: passing arg 2 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:892: warning: passing arg 1 of `curl_formadd' from incompatible pointer type
    /home/cpapachebuild/buildapache/php-4.3.3/ext/curl/curl.c:892: warning: passing arg 2 of `curl_formadd' from incompatible pointer type
    make: *** [ext/curl/curl.lo] Error 1
     
  4. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    838
    Likes Received:
    14
    Trophy Points:
    168
    Do you think the best thing here is to re- partition and re-install Linux ?

    I think something must be corrupt.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice