[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lprng
Subject:    LPRng: Re: LPRng 3.8.23 compile error and fix
From:       Patrick Powell <papowell () astart ! com>
Date:       2003-12-12 23:06:17
[Download RAW message or body]

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 marcus.overhagen@ims.fhg.de Wed Dec  3 02:23:25 2003
> From: "Marcus Overhagen" <marcus.overhagen@ims.fhg.de>
> To: <papowell@lprng.com>
> Cc: <marcus@overhagen.de>
> 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: marcus.overhagen@ims.fraunhofer.de
>
>


-----------------------------------------------------------------------------
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 majordomo@lprng.com (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 majordomo@lprng.com
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest myname@host.org
unsubscribe LIST <mailaddr>     |  unsubscribe lprng myname@host.org

If you have major problems,  send email to papowell@astart.com with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic