[libGD] #217 [Task opened] libtool using shared version of freetype

[email protected] Wed, 18 Nov 2009 22:45:36 +0100 (CET)
Newsgroups php.gd.bugs
Message-ID <[email protected]>
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Kevin Sharkey (kjsharke) 

Attached to Project - libGD
Summary - libtool using shared version of freetype
Task Type - Bug Report
Category - Configure/Build
Status - Unconfirmed
Assigned To - 
Operating System - Linux
Severity - Low
Priority - Normal
Reported Version - 2.0.35
Due in Version - Undecided
Due Date - Undecided
Details - Hi,

I am trying to build libgd for the compute nodes on a Cray XT system, which requires me to use static libraries.

To configure, I simply use:
../configure CC=cc CXX=CC --build=x86_64 --prefix=$SW_BLDDIR --without-jpeg --with-freetype=$FREETYPEDIR --disable-shared

I just installed libfreetype.a in FREETYPEDIR, which is /sw/xt/gdlib/2.0.35/cnl2.2_pgi9.0.3/freetype-2.3.11/lib

cc and CC are Cray-provided wrappers for C and C++ compilers respectively.  In this case, they are calling PGI 9.0.3 compilers, I have also tried with gcc 4.4.1.  

When I run 'make', I get two errors:
* libtool a linker option "--rpath", which isn't valid (and there is also a valid "-rpath" option, and I am making a static library).  This is easy to fix, I can just search for it in "libtool" and remove those lines
* libtool specifically designates /usr/lib64/libfreetype.so, even though it is a static build, and I specifically designated a different version.  This also happens with jpeg, though zlib and png are fine --

/bin/sh ./libtool --tag=CC --mode=link cc  -g  -L/usr/lib64 -Wl,-rpath,/usr/lib64  -o annotate  annotate.o ./libgd.la  -lfreetype -lpng12 -lz 
cc -g -rpath /usr/lib64 -o annotate annotate.o  -L/usr/lib64 ./.libs/libgd.a /usr/lib64/libfreetype.so -lpng12 -lz

If I copy the compile line and change "/usr/lib64/libfreetype.so" to "-lfreetype", it works fine (there is another libfreetype.a in /usr/lib64, I don't mind using that: installing freetype elsewhere was an attempted workaround)


Any ideas?

-Kevin Sharkey

More information can be found at the following URL:
http://bugs.libgd.org/?do=details&task_id=217

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.