From: David Mosberger-Tang <davidm@AZStarNet.com>
Subject: Re: mgetty - anyone compile successfully?
Date: Sat, 13 Jul 1996 21:37:26 -0700 [thread overview]
Message-ID: <199607140437.VAA20896@panda.azstarnet.com> (raw)
>>>>> On Thu, 30 May 1996 19:38:22 +0200 (MET DST), Matthias Cramer <cramer@freestone.ch> said:
Matthias> On Wed, 29 May 1996, Brian E.W. Wood wrote:
>> I recently moved from a Pentium to an Alpha system (UDB). I have
Matthias> I too, but to an Alpha XL ...
>> been re-compiling some favorite apps for the new platform. Most
>> of them have gone pretty well but mgetty has me stuck.
Matthias> I've got the same problem ...
>> gcc (version 2.7.2) complains about missing braces around the
>> initializer in a struct statement, as well as several
>> initializers not being computable at load time. The problem is
>> that the braces ARE there, and the code looks OK to me, although
>> I am NOT a competent C programmer.
Matthias> Same respons with 2.7.0 !!!
>> If anyone could point me in the right direction I would
>> appreciate it. I found mgetty to be very useful and would like
>> to have it back.
Matthias> To mee too ... any idea will help me ..
This sounds like deja vu all over again. I think the mailing list
archives should have pointers to how to fix this. Basically, the
problem is that void * != int. The author of mgetty knows about this
problem and I hope the latest version has it fixed, though I don't
know for sure. If memory serves, the easiest fix is to change the int
field in the structure that's causing the problem to a long, and then
cast the pointers to long. And no, there are not enough braces there.
It's an array of structures, so it needs nested braces.
To summarize: gcc is doing perfectly fine (for once, at least! ;-).
It's the program that's broken.
I hope this doesn't sounds too confusing, but if you take a look at
the source, you'll quickly notice what's going on.
--david
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
next reply other threads:[~1996-07-14 4:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-14 4:37 David Mosberger-Tang [this message]
1996-07-14 11:29 ` mgetty - anyone compile successfully? Matthias Cramer
[not found] <Pine.BSD/.3.91.960529220941.14096A-100000@nile.intac.com>
1996-05-30 17:38 ` Matthias Cramer
-- strict thread matches above, loose matches on Subject: below --
1996-05-30 2:14 Brian E.W. Wood
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox