Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#17682 closed defect (fixed)

xscreensaver fails to build

Reported by: martinsm@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: build failure Cc:
Port: xscreensaver

Description

note all components updated previous to build including X11-2.3.1 build log below (not very big, very quick failure) note despite the error 2 on the first line, this directory exists and is populated.

--->  Building xscreensaver
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_xscreensaver/work/xscreensaver-5.07" && make all " returned error 2
Command output: /usr/bin/gcc-4.0 -pedantic -Wall -Wstrict-prototypes -Wnested-externs -Wmissing-prototypes -Wdeclaration-after-statement -no-cpp-precomp -std=c89 -U__STRICT_ANSI__ -c -I. -I. -I./../utils -I..  -I/opt/local/include/gtk-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include   -DHAVE_CONFIG_H -O2 -I/sw/include  -I/usr/X11/include xscreensaver-getimage.c
xscreensaver-getimage.c:58:42: error: gdk-pixbuf/gdk-pixbuf-xlib.h: No such file or directory
xscreensaver-getimage.c: In function 'read_file_gdk':
xscreensaver-getimage.c:363: error: 'GdkPixbuf' undeclared (first use in this function)
xscreensaver-getimage.c:363: error: (Each undeclared identifier is reported only once
xscreensaver-getimage.c:363: error: for each function it appears in.)
xscreensaver-getimage.c:363: error: 'pb' undeclared (first use in this function)
xscreensaver-getimage.c:364: warning: ISO C90 forbids mixed declarations and code
xscreensaver-getimage.c:379: warning: implicit declaration of function 'gdk_pixbuf_xlib_init'
xscreensaver-getimage.c:379: warning: nested extern declaration of 'gdk_pixbuf_xlib_init'
xscreensaver-getimage.c:383: warning: implicit declaration of function 'xlib_rgb_init'
xscreensaver-getimage.c:383: warning: nested extern declaration of 'xlib_rgb_init'
xscreensaver-getimage.c:386: warning: implicit declaration of function 'gdk_pixbuf_new_from_file'
xscreensaver-getimage.c:386: warning: nested extern declaration of 'gdk_pixbuf_new_from_file'
xscreensaver-getimage.c:403: warning: implicit declaration of function 'gdk_pixbuf_get_width'
xscreensaver-getimage.c:403: warning: nested extern declaration of 'gdk_pixbuf_get_width'
xscreensaver-getimage.c:404: warning: implicit declaration of function 'gdk_pixbuf_get_height'
xscreensaver-getimage.c:404: warning: nested extern declaration of 'gdk_pixbuf_get_height'
xscreensaver-getimage.c:412: error: 'pb2' undeclared (first use in this function)
xscreensaver-getimage.c:412: warning: implicit declaration of function 'gdk_pixbuf_scale_simple'
xscreensaver-getimage.c:412: warning: nested extern declaration of 'gdk_pixbuf_scale_simple'
xscreensaver-getimage.c:413: error: 'GDK_INTERP_BILINEAR' undeclared (first use in this function)
xscreensaver-getimage.c:416: warning: implicit declaration of function 'gdk_pixbuf_unref'
xscreensaver-getimage.c:416: warning: nested extern declaration of 'gdk_pixbuf_unref'
xscreensaver-getimage.c:450: warning: implicit declaration of function 'gdk_pixbuf_xlib_render_to_drawable_alpha'
xscreensaver-getimage.c:450: warning: nested extern declaration of 'gdk_pixbuf_xlib_render_to_drawable_alpha'
xscreensaver-getimage.c:453: error: 'GDK_PIXBUF_ALPHA_FULL' undeclared (first use in this function)
xscreensaver-getimage.c:454: error: 'XLIB_RGB_DITHER_NORMAL' undeclared (first use in this function)
make[1]: *** [xscreensaver-getimage.o] Error 1
make: *** [all] Error 5

Error: Status 1 encountered during processing.

Attachments (1)

config.log (136.8 KB) - added by martinsm@… 16 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 16 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to mww@…

Assigning to maintainer.

comment:2 Changed 16 years ago by blb@…

Given the block

# ifdef HAVE_GTK2
#  include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
# else  /* !HAVE_GTK2 */
#  include <gdk-pixbuf/gdk-pixbuf-xlib.h>
# endif /* !HAVE_GTK2 */

it sounds like it isn't seeing gtk2 properly. What version of gtk2 do you have installed (use port installed gtk2)?

comment:3 in reply to:  2 Changed 16 years ago by martinsm@…

Replying to blb@…:

Given the block

# ifdef HAVE_GTK2
#  include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
# else  /* !HAVE_GTK2 */
#  include <gdk-pixbuf/gdk-pixbuf-xlib.h>
# endif /* !HAVE_GTK2 */

it sounds like it isn't seeing gtk2 properly. What version of gtk2 do you have installed (use port installed gtk2)?

It is the version installed by this build process, this is my first foray into ports on macosx. Any further suggestions, I don't mind radical action like for example blowing them all away and starting again if necessary.

comment:4 Changed 16 years ago by blb@…

What is the result of running the following commands?

$ port installed gtk2
$ ls -l /opt/local/include/gtk-2.0/gdk-pixbuf-xlib/gdk-pixbuf-xlib.h

comment:5 in reply to:  4 Changed 16 years ago by martinsm@…

Replying to blb@…:

What is the result of running the following commands?

$ port installed gtk2

The following ports are currently installed:

gtk2 @2.14.5_0+x11 (active)

$ ls -l /opt/local/include/gtk-2.0/gdk-pixbuf-xlib/gdk-pixbuf-xlib.h

-rw-r--r-- 2 root admin 2477 17 Dec 18:41 /opt/local/include/gtk-2.0/gdk-pixbuf-xlib/gdk-pixbuf-xlib.h

is that ok?, thanks for your assistance so far.

}}}

comment:6 Changed 16 years ago by blb@…

Yup, that says that your gtk2 install is just as it should be, which means that xscreensaver isn't seeing it properly for some reason. Can you post the config.log that the attempt to install xscreensaver generated, you can find it by running

cd `port work xscreensaver`/xscreensaver-5.07

in Terminal, after that you should be in the directory where config.log can be found. Just attach that to this ticket.

Changed 16 years ago by martinsm@…

Attachment: config.log added

comment:7 in reply to:  6 Changed 16 years ago by martinsm@…

Replying to blb@…:

Yup, that says that your gtk2 install is just as it should be, which means that xscreensaver isn't seeing it properly for some reason. Can you post the config.log that the attempt to install xscreensaver generated, you can find it by running

cd `port work xscreensaver`/xscreensaver-5.07

in Terminal, after that you should be in the directory where config.log can be found. Just attach that to this ticket.

OK here it is attached

comment:8 Changed 16 years ago by blb@…

This is where your config.log and mine begin to diverge:

configure:15249: checking for libglade-2.0
configure:15265: result: no

It seems like it may require the libglade2 port; try installing that, cleaning xscreensaver, then installing again:

sudo port install libglade2
sudo port clean --work xscreensaver
sudo port install xscreensaver

If that's the case xscreensaver can be updated to declare that dependency.

comment:9 in reply to:  8 Changed 16 years ago by martinsm@…

Replying to blb@…:

This is where your config.log and mine begin to diverge:

configure:15249: checking for libglade-2.0
configure:15265: result: no

It seems like it may require the libglade2 port; try installing that, cleaning xscreensaver, then installing again:

sudo port install libglade2
sudo port clean --work xscreensaver
sudo port install xscreensaver

If that's the case xscreensaver can be updated to declare that dependency.

that has fixed it, many thanks.

comment:10 Changed 16 years ago by blb@…

Resolution: fixed
Status: newclosed

libglade2 added in r44183 (maintainer timeout).

comment:11 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.