I resolved the problem with ifhp 3.3.21 not compiling. There is a single use of
'snprintf' in errormsg.c that should be 'SNPRINTF'. Here is the patch:
------------------
*** errormsg.c.orig Wed Sep 20 09:26:20 2000
--- errormsg.c Wed Sep 20 09:27:00 2000
***************
*** 524,530 ****
Write_fd_str( 2, b );
*/
Status_fd = open( Statusfile, O_RDWR );
! snprintf(path,sizeof(path),"%s.x", Statusfile );
unlink( path );
temp_fd = open( path, O_RDWR );
if( Status_fd >= 0 && temp_fd >=0 ){
--- 524,530 ----
Write_fd_str( 2, b );
*/
Status_fd = open( Statusfile, O_RDWR );
! SNPRINTF(path,sizeof(path),"%s.x", Statusfile );
unlink( path );
temp_fd = open( path, O_RDWR );
if( Status_fd >= 0 && temp_fd >=0 ){
---------------
- Justus
[EMAIL PROTECTED] on 09/15/2000 08:30:15 PM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc: (bcc: Justus J. Addiss/HI-Healthinfo/3M/US)
Subject: Re: LPRng: LPRng-3.6.24 and ifhp 3.3.21 fail to compile on Tru64 4.0E
w/GCC 2.8.1
#if defined(IN6_ADDR) || defined(IN_ADDR6)
case AF_INET6:
count = (h_ent->h_length != sizeof(struct in6_addr)); break;
#endif
OK, what is the structure that they use for ipv6?
Patrick
> From [EMAIL PROTECTED] Fri Sep 15 09:06:39 2000
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Date: Fri, 15 Sep 2000 10:58:43 -0400
> Subject: LPRng: LPRng-3.6.24 and ifhp 3.3.21 fail to compile on Tru64 4.0E
w/GCC
> 2.8.1
>
>
>
> LPRng 3.6.22 and ifhp 3.3.19 compile fine but when I try to compile LPRng
3.6.24
> and ifhp 3.3.21 on my Tru64 V4.0E patch 3 system using gcc V2.8.1 I get the
> following errors:
>
> LPRng:
>
> gmake[1]: Entering directory `/n/astro/local-src/lprng/LPRng-3.6.24/src'
> gcc -g -O2 -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\"
-DLPD_CONF_P
> ATH=\"/usr/local/etc/lpd.conf\" -DLPD_PERMS_PATH=\"/usr/local/etc/lpd.perms\"
-D
> PRINTCAP_PATH=\"/usr/local/etc/printcap\"
-DLPD_PRINTCAP_PATH=\"/usr/local/etc/l
> pd_printcap\" -DFORCE_LOCALHOST=\"1\" -DREQUIRE_CONFIGFILES=\"1\"
-DLOCKFILE=\"/
> var/run/lpd\" -DCLEAR=\"/usr/bin/clear\" -DUSERID=\"daemon\"
-DGROUPID=\"daemon\
> " -I.. -I./include -c -o gethostinfo.o ./common/gethostinfo.c
> ./common/gethostinfo.c: In function `Check_for_dns_hack':
> ./common/gethostinfo.c:69: sizeof applied to an incomplete type
> gmake[1]: *** [gethostinfo.o] Error 1
> gmake[1]: Leaving directory `/n/astro/local-src/lprng/LPRng-3.6.24/src'
> gmake: *** [src] Error 2
>
> and
>
> gcc -g -O2 -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\"
-DLPD_CONF_P
> ATH=\"/usr/local/etc/lpd.conf\" -DLPD_PERMS_PATH=\"/usr/local/etc/lpd.perms\"
-D
> PRINTCAP_PATH=\"/usr/local/etc/printcap\"
-DLPD_PRINTCAP_PATH=\"/usr/local/etc/l
> pd_printcap\" -DFORCE_LOCALHOST=\"1\" -DREQUIRE_CONFIGFILES=\"1\"
-DLOCKFILE=\"/
> var/run/lpd\" -DCLEAR=\"/usr/bin/clear\" -DUSERID=\"daemon\"
-DGROUPID=\"daemon\
> " -I.. -I./include -c -o lpd.o ./common/lpd.c
> ./common/lpd.c: In function `Service_connection':
> ./common/lpd.c:578: dereferencing pointer to incomplete type
>
>
> IFHP:
>
> ...snip...
> gcc -g -O2 -g -Wall -I.. -I./. -DHAVE_CONFIG_H
-DCONFIG_FILE=\"/usr/local/etc/if
> hp.conf\" -c -o vars.o vars.c
> vars.c:65: warning: initialization from incompatible pointer type
> gcc -g -O2 -g -Wall -I.. -I./. -DHAVE_CONFIG_H
-DCONFIG_FILE=\"/usr/local/etc/if
> hp.conf\" -c -o errormsg.o errormsg.c
> errormsg.c: In function `setstatus':
> errormsg.c:527: warning: implicit declaration of function `snprintf'
> ...snip...
> gcc ifhp.o accounting.o vars.o errormsg.o plp_snprintf.o globmatch.o
open_devic
> e.o stty.o checkcode.o linelist.o -o ifhp
> collect2: ld returned 1 exit status
> /usr/bin/ld:
> Unresolved:
> snprintf
>
> - Justus
>
>
>
> -----------------------------------------------------------------------------
> 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.
> -----------------------------------------------------------------------------
>
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------