php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44841 --disable-rpath breaks GD library
Submitted: 2008-04-26 16:47 UTC Modified: 2008-04-26 19:16 UTC
From: alex at alexjudd dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.2.5 OS: Centos 4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alex at alexjudd dot com
New email:
PHP Version: OS:

 

 [2008-04-26 16:47 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-26 19:16 UTC] jani@php.net
If you don't know what a configure option does and is used for DO NOT USE IT. No bug here.
 [2013-04-17 16:08 UTC] jose dot nobile at gmail dot com
http://php.net/manual/en/configure.about.php

--disable-rpath
Disable passing additional runtime library search paths.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 04:01:29 2024 UTC