ld: symbol(s) not found, running make with PHP5.2.9

started at 14 Mar 2009 by 0N1X
  • 0N1X
    14 Mar 2009

    When running make, after some lines it stops with the error:

    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    make: *** [libs/libphp5.bundle] Error 1

  • Richard
    17 Mar 2009

    Have you installed MySQL using the source compilation method as described in the MySQL document set?

    Otherwise I need to see more of the output to see where the error occurred

  • 0N1X
    17 Mar 2009

    Well that's the other problem I'm having. I posted as Jared on the MYSQL compile for Leopard 64 bit. I did install the binary and then am trying to compile and am, I believe, running form the proper source. I did, however install and use the latest 5.1 but still get the /.configure error that it can't be found. I'll look again and let you know. Thank you for the help.

  • Richard
    18 Mar 2009

    We'll you need to use the 5.0.x version of MySQL to get everything working properly. I'm still working on a proper install procedure for 5.1.x

  • Roberto
    04 Feb 2010

    Was this issue ever resolved I am getting the same error. I’ve successfully installed php5 off the guides then I went back and tried adding the mcrypt and GD module. Those installed successfully but now that I try recompiling php5 I get the following error after MAKE

    /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
    _png_check_sig
    collect2: ld returned 1 exit status
    make: *** [libs/libphp5.bundle] Error 1

    These are the configurations I used:

    ./configure –prefix=/usr/local/php5 \
    –mandir=/usr/share/man \
    –infodir=/usr/share/info \
    –sysconfdir=/etc \
    –with-config-file-path=/etc \
    –with-zlib \
    –with-zlib-dir=/usr \
    –with-openssl \
    –without-iconv \
    –enable-exif \
    –enable-ftp \
    –enable-mbstring \
    –enable-mbregex \
    –enable-sockets \
    –with-gd \
    –with-jpeg-dir=/usr/local/lib \
    –with-png-dir=/usr/X11R6 \
    –with-freetype-dir=/usr/X11R6 \
    –with-xpm-dir=/usr/X11R6 \
    –with-mcrypt \
    –with-mysql=/usr/local/mysql \
    –with-pdo-mysql=/usr/local/mysql \
    –with-mysqli=/usr/local/mysql/bin/mysql_config \
    –with-apxs2=/usr/local/apache2/bin/apxs

    Any idea what it could be. Thanks in advance.

  • Richard
    04 Feb 2010

    Roberto, do you get the same error using php 5.2.x ?

    Otherwise try the tip mentioned on http://www.bill.eccles.net/bills_words/2010/01/building-a-mac-os-x-server-106.html

  • Roberto
    04 Feb 2010

    No Im using PHP 5.3.1. I will try tips on the link.

Reply

You must log in to post.