php config'd "--with-freetype-dir=/usr/local/X11R6" ignores setting, and links to lib in /usr/X11R6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

hi,

i was certain this was a bug ... but now i'm 2nd-guessing myself,
wondering abt my config.  something wrong/missing?

i'm, building php-5.2 cvs-head on OSX 10.4.6.

as prereq, i've FreeType2 built into my /usr/local/X11R6 tree:

	cd /usr/local/X11R6/lib/
	ls -al *freetype*
		-rwxr-xr-x 1 root wheel 1975684 2006-06-05 21:50
libfreetype.6.3.10.dylib
		lrwxr-xr-x 1 root wheel      24 2006-06-05 21:50 libfreetype.6.dylib
- -> libfreetype.6.3.10.dylib
		-rw-r--r-- 1 root wheel 2093880 2006-06-05 21:50 libfreetype.a
		lrwxr-xr-x 1 root wheel      24 2006-06-05 21:50 libfreetype.dylib ->
libfreetype.6.3.10.dylib
		-rwxr-xr-x 1 root wheel     901 2006-06-05 21:50 libfreetype.la

nonetheless, w/ ENV of:

	setenv CPPFLAGS "-I${ULDM}/mysql/include/mysql
- -I${ULDM}/berkeley-db/include -I/usr/local/include
- -I/usr/local/ssl/include -I/usr/local/ncurses/include
- -I/usr/local/X11R6/include"
	setenv LDFLAGS "-bind_at_load -L${ULDM}/mysql/lib/mysql -lmysqlclient_r
- -L${ULDM}/berkeley-db/lib -ldb -L/usr/local/lib -lpcre
- -L/usr/local/ssl/lib -lssl -lcrypto -L/usr/local/ncurses/lib -lncurses
- -L/usr/local/X11R6/lib"

and config'ing as:

	./configure \
	...
	--with-freetype-dir=/usr/local/X11R6 \
	...

config output to console reports, as expected:

	...
	checking for FreeType 2... /usr/local/X11R6
	...

BUT, once built,checking the binary's linking,

otool -L ${ULDM}/php5/bin/php | grep freetype
        /usr/X11R6/lib/libfreetype.6.dylib (compatibility version
10.0.0, current version 10.8.0)

i.e., NOT the libfreetype we're targeting!

checking in the Makefile:

	grep X11R6 Makefile

i find:

...
CPPFLAGS = -I/usr/local/mysql/include/mysql
- -I/usr/local/berkeley-db/include -I/usr/local/include
- -I/usr/local/ssl/include -I/usr/local/ncurses/include
- -I/usr/local/X11R6/include -no-cpp-precomp
EXTRA_LDFLAGS = -L/usr/local/lib -L/usr/local/ssl/lib
- -L/usr/local/berkeley-db/lib -L/usr/X11R6/lib -L/usr/local/X11R6/lib
- -L/usr/local/gd/lib -L/usr/local/ncurses/lib/
- -L/usr/local/mysql/lib/mysql -L/usr/local/ncurses/lib
- -L/usr/local/net-snmp/lib
EXTRA_LDFLAGS_PROGRAM = -L/usr/local/lib -L/usr/local/ssl/lib
- -L/usr/local/berkeley-db/lib -L/usr/X11R6/lib -L/usr/local/X11R6/lib
- -L/usr/local/gd/lib -L/usr/local/ncurses/lib/
- -L/usr/local/mysql/lib/mysql -L/usr/local/ncurses/lib
- -L/usr/local/net-snmp/lib
INCLUDES = -I/usr/local/include/libxml2 -I/usr/local/include
- -I/usr/local/ssl/include -I/usr/ports/php-5.2cvs/ext/date/lib
- -I/usr/X11R6/include -I/usr/local/X11R6/include
- -I/usr/local/X11R6/include/freetype2 -I/usr/local/gd/include
- -I/usr/ports/php-5.2cvs/ext/mbstring/oniguruma
- -I/usr/ports/php-5.2cvs/ext/mbstring/libmbfl
- -I/usr/ports/php-5.2cvs/ext/mbstring/libmbfl/mbfl
- -I/usr/local/mysql/include/mysql -I/usr/local/ncurses/include/ncurses
- -I/usr/local/net-snmp/include -I$(top_builddir)/TSRM
- -I$(top_builddir)/Zend
NATIVE_RPATHS = -L/usr/local/lib -L/usr/local/ssl/lib
- -L/usr/local/berkeley-db/lib -L/usr/X11R6/lib -L/usr/local/X11R6/lib
- -L/usr/local/gd/lib -L/usr/local/ncurses/lib/
- -L/usr/local/mysql/lib/mysql -L/usr/local/ncurses/lib
- -L/usr/local/net-snmp/lib
PHP_LDFLAGS = -L/usr/local/lib -L/usr/local/ssl/lib
- -L/usr/local/berkeley-db/lib -L/usr/X11R6/lib -L/usr/local/X11R6/lib
- -L/usr/local/gd/lib -L/usr/local/ncurses/lib/
- -L/usr/local/mysql/lib/mysql -L/usr/local/ncurses/lib
- -L/usr/local/net-snmp/lib
PHP_RPATHS = -R /usr/local/lib -R /usr/local/ssl/lib -R
/usr/local/berkeley-db/lib -R /usr/X11R6/lib -R /usr/local/X11R6/lib -R
/usr/local/gd/lib -R /usr/local/ncurses/lib/ -R
/usr/local/mysql/lib/mysql -R /usr/local/ncurses/lib -R
/usr/local/net-snmp/lib

there needs to be a way to get php build to pick up freetype from where
i tell it to ...

richard
- --

/"\
\ /  ASCII Ribbon Campaign
 X   against HTML email, vCards
/ \  & micro$oft attachments

[GPG] OpenMacNews at gmail dot com
fingerprint: 50C9 1C46 2F8F DE42 2EDB  D460 95F7 DDBD 3671 08C6
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iEYEAREDAAYFAkSJ2YQACgkQlffdvTZxCMZklwCdFAUXg6Nuz1n/5nvDmW3np/y4
1DIAn27NztLjWcS19evRawwqIQEw+LZ4
=ZmmD
-----END PGP SIGNATURE-----

[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux