Hi,

        Thanks to all who replied my message!

        I  borrow the strerror/strerr code from the nice Geoff Kuenning's
article:

         http://fmg-www.cs.ucla.edu/geoff/interfaces.html

        Then, basically I did what Villy described, and put the routines
available in a library in /usr/local/lib. Now I have all this wonderful
LPRng package running smootly in my server!

        Cheers.

Arthur


The original post was:
======================
>        I'm trying to build ifhp V. 3.5.7 on a sparc running SunOS 4.1.4,
>but the process is aborted with the error message:
>
>ld: Undefined symbol
>   _strerror

             
Villy Kruse wrote:
==================
>The easiest way is to make your own strerror() function which will return
>sys_errlist[errno].  You can do that once if HAVE_STRERROR is not set;
>otherwise you have to test for HAVE_STRERROR everytime you use strerror().
>It may be increasingly difficult to find a system which does not provide
>a strerror() function, so this is quite likely to be missed in a test.


Piotr Kowalsky wrote:
=====================
>I have had the similar problem during compiling LPRng-3.7.4 and ifhp-3.4.4
>under SunOS 4.1.4 using gcc-2.7.2.
>
>I found appropriate information and file ('sys-sunos4.c')
>using Altavista in the archive:
>  
>http://src.openresources.com/debian/src/net/ppp-2.3.5.orig/ppp-2.3.5/ppd/sys-sunos4.c
>
>The small portion of this file was than succesfully used with my
>compilation, after adding one line to 'config.h' file:
>  #define HAVE_STRERROR
>
>Both files ('sys-sunos4.c' and portion of it used by myself) are in
>  ftp://ftp.ibspan.waw.pl/pub/sunos/strerror
>
>Hope this helps,
>
>Piotr Kowalski
>
>---------------------------------------------------------------------------
>Piotr Kowalski                         e-mail: [EMAIL PROTECTED]
>Systems Research Institute                     [EMAIL PROTECTED]
>of the Polish Academy of Sciences       phone: +(48-22) 837-07-63
>Newelska 6, 01-447 Warsaw, POLAND         fax: +(48-22) 837-27-72
>---------------------------------------------------------------------------




-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to