Subject: pkg/13321: www/php3-gd does not handle freetype
To: None <gnats-bugs@gnats.netbsd.org>
From: SUNAGAWA Keiki <keiki_sunagawa@yokgoawa.co.jp>
List: netbsd-bugs
Date: 06/27/2001 17:41:01
>Number:         13321
>Category:       pkg
>Synopsis:       www/php3-gd does not handle freetype
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 27 01:39:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     SUNAGAWA Keiki
>Release:        pkgsrc as of today
>Organization:
	Yokogawa Electric Corporation
>Environment:
	
System: NetBSD vivid 1.4.1 NetBSD 1.4.1 (GENERIC) #1: Tue Aug 10 00:03:09 MEST 1999 fvdl@struis:/usr/src/sys/arch/i386/compile/GENERIC i386

I got same result on 1.5_BETA2.

>Description:

	php-gd-3.0.18 package installs shared object file gd.so.  It is linked
	libttf.so.  The problem here is that the configure script can't find
	freetype library in spite of the option '--with-gd' for some reason, so
	freetype stuff doesn't be compiled into it.

	config.log shows that the configure script can't find libX11.so.6.

...

configure:5787: cc -o conftest -O2 -I/usr/pkg/include   -Wl,-R/usr/pkg/lib -L/us
r/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -L/usr/pkg/lib conftest.c -lgd  -lm 
-lcrypt  -lresolv -lz -lpng 1>&5
/usr/bin/ld: warning: libX11.so.6, needed by /usr/pkg/lib/libgd.so, not found (t
ry using --rpath)
/usr/pkg/lib/libXpm.so.4: undefined reference to `XDefaultScreen'
/usr/pkg/lib/libXpm.so.4: undefined reference to `XCreateImage'
/usr/pkg/lib/libXpm.so.4: undefined reference to `XDefaultVisual'
/usr/pkg/lib/libXpm.so.4: undefined reference to `XFreeGC'
/usr/pkg/lib/libXpm.so.4: undefined reference to `XUngrabServer'
/usr/pkg/lib/libXpm.so.4: undefined reference to `XGetImage'
/usr/pkg/lib/libXpm.so.4: undefined reference to `XFreeColors'
/usr/pkg/lib/libXpm.so.4: undefined reference to `XParseColor'
/usr/pkg/lib/libXpm.so.4: undefined reference to `XGrabServer'
/usr/pkg/lib/libXpm.so.4: undefined reference to `XQueryColors'
/usr/pkg/lib/libXpm.so.4: undefined reference to `XAllocColor'
/usr/pkg/lib/libXpm.so.4: undefined reference to `XGetGeometry'
/usr/pkg/lib/libXpm.so.4: undefined reference to `XDefaultColormap'
/usr/pkg/lib/libXpm.so.4: undefined reference to `XDefaultDepth'
/usr/pkg/lib/libXpm.so.4: undefined reference to `XPutImage'
/usr/pkg/lib/libXpm.so.4: undefined reference to `XCreatePixmap'
/usr/pkg/lib/libXpm.so.4: undefined reference to `XCreateGC'
collect2: ld returned 1 exit status
configure: failed program was:

...

>How-To-Repeat:

	build and install php-gd-3.0.18.  Then find it doesn't work with
	freetype.

>Fix:

	Sorry, I had no idea.  I tried modifying the configure option some,
	with no success so far.
>Release-Note:
>Audit-Trail:
>Unformatted: