The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem, please help quick! php compile errors

Discussion in 'General Discussion' started by BurnHost, Dec 23, 2002.

  1. BurnHost

    BurnHost Member

    Joined:
    Sep 8, 2002
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I keep getting all kinds of errors like this when compiling php:

    /usr/local/include/unix.h:625: redefinition of `struct timeval'
    /usr/local/include/unix.h:630: redefinition of `struct timespec'
    /usr/local/include/unix.h:728: two or more data types in declaration of `munmap'
    /usr/local/include/unix.h:823: parse error before `__asm__'
    /usr/local/include/unix.h:831: parse error before `__extension__'
    /usr/local/include/unix.h:831: warning: data definition has no type or storage class
    /usr/local/include/unix.h:831: parse error before `}'
    /usr/local/include/unix.h:835: parse error before `__asm__'
    /usr/local/include/unix.h:839: parse error before `do'
    /usr/local/include/unix.h:906: conflicting types for `symlink'
    /usr/local/include/unix.h:73: previous declaration of `symlink'
    /usr/local/include/unix.h:996: array size missing in `mtext'
    /usr/local/include/unix.h:1326: parse error before `va_list'
    /usr/local/include/unix.h:1335: warning: duplicate `extern'
    /usr/local/include/unix.h:1518: array size missing in `l_name'
    /usr/local/include/unix.h:1528: two or more data types in declaration of `getmsg'
    /usr/local/include/unix.h:1528: two or more data types in declaration of `getmsg'
    /usr/local/include/unix.h:1528: two or more data types in declaration of `getmsg'
    /usr/local/include/unix.h:1715: parse error before `isascii'
    /usr/local/include/unix.h:1715: warning: data definition has no type or storage class
    /usr/local/include/unix.h:1716: parse error before `toascii'
    /usr/local/include/unix.h:1716: warning: data definition has no type or storage class
    /usr/local/include/unix.h:1793: array size missing in `d_name'


    Any ideas? anywhere i can get a new unix.h file?

    Please help me quick, I've tried running /scripts/fixheaders... no dice.

    Regards,
    Matt
     
  2. BurnHost

    BurnHost Member

    Joined:
    Sep 8, 2002
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Omg I'm such a loser...

    All it needed was a graceful restart... ugh

    Spent an hour trying to figure out the problem when all it needed was a reboot.

    Regards,
    Matt
     
  3. BurnHost

    BurnHost Member

    Joined:
    Sep 8, 2002
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Ok, I'm still having this problem..

    I go to compile PHP, here's my config line:

    './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml--enable-trans-sid' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--with-mysql' '--with-pear' '--enable-sockets' '--enable-track-vars' '--enable-versioning' '--with-imap=/usr' '--with-pgsql=/usr' '--with-kerberos=/usr/kerberos' '--with-imap-ssl=/usr/bin/openssl' '--enable-magic-quotes' '--with-gd' '--with-zlib'

    No errors until make, at which point it runs for about 10 seconds, and then brings up massive errors on /usr/include/imap/unix.h, I've commented out a line in zend.h because that unix.h file was having issues, also. That fixed that problem (not knowing if it has affected anything at all aside from subducing the errors), but now I have the IMAP problem. I've reinstalled IMAP at least 20 times in attempts to recompile PHP with support for it. (currently webmail will not allow anyone to login because of this) I've ran fixheaders a dozen times.

    Can somebody please help me out here? I'm to the point of pulling out my hair over this .. :(

    Regards,
    Matt
     
  4. TheVoice

    TheVoice Well-Known Member

    Joined:
    Feb 7, 2002
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    16
    try the /scripts/easyapache

    choose number 5 and select whichever php modules you need.
     
  5. BurnHost

    BurnHost Member

    Joined:
    Sep 8, 2002
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I've tried that also. :(

    Regards,
    Matt
     
  6. Sketch

    Sketch Active Member

    Joined:
    Jan 1, 2003
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Baltimore, MD
    --enable-embed=shared not available

    I need to get the --enable-embed=shared in the ./configure, per http://www.sklar.com/page/article/myphp

    Unfortunately, this option does not seem to be available with /scripts/easyapache and though I can do a custom compile, I'm concerned about cpanel dependencies. Any hints?

    Aaron
     
Loading...

Share This Page