PHP build problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tony Muler

    PHP build problem

    Dear all,

    downloaded PHP 4.3.2 for installation on Sun Solaris 7,
    using gcc and GNU's make 3.8 and alternatively the
    make that comes with Solaris (/usr/ccs/bin/make).

    ../configure \
    --with-apxs=/usr/local/apache/bin/apxs \
    --with-mysql=/usr/local/mysql

    No problems reported.

    make

    It runs and when linking it stops with:

    Undefined symbol First referenced in file
    mysql_character _set_name ext/mysql/php_mysql.lo
    mysql_real_esca pe_string ext/mysql/php_mysql.lo

    ld: fatal: Symbol referencing errors. No output
    written to sapi/cli/php
    make: *** [sapi/cli/php] Error 1


    As 4.3.2 is quite new, I then downloaded 4.3.1, but
    the same problem appeared.

    Then I tried if the compilation of PHP 4.1.2 still
    works on my system (removed config.cache), and it
    does. No problems when building PHP 4.1.2.
    But I urgently want to do the upgrade for security
    and other reasons.

    Thank you very much for any good idea.

    Tony



  • jayjwa

    #2
    Re: PHP build problem

    Tony Muler wrote:[color=blue]
    > Dear all,
    >
    > downloaded PHP 4.3.2 for installation on Sun Solaris 7,
    > using gcc and GNU's make 3.8 and alternatively the
    > make that comes with Solaris (/usr/ccs/bin/make).
    >
    > ./configure \
    > --with-apxs=/usr/local/apache/bin/apxs \
    > --with-mysql=/usr/local/mysql
    >
    > No problems reported.
    >
    > make
    >
    > It runs and when linking it stops with:
    >
    > Undefined symbol First referenced in file
    > mysql_character _set_name ext/mysql/php_mysql.lo
    > mysql_real_esca pe_string ext/mysql/php_mysql.lo
    >
    > ld: fatal: Symbol referencing errors. No output
    > written to sapi/cli/php
    > make: *** [sapi/cli/php] Error 1
    >
    >
    > As 4.3.2 is quite new, I then downloaded 4.3.1, but
    > the same problem appeared.
    >
    > Then I tried if the compilation of PHP 4.1.2 still
    > works on my system (removed config.cache), and it
    > does. No problems when building PHP 4.1.2.
    > But I urgently want to do the upgrade for security
    > and other reasons.
    >
    > Thank you very much for any good idea.
    >
    > Tony
    >
    >
    >[/color]


    I know it's not much help, but I had similar troubles when upgrading,
    the verion I had upgraded to just wouldn't work at all, when the older
    version did. That was with the Windows pre-compiled binaries too, so I
    know it wasn't due to my compilation. You may not be able to run that
    version, maybe because of a small bug that wasn't found that affects
    your system. I just went to 4.3.2 on Linux yesterday, and so far no trouble.

    --
    --------------nonoffensive sig.v2.2RC2?------------------------
    - jayjwa 4 Spammers: mailto: listme@listme.d sbl.org
    The New Atr2. PGP/GPG Keys onsite
    "Why do all the noob's use RedHat,
    speak 4th grade English,
    and cry because their X server crashed?"
    Send HTTP1.1 GET to /cgi-bin/ping-jay.cgi, my domain, 2 mail
    ==Atr2.Ath.Cx: Linux Tough, Powered by Slackware.===== ========



    Comment

    • Tony Muler

      #3
      Re: PHP build problem

      jayjwa wrote:
      [color=blue]
      > I know it's not much help, but I had similar troubles when upgrading,
      > the verion I had upgraded to just wouldn't work at all, when the older
      > version did. That was with the Windows pre-compiled binaries too, so I
      > know it wasn't due to my compilation. You may not be able to run that
      > version, maybe because of a small bug that wasn't found that affects
      > your system. I just went to 4.3.2 on Linux yesterday, and so far no
      > trouble.[/color]

      As 4.3.2 does not build for me, I guess I will have to go back
      until I find a version that works for me ;-)

      T.


      Comment

      • jayjwa

        #4
        Re: PHP build problem

        Tony Muler wrote:[color=blue]
        > jayjwa wrote:
        >[color=green]
        >> I know it's not much help, but I had similar troubles when upgrading,
        >> the verion I had upgraded to just wouldn't work at all, when the older
        >> version did. That was with the Windows pre-compiled binaries too, so I
        >> know it wasn't due to my compilation. You may not be able to run that
        >> version, maybe because of a small bug that wasn't found that affects
        >> your system. I just went to 4.3.2 on Linux yesterday, and so far no
        >> trouble.[/color]
        >
        >
        > As 4.3.2 does not build for me, I guess I will have to go back
        > until I find a version that works for me ;-)
        >
        > T.
        >
        >[/color]

        That's what I had to do too, until I moved to Linux[color=blue]
        > But I urgently want to do the upgrade for security
        > and other reasons.[/color]

        I dont' think security's a big worry really, I haven't seen many
        examples of PHP being exploited.
        Maybe you could have someone compile it for you, that has the same type
        system as yours? Maybe a header file or something got corrupted from
        your source code lib...


        --
        --------------nonoffensive sig.v2.2RC2?------------------------
        - jayjwa 4 Spammers: mailto: listme@listme.d sbl.org
        The New Atr2. PGP/GPG Keys onsite
        "Why do all the noob's use RedHat,
        speak 4th grade English,
        and cry because their X server crashed?"
        Send HTTP1.1 GET to /cgi-bin/ping-jay.cgi, my domain, 2 mail
        ==Atr2.Ath.Cx: Linux Tough, Powered by Slackware.===== ========



        Comment

        Working...