Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Subject: Re: Errors compiling Rasmol under Redhat 5.1
Date: Sun, 7 Jun 1998 09:58:00 -0600 (MDT)	[thread overview]
Message-ID: <199806071558.JAA23730@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <Pine.LNX.3.96.980606155806.969A-100000@rnaworld.princeton.edu> from "Red Hat Linux User" at Jun 6, 98 04:18:11 pm

"Red Hat Linux User" writes:
> 
> When doing an xmkmf and make
> 
> gcc -O2     -I/usr/X11R6/include -I/include  -Dlinux -D__alpha__
> -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L
> -D_BSD_SOURCE -D_SVID_SOURCE   -DFUNCPROTO=15 -DNARROWPROTO
> -DRASMOLDIR=\"/usr/X11R6/lib/rasmol/\" -DEIGHTBIT   -c rasmol.c -o
                                          ^^^^^^^
                                    You likely want to change that.
> rasmol.o
> 
> The compiler complains: 
> 
> rasmol.c: In function `OpenConnection':
> rasmol.c:328: invalid use of undefined type `struct fd_set'

fd_set is in headers a typedef already to a structure so this really
should be just 'fd_set'.

> and 
> 
> rasmol.c: At top level:
> rasmol.c:111: storage size of `OrigWaitSet' isn't known

Rasmol needs the following set of includes in rasmol.c
....
#ifdef linux
#include <sys/ioctl.h>
#include <sys/termios.h>
#include <sys/select.h>
#include <string.h>
#else
#include <sys/termio.h>
#endif /* linux */
#endif /* _CONVEX_SOURCE */ 
....
and after a change outlined above it will compile just fine with glibc.

If it works - that I do not know at this moment. :-)


  Michal


  reply	other threads:[~1998-06-07 15:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-06-06 20:18 Errors compiling Rasmol under Redhat 5.1 Red Hat Linux User
1998-06-07 15:58 ` Michal Jaegermann [this message]
1998-06-08 23:44 ` Uncle George
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