Subject: gtk2 fails to build
To: None <netbsd-users@netbsd.org>
From: None <sigsegv@rambler.ru>
List: netbsd-users
Date: 08/13/2004 00:35:57
I just did a fresh "cvs checkout" of pkgsrc. Trying to build 
firefox-gtk2 in a chrooted environment, the build fails on gtk2 with the 
following message. Anyone had the same problems, or is it just me?

checking for XOpenDisplay in -lX11... no
configure: error: *** libX11 not found. Check 'config.log' for more details.
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/x11/gtk2
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/x11/gtk2
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/www/firefox-gtk2
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/www/firefox-gtk2




Looking at config.log this is where the problem could be:

configure:27972: checking for XOpenDisplay in -lX11
configure:28002: gcc -o conftest -O2 -march=athlon-tbird -m3dnow -mmmx 
-I/usr/pkg/inclu
de -I/usr/include -I/usr/pkg/include/freetype2 -Wall -I/usr/pkg/include 
-I/usr/include
-I/usr/pkg/include/freetype2 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib 
-L/usr/lib -Wl,-R/usr/li
b -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib conftest.c -lX11  
-Wl,-R/usr/pkg/lib -Wl,--rpat
h -Wl,/usr/pkg/lib -L/usr/pkg/lib -L/usr/X11R6/lib -lXft -lfreetype -lz 
-lXrender -lX11
 -lfontconfig -lX11 -lintl  >&5
ld: warning: libexpat.so.5, needed by 
/usr/obj.i386_athlon-tbird/pkg/x11/gtk2/work/.bui
ldlink/lib/libfontconfig.so, not found (try using -rpath or -rpath-link)
/usr/obj.i386_athlon-tbird/pkg/x11/gtk2/work/.buildlink/lib/libfontconfig.so: 
undefined
 reference to `XML_SetElementHandler'
/usr/obj.i386_athlon-tbird/pkg/x11/gtk2/work/.buildlink/lib/libfontconfig.so: 
undefined
 reference to `XML_SetDoctypeDeclHandler'
/usr/obj.i386_athlon-tbird/pkg/x11/gtk2/work/.buildlink/lib/libfontconfig.so: 
undefined
 reference to `XML_ParserFree'
/usr/obj.i386_athlon-tbird/pkg/x11/gtk2/work/.buildlink/lib/libfontconfig.so: 
undefined
 reference to `XML_SetCharacterDataHandler'
/usr/obj.i386_athlon-tbird/pkg/x11/gtk2/work/.buildlink/lib/libfontconfig.so: 
undefined
 reference to `XML_ErrorString'
/usr/obj.i386_athlon-tbird/pkg/x11/gtk2/work/.buildlink/lib/libfontconfig.so: 
undefined
 reference to `XML_ParseBuffer'
/usr/obj.i386_athlon-tbird/pkg/x11/gtk2/work/.buildlink/lib/libfontconfig.so: 
undefined
 reference to `XML_ParserCreate'
/usr/obj.i386_athlon-tbird/pkg/x11/gtk2/work/.buildlink/lib/libfontconfig.so: 
undefined
 reference to `XML_SetUserData'
/usr/obj.i386_athlon-tbird/pkg/x11/gtk2/work/.buildlink/lib/libfontconfig.so: 
undefined
 reference to `XML_GetErrorCode'
/usr/obj.i386_athlon-tbird/pkg/x11/gtk2/work/.buildlink/lib/libfontconfig.so: 
undefined
 reference to `XML_GetBuffer'
/usr/obj.i386_athlon-tbird/pkg/x11/gtk2/work/.buildlink/lib/libfontconfig.so: 
undefined
 reference to `XML_GetCurrentLineNumber'
configure:28008: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "gtk+"
| #define PACKAGE_TARNAME "gtk+"
| #define PACKAGE_VERSION "2.4.4"
| #define PACKAGE_STRING "gtk+ 2.4.4"
| #define PACKAGE_BUGREPORT 
"http://bugzilla.gnome.org/enter_bug.cgi?product=gtk+"
| #define GETTEXT_PACKAGE "gtk20"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define GTK_COMPILED_WITH_DEBUGGING "minimum"
| #define HAVE_LSTAT 1
| #define HAVE_MKSTEMP 1
| #define HAVE_FLOCKFILE 1
| #define HAVE_SIGSETJMP 1
| #define HAVE_LOCALE_H 1
| #define HAVE_LC_MESSAGES 1
| #define HAVE_BIND_TEXTDOMAIN_CODESET 1
| #define HAVE_GETTEXT 1
| #define HAVE_DCGETTEXT 1
| #define ENABLE_NLS 1
| #define GTK_LOCALEDIR "/usr/pkg/share/locale"
| #define HAVE_BIND_TEXTDOMAIN_CODESET 1
| #define HAVE_PWD_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define RETSIGTYPE void
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_WCHAR_H 1
| #define HAVE_WCTYPE_H 1
| #define USE_GMODULE 1
| #define HAVE_PROGRESSIVE_JPEG 1
| #define HAVE_SYS_WAIT_H 1
| #define RETSIGTYPE void
| #define USE_MMX 1
| /* end confdefs.h.  */
|
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char XOpenDisplay ();
| int
| main ()
| {
| XOpenDisplay ();
|   ;
|   return 0;
| }
configure:28034: result: no
configure:28039: error: *** libX11 not found. Check 'config.log' for 
more details.