Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* mgetty - anyone compile successfully?
@ 1996-05-30  2:14 Brian E.W. Wood
  0 siblings, 0 replies; 4+ messages in thread
From: Brian E.W. Wood @ 1996-05-30  2:14 UTC (permalink / raw)


I recently moved from a Pentium to an Alpha system (UDB). I have
been re-compiling some favorite apps for the new platform. Most
of them have gone pretty well but mgetty has me stuck.

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.

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.

Thanks,

Brian E.W. Wood
beww@intac.com
"Would you put your money in a bank which used Windows '95 to manage accounts?"

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: mgetty - anyone compile successfully?
       [not found] <Pine.BSD/.3.91.960529220941.14096A-100000@nile.intac.com>
@ 1996-05-30 17:38 ` Matthias Cramer
  0 siblings, 0 replies; 4+ messages in thread
From: Matthias Cramer @ 1996-05-30 17:38 UTC (permalink / raw)


On Wed, 29 May 1996, Brian E.W. Wood wrote:

> I recently moved from a Pentium to an Alpha system (UDB). I have
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.
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.
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.
To mee too ... any idea will help me ..

Regards Matthias

------------------------------------------------------------------------------
*** FreeStone HeadQuarters ***                  | Friends don't let friends
Matthias Cramer       Phone    ++41 1 865 4731  | work with MICROSOFT-PRODUCTS
Dorfstrasse 22        Data&Fax ++41 1 865 6863  |-----------------------------
CH-8427 Freienstein                             | Don't open Windows --
Switzerland           e-mail cramer@freestone.ch| my system is air-conditioned
------------------------------------------------------------------------------

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: mgetty - anyone compile successfully?
@ 1996-07-14  4:37 David Mosberger-Tang
  1996-07-14 11:29 ` Matthias Cramer
  0 siblings, 1 reply; 4+ messages in thread
From: David Mosberger-Tang @ 1996-07-14  4:37 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: mgetty - anyone compile successfully?
  1996-07-14  4:37 David Mosberger-Tang
@ 1996-07-14 11:29 ` Matthias Cramer
  0 siblings, 0 replies; 4+ messages in thread
From: Matthias Cramer @ 1996-07-14 11:29 UTC (permalink / raw)


On Sat, 13 Jul 1996, David Mosberger-Tang wrote:

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

Sorry to all ... I had a broken Smail config, and that mail was haning in 
the spooldir, noe last night I fixed it, an about 40 mails where gon to 
the wide world ... 

Regards Matthias

------------------------------------------------------------------------------
*** FreeStone HeadQuarters ***                  | Friends don't let friends
Matthias Cramer       Phone    ++41 1 881 7281  | work with MICROSOFT-PRODUCTS
Dorfstrasse 22        Data&Fax ++41 1 865 6863  |-----------------------------
CH-8427 Freienstein   ISDN     ++41 1 881 7280  | Don't open Windows --
Switzerland           e-mail cramer@freestone.ch| my system is air-conditioned
------------------------------------------------------------------------------

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1996-07-14 11:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <Pine.BSD/.3.91.960529220941.14096A-100000@nile.intac.com>
1996-05-30 17:38 ` mgetty - anyone compile successfully? Matthias Cramer
1996-07-14  4:37 David Mosberger-Tang
1996-07-14 11:29 ` Matthias Cramer
  -- strict thread matches above, loose matches on Subject: below --
1996-05-30  2:14 Brian E.W. Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox