From: Red Hat Linux User <tim@rnaworld.princeton.edu>
To: axp-list@redhat.com
Subject: Errors compiling Rasmol under Redhat 5.1
Date: Sat, 6 Jun 1998 16:18:11 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.3.96.980606155806.969A-100000@rnaworld.princeton.edu> (raw)
Rasmol is an excellent free-ware molecular visualization program. I was
able to compile and run it under redhat 4.2 with a termino->terminos
header file change but under 5.1 it chokes under expansion of FD_SET and
FD_CLR macros.
The following is a code snipit from the file rasmol.c.
static struct fd_set OrigWaitSet;
static int OpenConnection( socket )
int socket;
{
register int i;
for( i=0; i<MaxConvNum; i++ )
if( !ConvData[i].protocol )
{ FD_SET(socket,&OrigWaitSet);
if( socket >= WaitWidth )
WaitWidth = socket+1;
ConvData[i].protocol = ProtoRasMol;
ConvData[i].socket = socket;
return( True );
}
close( socket );
return( False );
}
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
rasmol.o
The compiler complains:
rasmol.c: In function `OpenConnection':
rasmol.c:328: invalid use of undefined type `struct fd_set'
and
rasmol.c: At top level:
rasmol.c:111: storage size of `OrigWaitSet' isn't known
When I explicitly include <sys/select.h> which defines fd_set the messages
still appear.
Have the necessary header files changed from 4.2?
If anyone wants to take a look at the code it can be found at
http://evolution.bmc.uu.se/~thomas/mol_linux/rasmol/
Thanks,
Tim
tim@rnaworld.princeton.edu
next reply other threads:[~1998-06-06 20:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-06-06 20:18 Red Hat Linux User [this message]
1998-06-07 15:58 ` Errors compiling Rasmol under Redhat 5.1 Michal Jaegermann
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