[MacPorts] #17682: xscreensaver fails to build
#17682: xscreensaver fails to build ---------------------------------+------------------------------------------ Reporter: martinsm@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: build failure | Port: xscreensaver ---------------------------------+------------------------------------------ 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. }}} -- Ticket URL: <http://trac.macports.org/ticket/17682> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17682: xscreensaver fails to build ---------------------------------+------------------------------------------ Reporter: martinsm@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: build failure | Port: xscreensaver ---------------------------------+------------------------------------------ Changes (by macsforever2000@…): * owner: macports-tickets@… => mww@… Comment: Assigning to maintainer. -- Ticket URL: <http://trac.macports.org/ticket/17682#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17682: xscreensaver fails to build ---------------------------------+------------------------------------------ Reporter: martinsm@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: build failure | Port: xscreensaver ---------------------------------+------------------------------------------ Comment(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}}})? -- Ticket URL: <http://trac.macports.org/ticket/17682#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17682: xscreensaver fails to build ---------------------------------+------------------------------------------ Reporter: martinsm@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: build failure | Port: xscreensaver ---------------------------------+------------------------------------------ Comment(by martinsm@…): Replying to [comment:2 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. -- Ticket URL: <http://trac.macports.org/ticket/17682#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17682: xscreensaver fails to build ---------------------------------+------------------------------------------ Reporter: martinsm@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: build failure | Port: xscreensaver ---------------------------------+------------------------------------------ Comment(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 }}} -- Ticket URL: <http://trac.macports.org/ticket/17682#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17682: xscreensaver fails to build ---------------------------------+------------------------------------------ Reporter: martinsm@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: build failure | Port: xscreensaver ---------------------------------+------------------------------------------ Comment(by martinsm@…): Replying to [comment:4 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.
}}}
-- Ticket URL: <http://trac.macports.org/ticket/17682#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17682: xscreensaver fails to build ---------------------------------+------------------------------------------ Reporter: martinsm@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: build failure | Port: xscreensaver ---------------------------------+------------------------------------------ Comment(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. -- Ticket URL: <http://trac.macports.org/ticket/17682#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17682: xscreensaver fails to build ---------------------------------+------------------------------------------ Reporter: martinsm@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: build failure | Port: xscreensaver ---------------------------------+------------------------------------------ Comment(by martinsm@…): Replying to [comment:6 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 -- Ticket URL: <http://trac.macports.org/ticket/17682#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17682: xscreensaver fails to build ---------------------------------+------------------------------------------ Reporter: martinsm@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: build failure | Port: xscreensaver ---------------------------------+------------------------------------------ Comment(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. -- Ticket URL: <http://trac.macports.org/ticket/17682#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17682: xscreensaver fails to build ---------------------------------+------------------------------------------ Reporter: martinsm@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: build failure | Port: xscreensaver ---------------------------------+------------------------------------------ Comment(by martinsm@…): Replying to [comment:8 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. -- Ticket URL: <http://trac.macports.org/ticket/17682#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17682: xscreensaver fails to build ----------------------------------+----------------------------------------- Reporter: martinsm@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Resolution: fixed | Keywords: build failure Port: xscreensaver | ----------------------------------+----------------------------------------- Changes (by blb@…): * status: new => closed * resolution: => fixed Comment: libglade2 added in r44183 (maintainer timeout). -- Ticket URL: <http://trac.macports.org/ticket/17682#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts