Hi!

I just compiled lynx-2.8.7 on NetBSD-5.99.15/amd64.

It failed with
LYMain.c: In function 'SetLocale':
LYMain.c:941: error: 'LC_ALL' undeclared (first use in this function)
LYMain.c:941: error: (Each undeclared identifier is reported only once
LYMain.c:941: error: for each function it appears in.)
which means it needs to include <locale.h>.
I worked around it with the attached patch, please check if you want
to use that or a different solution.

I also noted that it's still not possible to compile lynx with "make
-j16", it fails for me with:

--- en.gmo ---
file=./`echo en | sed 's,.*/,,'`.gmo  && rm -f $file &&
PATH=../src:$PATH /scratch/www/lynx/work/.tools/bin/msgfmt -o $file
en.po
cd ./WWW/Library/Implementation && /usr/bin/make DESTDIR="" CC="cc"
LY_CFLAGS="-O2 -D_XOPEN_SOURCE_EXTENDED=1 -I/usr/pkg/include
-I/usr/pkg/include/ncurses -I/usr/include"
CPPFLAGS="-D_XOPEN_SOURCE_EXTENDED=1 -I/usr/pkg/include
-I/usr/pkg/include/ncurses -I/usr/include -I/usr/pkg/include
-I/usr/pkg/include/ncurses"  LYFLAGS=""
cd: can't cd to ./WWW/Library/Implementation
*** [all] Error code 2
1 error

(failed in 2.8.6 as well)

Cheers,
 Thomas
--- src/LYMain.c.orig   2009-07-05 23:52:33.000000000 +0000
+++ src/LYMain.c
@@ -57,7 +57,7 @@
 #include <io.h>
 #endif
 
-#if defined(LOCALE) && !defined(HAVE_LIBINTL_H)
+#if defined(LOCALE)
 #undef gettext                 /* Solaris locale.h prototypes gettext() */
 #include <locale.h>
 #ifndef HAVE_GETTEXT
_______________________________________________
Lynx-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lynx-dev

Reply via email to