Subject: pkg/15933: Various gnome-related pkgs have build problems on 1.4.2: gnome-utils
To: None <gnats-bugs@gnats.netbsd.org>
From: Olaf Seibert <rhialto@polderland.nl>
List: netbsd-bugs
Date: 03/15/2002 13:02:45
>Number: 15933
>Category: pkg
>Synopsis: Various gnome-related pkgs have build problems on 1.4.2: gnome-utils
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Mar 15 04:03:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Olaf Seibert
>Release: pkgsrc supped just now
>Organization:
>Environment:
System: NetBSD klei.intern.polderland.nl 1.4.2 NetBSD 1.4.2 (KIELDRECHT) #15: Wed Jul 11 18:02:11 CEST 2001 root@klei.intern.polderland.nl:/usr/src/sys/arch/i386/compile/KIELDRECHT i386
>Description:
When building gnome-utils on 1.4.2, it fails with the following error:
gmake[3]: Entering directory `/usr/tmp/misc/gnome-utils/work/gnome-utils-1.4.1/gdialog'
cc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I/usr/X11R6/include -DNEED_GNOMESUPPORT_H -I/usr/X11R6/lib/gnome-libs/include -I/usr/pkg/lib/glib/include -I/usr/pkg/include/glib -I/usr/pkg/include/orbit-1.0 -I/usr/X11R6/include/gtk-1.2 -I/usr/X11R6/include -DNEED_GNOMESUPPORT_H -I/usr/X11R6/lib/gnome-libs/include -I/usr/pkg/lib/glib/include -I/usr/pkg/include/glib -I/usr/pkg/include/orbit-1.0 -I/usr/X11R6/include/gtk-1.2 -I/usr/tmp/misc/gnome-utils/work/.buildlink/include -I/usr/tmp/misc/gnome-utils/work/.buildlink/include/libglade-1.0 -I/usr/tmp/misc/gnome-utils/work/.buildlink/include/gnome-1.0 -I/usr/pkg/share/x11-links/include -I/usr/X11R6/include/gtk-1.2 -I/usr/pkg/lib/glib/include -I/usr/pkg/include/glib -I/usr/X11R6/include -I/usr/tmp/misc/gnome-utils/work/.buildlink/include -O2 -I/usr/pkg/share/x11-links/include -Wall -Wunused -c checklist.c
In file included from dialog.h:27,
from checklist.c:23:
../config.h:74: warning: `VERSION' redefined
dialog.h:25: warning: this is the location of the previous definition
In file included from checklist.c:23:
dialog.h:157: syntax error before `attributes'
dialog.h:157: warning: type defaults to `int' in declaration of `attributes'
dialog.h:157: warning: data definition has no type or storage class
dialog.h:173: syntax error before `chtype'
dialog.h:180: syntax error before `chtype'
checklist.c: In function `print_item':
checklist.c:86: warning: implicit declaration of function `wattrset'
checklist.c: In function `dialog_checklist':
checklist.c:228: warning: implicit declaration of function `keypad'
checklist.c:281: warning: implicit declaration of function `wnoutrefresh'
checklist.c:313: `KEY_UP' undeclared (first use in this function)
checklist.c:313: (Each undeclared identifier is reported only once
checklist.c:313: for each function it appears in.)
checklist.c:313: `KEY_DOWN' undeclared (first use in this function)
checklist.c:315: `KEY_MAX' undeclared (first use in this function)
checklist.c:330: warning: implicit declaration of function `wscrl'
checklist.c:491: `KEY_LEFT' undeclared (first use in this function)
checklist.c:492: `KEY_RIGHT' undeclared (first use in this function)
dialog.h: At top level:
dialog.h:157: warning: array `attributes' assumed to have one element
gmake[3]: *** [checklist.o] Error 1
gmake[3]: Leaving directory `/usr/tmp/misc/gnome-utils/work/gnome-utils-1.4.1/gdialog'
The (first) offending line is dialog.h:157 :
extern chtype attributes[];
>How-To-Repeat:
type 'make' in the directory of the package.
>Fix:
chtype appears to be defined in /usr/pkg/include/ncurses.h, so
I suppose gnome-utils should be made to use it. The pkg Makefile
contains .include "../../devel/ncurses/buildlink.mk" so
obviously something is not working there.
As a workaround I tried adding
USE_NCURSES= YES
to the pkg Makefile. This alone caused the header files to be
put in the .buildlink directory, but not to be used. So I also
added
CONFIGURE_ARGS+= --with-curses=${BUILDLINK_DIR}
but even that did not help. So I'm at a loss here. Desperately,
I tried changing this in dialog.h:
ifdef ultrix
# include <cursesX.h>
#else
# if defined(USE_NCURSES) && !defined(RENAMED_NCURSES)
# include <ncurses.h>
# else
# if !defined(_XOPEN_SOURCE_EXTENDED) && !defined(__sgi)
# define hacked 1
# define _XOPEN_SOURCE_EXTENDED
# define _ACS_COMPAT_CODE
# endif
# include <curses.h>
# ifdef hacked
# undef _XOPEN_SOURCE_EXTENDED
# undef _ACS_COMPAT_CODE
# endif
# endif
#endif
to include "ncurses.h".
None of the *CURSES* macros are defined in config.h.
This make that file compile but gave link errors later on
because no curses lib whatsoever was linked in:
cc -I/usr/tmp/misc/gnome-utils/work/.buildlink/include -O2 -I/usr/pkg/share/x11-links/include -Wall -Wunused -L/usr/tmp/misc/gnome-utils/work/.buildlink/lib -L/usr/pkg/share/x11-links/lib -Wl,-R/usr/X11R6/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o gdialog checklist.o dialog.o guage.o inputbox.o menubox.o mouse.o msgbox.o rc.o textbox.o util.o yesno.o -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -lossaudio -laudiofile -lm -lglib -lintl -lgtkxmhtml -lXpm -ljpeg -lpng -lz -lSM -lICE -lgtk -lgdk -lgmodule -lglib -lXi -lXext -lX11 -lm -L/usr/tmp/misc/gnome-utils/work/.buildlink/lib -Wl,-R/usr/pkg/lib -lintl -lcrypt -lm -L/usr/tmp/misc/gnome-utils/work/.buildlink/lib -Wl,-R/usr/pkg/lib -lintl
checklist.o: Undefined symbol `_wmove' referenced from text segment
checklist.o: Undefined symbol `_waddch' referenced from text segment
checklist.o: Undefined symbol `_wmove' referenced from text segment
checklist.o: Undefined symbol `_wprintw' referenced from text segment
checklist.o: Undefined symbol `_waddch' referenced from text segment
checklist.o: Undefined symbol `_waddch' referenced from text segment
checklist.o: Undefined symbol `_waddnstr' referenced from text segment
checklist.o: Undefined symbol `_wmove' referenced from text segment
...
... many more...
Sigh...
-Olaf.
--
___ Olaf 'Rhialto' Seibert - rhialto@polder --They that can give up essential
\X/ land.nl --liberty to purchase a little temporary safety
--------------deserve neither liberty or safety. - Benjamin Franklin, 1759
---People will accept your ideas much more readily if you tell them that
---Benjamin Franklin said it first. - Unknown
>Release-Note:
>Audit-Trail:
>Unformatted: