h110: {15} % gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.2.2 [FreeBSD] 20030205 (release)

I looked up the GCC documentation, and GCC 3.X appears to allow this.
Sigh...  Thanks!

Patrick

> From [EMAIL PROTECTED] Wed Dec  3 02:23:25 2003
> From: "Marcus Overhagen" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Subject: LPRng 3.8.23 compile error and fix
> Date: Wed, 3 Dec 2003 11:23:40 +0100
>
> Hi, I downloaded http://www.lprng.com/DISTRIB/LPRng/LPRng-3.8.23.tgz
> and when cross compiling it from x86 for PPC I noticed that there is a
> problem
> in src/common/user_auth.c line 1047 which is not valid C (but ok in C++)
>
> ./common/user_auth.c: In function `Pgp_get_pgppassfd':
> ./common/user_auth.c:1047: parse error before `char'
>
> The change below fixes it.
>
> --- user_auth.c_broken  2003-12-03 11:13:25.000000000 +0100
> +++ user_auth.c 2003-12-03 11:13:36.000000000 +0100
> @@ -1043,8 +1043,8 @@
>                         DEBUG1("Pgp_get_pgppassfd: PGPPASS '%s'", s );
>                         *pgppass = s;
>                 } else if( (s = getenv( "PGPPASSFD" )) ){
> -                       t = 0;
>                         char buffer[128];
> +                       t = 0;
>                         pgppassfd = strtol(s,&t,10);
>                         if( pgppassfd <= 0 || !t || *t || fstat(pgppassfd,
> &statb)  ){
>                                 Errorcode = JABORT;
>
>
> regards
>
> Marcus Overhagen
>
> --
> Fraunhofer IMS
> Finkenstrasse 61
> 47057 Duisburg
> Germany
>
> Telefon:  0203-3783-238
> Fax: 0203-3783-277
> Internet: http://www.ims.fraunhofer.de
> Email: [EMAIL PROTECTED]
>
>


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