Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jun 2002 15:18:18 -0500
From:      Cory Bajus <cbajus@mts.mb.ca>
To:        freebsd-questions@freebsd.org
Cc:        DougB@freebsd.org
Subject:   Problem with xscreensaver port
Message-ID:  <20020606151818.A67068@knuth.mts.mb.ca>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020606151818.A67068>