pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/41608: x11/gtk2 fails to compile on Solaris 10



>Number:         41608
>Category:       pkg
>Synopsis:       x11/gtk2 fails to compile on Solaris 10
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 17 10:05:00 +0000 2009
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
SunOS spare4200 5.10 Generic_139556-08 i86pc i386 i86pc

>Description:
x11/gtk2 fails to compile on Solaris 10:

gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../gtk -I../../../gdk 
-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED -D_REENTRANT -D_PTHREADS -D
_POSIX_PTHREAD_SEMANTICS 
-I/software/pkgsrc/source/pkgsrc/x11/gtk2/work.spare280/.buildlink/include/glib/glib-2.0
 -I/software/pkgsrc
/source/pkgsrc/x11/gtk2/work.spare280/.buildlink/lib/glib-2.0/include 
-I/software/pkgsrc/source/pkgsrc/x11/gtk2/work.spare280/.build
link/include/pango-1.0 
-I/software/pkgsrc/source/pkgsrc/x11/gtk2/work.spare280/.buildlink/include/cairo
 -I/software/pkgsrc/source/pk
gsrc/x11/gtk2/work.spare280/.buildlink/include/pixman-1 
-I/software/pkgsrc/source/pkgsrc/x11/gtk2/work.spare280/.buildlink/include/f
reetype2 
-I/software/pkgsrc/source/pkgsrc/x11/gtk2/work.spare280/.buildlink/include 
-I/software/pkgsrc/source/pkgsrc/x11/gtk2/work.s
pare280/.buildlink/include/libpng12 
-I/software/pkgsrc/source/pkgsrc/x11/gtk2/work.spare280/.buildlink/include/atk-1.0
 -DG_DISABLE_C
AST_CHECKS -DPREFIX=\"/usr/pkgsrc/20090421\" -DPNG_NO_ASSEMBLER_CODE 
-I/software/pkgsrc/source/pkgsrc/x11/gtk2/work.spare280/.buildl
ink/include/python2.5 
-I/software/pkgsrc/source/pkgsrc/x11/gtk2/work.spare280/.buildlink/include/db4 
-I/software/pkgsrc/source/pkgsr
c/x11/gtk2/work.spare280/.buildlink/gcc34/include -DG_DISABLE_SINGLE_INCLUDES 
-DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SIN
GLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_DEPRECATED -O 
-Wall -MT gtkprintbackendpapi.lo -MD -MP -MF .deps/gtk
printbackendpapi.Tpo -c gtkprintbackendpapi.c  -fPIC -DPIC -o 
.libs/gtkprintbackendpapi.o
In file included from gtkprintbackendpapi.c:31:
../../../config.h:273:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/unistd.h:18,
                 from gtkprintbackendpapi.c:23:
/usr/include/sys/feature_tests.h:188:1: warning: this is the location of the 
previous definition
gtkprintbackendpapi.c: In function `gtk_print_backend_papi_print_stream':
gtkprintbackendpapi.c:354: error: incompatible types in initialization
gtkprintbackendpapi.c:344: warning: unused variable `print_error'
gtkprintbackendpapi.c:348: warning: unused variable `argc'
gtkprintbackendpapi.c:349: warning: unused variable `in_fd'
gtkprintbackendpapi.c:350: warning: unused variable `argv'
gtkprintbackendpapi.c: In function `papi_get_printer_list':
gtkprintbackendpapi.c:580: warning: unused variable `name'
gtkprintbackendpapi.c:580: warning: unused variable `url'
gtkprintbackendpapi.c:581: warning: unused variable `attrs'
gtkprintbackendpapi.c:548: warning: unused variable `attributes'
gtkprintbackendpapi.c:554: warning: unused variable `status2'
gtkprintbackendpapi.c:557: warning: unused variable `printer'
gtkprintbackendpapi.c:559: warning: unused variable `current_printer_list'
gtkprintbackendpapi.c: In function `update_printer_status':
gtkprintbackendpapi.c:646: warning: unused variable `status_changed'
gtkprintbackendpapi.c: In function `papi_printer_get_options':
gtkprintbackendpapi.c:666: warning: unused variable `i'
gtkprintbackendpapi.c: In function `papi_printer_prepare_for_print':
gtkprintbackendpapi.c:745: warning: assignment discards qualifiers from pointer 
target type
gtkprintbackendpapi.c: In function `merge_ppd_data':
gtkprintbackendpapi.c:771: warning: implicit declaration of function 
`get_ppd_attrs'
gtkprintbackendpapi.c: In function `papi_display_printer_status':
gtkprintbackendpapi.c:794: warning: unused variable `printer_uri'
gtkprintbackendpapi.c:794: warning: unused variable `ppdfile'
gtkprintbackendpapi.c:799: warning: unused variable `count'
gmake[4]: *** [gtkprintbackendpapi.lo] Error 1
gmake[4]: Leaving directory 
`/software/pkgsrc/source/pkgsrc/x11/gtk2/work.spare280/gtk+-2.16.2/modules/printbackends/papi'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory 
`/software/pkgsrc/source/pkgsrc/x11/gtk2/work.spare280/gtk+-2.16.2/modules/printbackends'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory 
`/software/pkgsrc/source/pkgsrc/x11/gtk2/work.spare280/gtk+-2.16.2/modules'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
`/software/pkgsrc/source/pkgsrc/x11/gtk2/work.spare280/gtk+-2.16.2'
gmake: *** [all] Error 2
*** Error code 2


PAPI support in GTK2 seems to be new and is probably not well tested...
>How-To-Repeat:

>Fix:
Excluding PAPI support fixes the problem for the moment:

--- Makefile    2009/06/17 09:08:52     1.1
+++ Makefile    2009/06/17 09:11:32
@@ -61,6 +61,10 @@
 DEPENDS+=              ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
 .endif
 
+.if ${OPSYS} == "SunOS"
+CONFIGURE_ARGS+=       --disable-papi
+.endif
+
 .include "options.mk"
 
 # We remove the module databases during post-install since we create them


The problem has been reported upstream:

http://bugzilla.gnome.org/show_bug.cgi?id=586107



Home | Main Index | Thread Index | Old Index