Results 1 to 10 of 10
  1. #1
    Join Date
    Jul 2002
    Location
    Atlanta, Georgia
    Posts
    339

    php: errors on compile

    m running redhat 7.2, and apache 2.0.35 with mod_ssl and open_ssl

    when i configure, compile and install apache, everything works fine...

    when i configure php, using,

    ./configure --with-mysql --with-apxs2=/www/bin/apxs
    it configures fine... when i go to 'make' it, i get,

    stub.lo: file not recognized: file truncated
    collect2: 1d returned 1 exit status
    make[1]: *** [libphp4.la] error 1
    make[1]: leaving directory '/junk/php-4.2.2'
    make: *** [all-recursive error 1

    and then it stops... anyone have any idea whats causing this and how i can sucessfully get it installed?

  2. #2
    Join Date
    Mar 2002
    Posts
    1,003
    http://www.phpbuilder.com/forum/read...&thread=100773

    Search for the error "stub.lo: file not recognized: file truncated" on google.com and you'll get a ton of help.

  3. #3
    Join Date
    Jul 2002
    Location
    Atlanta, Georgia
    Posts
    339
    thanks, that helped alot, and fixed the error, but now i get another, and im about to kick it... ill do a search on google for it, but if any of you could help me with it, that would be great... now i get

    php_functions.c:93:27: missing binarty operator before '!'
    make[3]: ***[php_functions.lo] error 1
    make[3]: leaving directory '/junk/php-4.2.2/sapi/apache2filter'
    make[2]: *** [all-recursive] error 1
    make[2]: leaving directory '/junk/php-4.2.2/sapi/apache2filter'
    make[1]: *** [all-recursive] error 1
    make[2]: leaving directory '/junk/php-4.2.2/sapi/apache2filter''
    make: *** [all-recursive] error 1


    thanks for any help.

  4. #4
    Join Date
    Mar 2002
    Posts
    1,003
    http://www.phpbuilder.com/forum/read...&thread=111446

    http://www.google.com/search?hl=en&l...missing+binary

    Try to compile the latest version of PHP and Apache.

    If you wanna make your life easier. Get PHP and Apache 1.3.26 because Apache2 gives problems.

    Also try to compile it as a static module.

  5. #5
    Open up "sapi/apache2filter/php_functions.c" in an editor and change where it says "MODULE_MAGIC_AT_LEAST(20020506,0)" to
    "AP_MODULE_MAGIC_AT_LEAST(20020506,0)"

    then run make and make install

  6. #6
    Join Date
    Jul 2002
    Location
    Atlanta, Georgia
    Posts
    339
    all of you, thanks alot, that fixed it, now i only have one more problem... when i start up, well, try to start up apache, i get...


    syntax error on line 232 of www/conf/httpd.conf
    cannot loadwww/modules/libphp4.so into server: /www/modules/libphp4.so
    undefined symbol: ts_resource ex

    thanks for all the help so far, setting up a server on redhat is alot different than on winbloze...
    Last edited by x222943; 07-26-2002 at 10:08 PM.

  7. #7
    Join Date
    Nov 2001
    Location
    Canada
    Posts
    1,963
    screw php and apache2

    use apche 4.2.2 and apache 1.3.26

    i had problems trying to compile php with apache2

  8. #8
    Join Date
    Jul 2002
    Location
    Atlanta, Georgia
    Posts
    339
    i wanted apache2, but oh well, im back to 1.3.26 where i started... but now, when i try to compile php into apache, on make i get

    make[5]: *** no rule to make target 'all'. stop.

    thanks for the help so far.

  9. #9
    Join Date
    Jul 2001
    Location
    Indianapolis, IN
    Posts
    537
    did you " ./configure" first. Also are you in the phpinstall directory that was created when you unzipped / untarred the download?

    -neil
    neil MCITP, VCP

  10. #10
    Join Date
    Jul 2002
    Location
    Atlanta, Georgia
    Posts
    339
    yes to both...

    thanks for replying

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •