Dear Patrick,

there seems to be a portability issue for ifhp-3.5.17 to irix-6.2.

The type `socklen_t' does not appear to be declared anywhere under
/usr/include and this makes compiling of monitor.c fail:

---SNIP---
     gcc -g -W -Wall  -Wno-unused  -g -O2 -g -W -Wall  -Wno-unused  -DHAVE_CONFIG_H 
-I. -I.. -I.  -DIFHP_CONF=\"/usr/local/etc/lprng-d/ifhp.conf\" 
-DLOCALEDIR=\"/usr/local/share/locale\" -DDEVFD0=\"/dev/fd/0\"   -c -o monitor.o 
monitor.c
     monitor.c: In function `main':
     monitor.c:232: error: `socklen_t' undeclared (first use in this function)
     monitor.c:232: error: (Each undeclared identifier is reported only once
     monitor.c:232: error: for each function it appears in.)
     monitor.c:232: error: parse error before "len"
     monitor.c:233: error: `len' undeclared (first use in this function)
     make[2]: *** [monitor.o] Error 1
     make[2]: Leaving directory `/usr/people/balducci/tmp/lprng-d/ifhp-3.5.17/src'
     make[1]: *** [src] Error 2
     make[1]: Leaving directory `/usr/people/balducci/tmp/lprng-d/ifhp-3.5.17'
---SNIP---

Putting the explicit declaration in, e.g., ifhp.h:

    typedef unsigned int socklen_t;

makes things work.


Googling around, it looks like this is a known issue for irix
portability (search for `socklen_t irix'):

E.g.:
---SNIP---
X 
X-/* recvfrom() and others like socklen_t, Irix doesn't provide it */   
X-#ifndef HAVE_SOCKLEN_T
X-  typedef int socklen_t;
X-#endif
X
----SNIP---

etc.

I realize that irix-6.2 is somewhat oldish (...), but the problem is
almost certainly present in more recent versions of this OS (6.5?).

Would it be easy to implement a test for socklen_t declaration at
the configure level?

Apologies if I'm missing anything.

Thank you very much in advance and ciao
===========================================================================
Gabriele Balducci                  tel    I-040-5583957
Dipartimento di Scienze Chimiche   fax    I-040-5583903
Via L. Giorgieri 1                 e-mail [EMAIL PROTECTED]
I-34127 TRIESTE
===========================================================================

-----------------------------------------------------------------------------
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