Mailing List Archive

Support open source code!


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

Re: tlug: pine/jp compile problems



On Thu, 22 Jul 1999, John Seebach wrote:

> I tried it out, and it fixed a couple of the problems that you had
> mentioned, but pine and pico still won't compile and I'm at a loss for
> why.

*sigh* This is breaking because the glibc designers decided to declare
sys_errlist as const char * rather than just char *, asw it had been for
millenia[1].

Find attached a patch that should fix the problem.

-- Chris (wileyc@example.com)

[1] Well, it's a little more complicated than that.  Various flavors of
    BSD have been declaring it const for quite awhile, which is why one
    sees #ifdef _BSD_SOURCE surrounding declarations of sys_errlist in 
    some source trees.  Linux, thanks to my old buddy HJ, declared it char *
    for years ...

--- pine3.96-old/pico/os_unix.c	Sat Jul 13 03:13:53 1996
+++ pine3.96/pico/os_unix.c	Thu Jul 22 13:35:58 1999
@@ -1337,7 +1547,7 @@
 errstr(err)
 int err;
 {
-#if !defined(neb) && !defined(BSDI2)
+#if !defined(neb) && !defined(BSDI2) && !defined(__linux__)
     extern char *sys_errlist[];
 #endif
     extern int  sys_nerr;
--- pine3.96-old/pine/osdep/err_desc	Fri Jul 16 08:07:01 1993
+++ pine3.96/pine/osdep/err_desc	Thu Jul 22 13:35:09 1999
@@ -1,5 +1,3 @@
-extern char *sys_errlist[];
-
 /*----------------------------------------------------------------------
        Return string describing the error
 

-------------------------------------------------------------------
Next Technical Meeting: August 14 (Sat), 13:00  place: Temple Univ.
*** Special guest: Marc Christensen (Salt Lake Linux Users Group)
Next Nomikai: September 20 (Fri), 19:30 Tengu TokyoEkiMae 03-3275-3691
-------------------------------------------------------------------
more info: http://www.tlug.gr.jp        Sponsor: Global Online Japan


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links