Re: gnome-utils on HPUX - compile issues



On Thu, 31 Dec 1998, Miguel de Icaza wrote:
> > On gdialog, _ACS_COMPAT_CODE needs to be defined before including
> > curses.h, otherwise it can't find a bunch of stuff in linking.
> CVS has a fix for this.  Probably the fix did not make it to the
> release?  Please tell me what your gdialog/dialog.h file looks like
> (around the line where curses.h is included).

Hmmm...this is what it has, from CVS around 11am EST.  That's odd that it
didn't pick it up, as  I don't have ultrix, and didn't tell it to use
ncurses.  So, basically, it should be working.

#ifdef ultrix
#  include <cursesX.h>
#else
#  if defined(USE_NCURSES) && !defined(RENAMED_NCURSES)
#    include <ncurses.h>
#  else
#    ifndef _XOPEN_SOURCE_EXTENDED
#        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

>From the curses.h include file:
#ifdef _ACS_COMPAT_CODE
extern  chtype  acs_map[];
#define __acs_map acs_map
#else
extern  chtype  __acs_map[];
#endif /* _ACS_COMPAT_CODE */

And the actual error:
gcc -g -O2   -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/opt/gnome/lib
-L/opt/local/lib -L/opt/gtk/lib -L/usr/X11R6.4/lib -lgnomeui -lart_lgpl
-lgdk_imlib -ljpeg -ltiff -lgif -lpng -lz -lSM -lICE -lgtk -lgdk -lgmodule
-lintl -lXext -lX11 -lgnome -lgnomesupport -lesd -lm -ldb -lglib -ldl
-lgtkxmhtml -lXpm -ljpeg -lpng -lz -lSM -lICE -lgtk -lgdk -lgmodule -lglib
-ldl -lintl -lXext -lX11 -lm   -lsec -lm -lcurses
collect2: ld returned 1 exit status
/usr/ccs/bin/ld: Unsatisfied symbols:
   __acs_map (data)
/home/cerebus/2inst/t/gnome-utils/gdialog$ grep -l __acs_map *
checklist.o
inputbox.o
menubox.o
msgbox.o
textbox.o
util.o
yesno.o




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]