From owner-freebsd-questions Thu Jun 6 13:18:55 2002 Delivered-To: freebsd-questions@freebsd.org Received: from pioneers1.mts.mb.ca (pioneers1.mts.mb.ca [142.160.2.11]) by hub.freebsd.org (Postfix) with ESMTP id 8293537B404; Thu, 6 Jun 2002 13:18:44 -0700 (PDT) Received: from knuth.mts.mb.ca (knuth.mts.mb.ca [142.160.165.207]) by pioneers1.mts.mb.ca (8.9.2/8.9.2) with ESMTP id PAA06083; Thu, 6 Jun 2002 15:18:42 -0500 (CDT) Received: from knuth.mts.mb.ca (localhost [127.0.0.1]) by knuth.mts.mb.ca (8.12.3/8.12.3) with ESMTP id g56KIJcp093627; Thu, 6 Jun 2002 15:18:19 -0500 (CDT) (envelope-from cbajus@knuth.mts.mb.ca) Received: (from cbajus@localhost) by knuth.mts.mb.ca (8.12.3/8.12.3/Submit) id g56KIJ5s093626; Thu, 6 Jun 2002 15:18:19 -0500 (CDT) Date: Thu, 6 Jun 2002 15:18:18 -0500 From: Cory Bajus To: freebsd-questions@freebsd.org Cc: DougB@freebsd.org Subject: Problem with xscreensaver port Message-ID: <20020606151818.A67068@knuth.mts.mb.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Is anyone else having problems building the xscreensaver 4.04.2 port? On my 4-STABLE system, the port seems to be confused about the location of the gtk and glib libraries: cc -Wall -Wstrict-prototypes -Wnested-externs -Wno-format -std=c89 -U__STRICT_ANSI__ -c -I. -I. -I./../utils -I.. -I/usr/local/include/glib12/glib-1.2 -I/usr/local/lib/glib/include -I/usr/X11R6/include/gtk12/gtk-1.2 -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include -DHAVE_CONFIG_H -DDEFAULT_PATH_PREFIX='"/usr/X11R6/bin/xscreensaver-hacks"' -I./../utils/images \ -DHAVE_CONFIG_H -DDEFAULT_ICONDIR='"/usr/share/xscreensaver"' -DLOCALEDIR=\"/usr/X11R6/share/locale\" -O -pipe -march=pentiumpro -I/usr/local/include -I/usr/local/include/gnome-xml -I/usr/X11R6/include \ ./demo-Gtk.c ./demo-Gtk.c:74: gtk/gtk.h: No such file or directory ./demo-Gtk.c:81: gdk/gdkx.h: No such file or directory In file included from ./demo-Gtk.c:106: demo-Gtk-support.h:9: gtk/gtk.h: No such file or directory In file included from ./demo-Gtk.c:105: The '-I/usr/X11R6/include/gtk12/gtk-1.2' seems incorrect - on my system, the gtk includes are in /usr/X11R6/include/gtk12. Same with glib - my includes are in /usr/local/include/glib12, not /usr/local/include/glib12/glib-1.2. Creating symbolic links to fix the include problem causes the following error at link time: cc -Wall -Wstrict-prototypes -Wnested-externs -Wno-format -std=c89 -U__STRICT_ANSI__ -L/usr/X11R6/lib -o xscreensaver-demo-Gtk prefs.o dpms.o remote.o exec.o ../utils/resources.o ../utils/usleep.o ../utils/visual.o demo-Gtk.o demo-Gtk-conf.o demo-Gtk-widgets.o demo-Gtk-support.o -L/usr/local/lib -L/usr/X11R6/lib \ -L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -lintl -lXext -lX11 -lm -lglib -lXmu -lSM -lICE -lXt -lX11 \ -lXext /usr/libexec/elf/ld: cannot find -lgtk gmake[1]: *** [xscreensaver-demo-Gtk] Error 1 gmake[1]: Leaving directory `/usr/ports/x11/xscreensaver/work/xscreensaver-4.04/driver' gmake: *** [all] Error 5 *** Error code 2 Here, the problem seems to be using -lgtk -lglib -lgdk instead of -lgtk12 -lglib12 -lgdk12. Removing the symbolic links and editing work/xscreensaver-4.04/driver/Makefile (change INCLUDES and GTK_LIBS) seems to allow the port to build. There also seems to be a problem with XML support, because the descriptions in the 'Settings' dialog of xscreensaver-demo do not seem to work. I wish I could suggest a patch, but this is beyond my ability... I notice a PR (ports/3894) that looks similar has been filed against xscreensaver-gnome. Cory. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message