[Top][All Lists]

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

lynx-dev <sys/ucontext.h> problem

From: Fiber McGee
Subject: lynx-dev <sys/ucontext.h> problem
Date: Tue, 07 Nov 2000 20:23:27 -0600

The message below from Natasha Live
<address@hidden> was
forwarded by the list moderator.

I've had a slight problem with compileing lynx (2.8.4 rel1=>, haven't tryed 2.8.3 and below).

This is the make report

make[2]: Leaving directory `/home/live/Download/lynx2-8-4/src/chrtrans'
gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\" -I. -I.. -Ichrtrans -I./chrtrans -I.. -I../src -I../WWW/Library/Implementation -O2 -DLINUX -D_GNU_SOURCE -c ./LYClean.c
In file included from /usr/include/ucontext.h:27,
                 from /usr/include/signal.h:317,
                 from LYSignal.h:5,
                 from ./LYClean.c:4:
/usr/include/sys/ucontext.h:74: warning: `ERR' redefined
/usr/include/curses.h:195: warning: this is the location of the previous definition
In file included from /usr/include/ucontext.h:27,
                 from /usr/include/signal.h:317,
                 from LYSignal.h:5,
                 from ./LYClean.c:4:
/usr/include/sys/ucontext.h:73: parse error before `('
make[1]: *** [LYClean.o] Error 1
make[1]: Leaving directory `/home/live/Download/lynx2-8-4/src'
make: *** [all] Error 2

This is probably a problem with my OS (slackware 7.1, egcs-2.91.66) then with lynx, but here is how i fixed it anyway.

I wrapped the enum defination in <sys/ucontext.h> in a #ifndef __LYNX_SRC, the added -D__LYNX_SRC to the makefile.

Horrible hack, but works!

|    These are the thoughts of a mere mortal, plz feel free to ignore.   |
|    -Nastaha Live                                                       |
|             [URL: mailto:address@hidden              |
|             [URL:]              |

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]