lynx-dev
[Top][All Lists]
Advanced

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

[Lynx-dev] djgpp compile errors


From: Gisle Vanem
Subject: [Lynx-dev] djgpp compile errors
Date: Tue, 30 Dec 2014 15:16:41 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:34.0) Gecko/20100101 Firefox/34.0 SeaMonkey/2.31

While compiling the last Lynx using djgpp 2.04 and gcc 4.8.4,
I'm getting:

LYForms.c: In function 'form_getstr':
LYForms.c:424:36: error: 'FieldEditor' has no member named 'efWide'
      if (!(edit->efBufInUse >= edit->efWide &&
                                    ^
LYForms.c:425:22: error: 'FieldEditor' has no member named 'efWide'
     LastTFPos >= edit->efWide - edit->efPanMargin)) {
                      ^
LYForms.c:427:31: error: 'FieldEditor' has no member named 'efWide'
   if (edit->efBufInUse >= edit->efWide)

Presumably 'efWide' should be 'efWidth'?

But there's more:

LYMail.c: In function 'LYSendMailFile':
LYMail.c:537:13: error: conflicting types for 'dj_is_bash'
  extern int dj_is_bash;
             ^
In file included from LYMail.c:6:0:
./LYGlobalDefs.h:649:20: note: previous declaration of 'dj_is_bash' was here
     extern BOOLEAN dj_is_bash;

Hence:

--- orig/src/LYMail.c       2013-11-29 01:52:56 +0000
+++ src/LYMail.c     2014-12-30 15:53:56 +0000
@@ -534,7 +534,6 @@
 #endif
 #ifdef __DJGPP__
     if (LYGetEnv("SHELL")) {
-       extern int dj_is_bash;
        extern char *shell;
        const char *c_option;
        const char *format = "%s %s %s -t %s -F %s";

-----------

Also a problem WRT. 'USE_DOS_DRIVES' in HomeEnv().
The function w32_get_shell_folder() is for Win32 only:

--- orig/src/LYUtils.c      2014-12-22 02:39:40 +0000
+++ src/LYUtils.c    2014-12-30 16:04:16 +0000
@@ -5183,7 +5183,7 @@
 {
     char *result = CheckDir(LYGetEnv("HOME"));

-#if defined (USE_DOS_DRIVES)
+#if defined (USE_DOS_DRIVES) && defined(_WIN32)
     if (result == 0) {
        char *head;
        char *leaf;

----------

After these changes, the djgpp/Watt-32 version of Lynx works
fine. I'm amazed!

--
--gv



reply via email to

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