I have the same problem on Tru64 V4.0F. I put in the following patch to keep the
DEBUG1 line but allow it to compile:
*** lpd_dispatch.c.orig Wed Dec 19 15:42:22 2001
--- lpd_dispatch.c Fri Jan 4 08:21:05 2002
***************
*** 176,183 ****
--- 176,188 ----
LOGERR_DIE(LOG_DEBUG) _("Service_connection: getpeername
failed") );
}
+ #if defined(AF_LOCAL)
DEBUG1("Service_connection: family %d, AF_LOCAL %d, AF_UNIX %d",
sinaddr.sa_family, AF_LOCAL, AF_UNIX );
+ #else
+ DEBUG1("Service_connection: family %d, AF_UNIX %d",
+ sinaddr.sa_family, AF_UNIX );
+ #endif
if( sinaddr.sa_family == AF_INET ){
port = ((struct sockaddr_in *)&sinaddr)->sin_port;
#if defined(IPV6)
- Justus Addiss
|--------+---------------------------------->
| | Alan Sundell |
| | <"asundell+lprng"@fas.ha|
| | rvard.edu> |
| | |
| | 01/04/2002 00:13 |
| | Please respond to lprng |
| | |
|--------+---------------------------------->
>----------------------------------------------------------------------------|
| |
| To: [EMAIL PROTECTED] |
| cc: (bcc: Justus J. Addiss/HI-Healthinfo/3M/US) |
| Subject: Re: LPRng: Make problems |
>----------------------------------------------------------------------------|
I had the same problem this morning. There only seems to be one
instance of the problem (in src/common/lpd_dispatch.c line 180), and it
appears to be a bug that will occur anytime AF_UNIX or AF_LOCAL is not
defined, not really a compiler problem.
Surrounding with #ifdefs the DEBUG1 statement that's referencing
AF_LOCAL and AF_UNIX (or just deleting it) makes things compile fine --
it doesn't appear to be a statement critical to operation.
--Alan
On Thu, 3 Jan 2002, David L. R. Houston wrote:
> I'm trying to make LPRng-3.8.4 on a Solaris box running Solaris 8.
>
> I've ensured the correct path (/usr/local/bin/ and then /usr/ccs/bin); I
> have gcc running fine (have built a number of things on this same box).
>
> Anyway I try it, I get this after make:
>
> ./common/lpd_dispatch.c: In function `Service_connection':
> ./common/lpd_dispatch.c:180: `AF_LOCAL' undeclared (first use in this
function)
> ./common/lpd_dispatch.c:180: (Each undeclared identifier is reported only once
> ./common/lpd_dispatch.c:180: for each function it appears in.)
> make[1]: *** [lpd_dispatch.lo] Error 1
> make[1]: Leaving directory `/usr/local/src/LPRng-3.8.4/src'
> make: *** [src] Error 2
>
> I tried configure with the --with-cc=gcc option - no change. I tried
> adding in the cppopts & ldopts (step 3 of the Installation problems on the
> web page) - no change.
>
> I'm running the Sun ld - I believe that's correct. Running GNU Make
> version 3.79.1.
>
> I'll admit I am not the sysadmin wiz that many others are. Any insight is
> appreciated.
>
> David Houston
> CIT Client Services Coordinator
> University of Vermont
>
>
>
>
>
> -----------------------------------------------------------------------------
> 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.
> -----------------------------------------------------------------------------
>
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------