Edit report at https://bugs.php.net/bug.php?id=44841&edit=1

 ID:                 44841
 Comment by:         jose dot nobile at gmail dot com
 Reported by:        alex at alexjudd dot com
 Summary:            --disable-rpath breaks GD library
 Status:             Not a bug
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Centos 4
 PHP Version:        5.2.5
 Block user comment: N
 Private report:     N

 New Comment:

http://php.net/manual/en/configure.about.php

--disable-rpath
Disable passing additional runtime library search paths.


Previous Comments:
------------------------------------------------------------------------
[2008-04-26 19:16:18] j...@php.net

If you don't know what a configure option does and is used for DO NOT USE IT. 
No bug here.

------------------------------------------------------------------------
[2008-04-26 16:47:05] alex at alexjudd dot com

Description:
------------
When compiling with both

--disable rpath

and

--with gd
--with t1lib

the compilation fails

Expected result:
----------------
Successful compilation

Actual result:
--------------
Fails with the following error

<SNIP>
hecking for GD support... yes
checking for the location of libjpeg... yes
checking for the location of libpng... yes
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... /usr
checking for T1lib support... yes
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... (cached) yes
checking for floorf... (cached) yes
checking for jpeg_read_header in -ljpeg... (cached) yes
checking for png_write_image in -lpng... (cached) yes
If configure fails try --with-xpm-dir=<DIR>
checking for FT_New_Face in -lfreetype... (cached) yes
checking for T1_StrError in -lt1... (cached) yes
configure: error: GD build test failed. Please check the config.log for details.

and config.log says

configure:37012: checking for T1_StrError in -lt1
configure:43279: gcc -o conftest -g -O2   -L/usr/kerberos/lib -L/usr/local/lib 
conftest.c    -lt1 -lfreetype -lpng -lz -ljpeg -lssl -lcrypto -lcurl -lz -lssl 
-lcrypto -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lcurl -lgssapi_krb5 -lkrb5 
-lk5crypto -lcom_err -lresolv -ldl -lidn -lssl -lcrypto -lz -lxml2 -lz -lm 1>&5
configure: failed program was:
#line 43268 "configure"
#include "confdefs.h"

    char foobar () {}
    char foobar();
    int main() {
      foobar();
      return 0;
    }


Removing --with rpath fixes the compilation


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=44841&edit=1

Reply via email to