From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 24830 invoked from network); 6 Jun 1998 20:16:41 -0000 Received: from rnaworld.princeton.edu (128.112.113.124) by mail2.redhat.com with SMTP; 6 Jun 1998 20:16:41 -0000 Received: from localhost (tim@localhost) by rnaworld.princeton.edu (8.8.7/8.8.7) with SMTP id QAA05706 for ; Sat, 6 Jun 1998 16:18:11 -0400 Date: Sat, 6 Jun 1998 16:18:11 -0400 (EDT) From: Red Hat Linux User To: axp-list@redhat.com Subject: Errors compiling Rasmol under Redhat 5.1 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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= 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 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