[Slackbuilds-users] compiling php

Larry Hajali larryhaja at gmail.com
Tue Sep 9 02:27:57 UTC 2014


It looks like you're building on a x86_64 multilib machine.  The library
libldap.so is being found first in /usr/lib (as well as other libs), but
you're using the '-O2 -fPIC' SLKCFLAGS which are x86_64 specific.  Try
rebuilding php on a non-multilib x86_64 machine or else try passing
LDFLAGS="/usr/lib${LIBDIRSUFFIX}" to the configure script.

http://slackbuilds.org/faq/#multilib

--Larry

On Mon, Sep 8, 2014 at 3:27 PM, Miguel De Anda <miguel at thedeanda.com> wrote:

> i couldn't find a suitable mailing list on slackware official so i thought
> i'd ask here...
>
> i'm trying to build php to add debug support as it seems the supplied one
> has '--disable-debug' set. when i run the php slackbuild in the sources
> directory (from current) i get the following:
>
> /bin/sh ../libtool --tag=CC   --mode=link gcc -std=gnu99 -pthread -O2
> -fPIC  -L/usr/lib  -o pico main.o utf8stub.o ../c-client/utf8.o libpico.a
> osdep/libpicoosd.a ../pith/osdep/libpithosd.a ../pith/charconv/libpithcc.a
>  -lcrypto -lssl -lldap  -lncurses -llber -lssl -lcrypto
> libtool: link: gcc -std=gnu99 -pthread -O2 -fPIC -o pico main.o utf8stub.o
> ../c-client/utf8.o  -L/usr/lib libpico.a osdep/libpicoosd.a
> ../pith/osdep/libpithosd.a ../pith/charconv/libpithcc.a /usr/lib/libldap.so
> /usr/lib/libsasl2.so -ldl -lncurses /usr/lib/liblber.so -lresolv -lssl
> -lcrypto -pthread
> /usr/lib/libldap.so: error adding symbols: File in wrong format
> collect2: error: ld returned 1 exit status
> make[3]: *** [pico] Error 1
> make[3]: Leaving directory `/mnt/sdb1/tmp/alpine-2.11/pico'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/mnt/sdb1/tmp/alpine-2.11/pico'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/mnt/sdb1/tmp/alpine-2.11'
> make: *** [all] Error 2
>
> has anybody dealt with this? do i need to build other slackware sources
> first maybe? i notice it references alpine at some point.
>
> thanks,
> miguel
>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - http://slackbuilds.org/faq/
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20140908/efd464b0/attachment-0001.html>


More information about the SlackBuilds-users mailing list