php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42156 Undefined symbol: .XpmFreeXpmImage
Submitted: 2007-07-31 10:12 UTC Modified: 2007-08-01 08:57 UTC
From: jeremy dot jacque at maximo dot fr Assigned:
Status: Closed Package: GD related
PHP Version: 5.2.3 OS: AIX 5.1
Private report: No CVE-ID: None
 [2007-07-31 10:12 UTC] jeremy dot jacque at maximo dot fr
Description:
------------
I'm trying to configure php-5.2.3 on an AIX 5.1 with xlc 7.0
I'm using the xpm-3.4k (could be found there: http://www-03.ibm.com/servers/aix/products/aixos/linux/download.html )


Thank you in advance for the help.




Reproduce code:
---------------
export CC=/usr/vac/bin/xlc
export CFLAGS='-q64'
export OBJECT_MODE=64
export LDFLAGS='-L/opt/freeware/lib'

./configure --prefix=/patch/php/php --with-apxs2=/patch/php/apache/bin/apxs \
--without-mysql --enable-calendar --disable-dom --disable-libxml \
--disable-simplexml --without-libexpat --without-expat --disable-pear \
--without-pcre-regex --disable-ipv6 --without-imap \
--with-jpeg-dir=/opt/freeware \
--with-png-dir=/opt/freeware --without-xpm \
--with-freetype-dir=/opt/freeware --with-png-dir=/opt/freeware \
--disable-hash --disable-filter --disable-reflection \
--with-openssl=/opt/freeware --with-gd


Actual result:
--------------
the config.log says

ld: 0711-317 ERROR: Undefined symbol: .XpmFreeXpmImage
 .XpmFreeXpmImage          [14]    ER PR conftest.c(conftest.o)
                                   0000000c .text    R_RBR    [6]     .main
ER: The return code is 8.
configure: failed program was:
#line 35330 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char XpmFreeXpmImage();

int main() {
XpmFreeXpmImage()
; return 0; }


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-01 08:57 UTC] jeremy dot jacque at maximo dot fr
I solved the issue by compiling libxpm from source cause the one from IBM does not contain any symbol.

I'm actually trying the "latest" version but i've got an other problem when configuring libtool. I'll post a new bug report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 11:01:27 2024 UTC