AMBER Archive (2002)

Subject: Re: amber on RH8

From: Scott Brozell (sbrozell_at_scripps.edu)
Date: Thu Nov 07 2002 - 15:13:14 CST


Hello,

Indeed, sTemp1 and sTemp2 are undeclared.
They only appear after preprocessing when DEBUG is defined
because DEBUG controls the effect of the macro MESSAGE,
see src/leap/src/leap/basics.h.
It is not clear to me why DEBUG is defined, -DDEBUG, for your build
since it is not defined when I build leap.
The bugfix is to add the declaration to function zbUnitIOIndexBondParameters:

*** unitio.c 22 Oct 2002 15:14:28 -0000 7.29
--- unitio.c 7 Nov 2002 20:46:00 -0000
***************
*** 1254,1260 ****
      double dKb, dR0;
      STRING sAtom1, sAtom2, sDesc;
      PARMSET psTemp;
+
  
      bFailedGeneratingParameters = FALSE;
  
--- 1254,1260 ----
      double dKb, dR0;
      STRING sAtom1, sAtom2, sDesc;
      PARMSET psTemp;
+ STRING sTemp1, sTemp2;
  
      bFailedGeneratingParameters = FALSE;
  
-------------------------------------------------------------

Alternatively, you could build leap without -DDEBUG.
Thanks for detecting this bug.

Scott Brozell, Ph.D. | e-mail: sbrozell_at_scripps.edu
Dept. of Molecular Biology, TPC15 | fax: +1-858-784-8896
The Scripps Research Institute | phone: +1-858-784-8754
10550 N. Torrey Pines Rd. | home page:
La Jolla CA 92037 USA | http://www.scripps.edu/~sbrozell

On 7 Nov 2002, chernhoe wrote:

> The following error message was observed when I tried to compile using
> Machine.ifc on an AMD XP 1800+ machine using Red Hat 8 with updated
> rpms.
>
> gcc -g -DDEBUG -DMEMORY_DEBUG=0 -I.. -w -I/usr/X11R6/include
> -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE
> -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15
> -DNARROWPROTO -c -o unit.o unit.c
> gcc -g -DDEBUG -DMEMORY_DEBUG=0 -I.. -w -I/usr/X11R6/include
> -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE
> -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15
> -DNARROWPROTO -c -o unitio.o unitio.c
> unitio.c: In function `zbUnitIOIndexBondParameters':
> unitio.c:1318: `sTemp1' undeclared (first use in this function)
> unitio.c:1318: (Each undeclared identifier is reported only once
> unitio.c:1318: for each function it appears in.)
> unitio.c:1318: `sTemp2' undeclared (first use in this function)
> make[3]: *** [unitio.o] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [World] Error 2
> make: *** [install] Error 2
>
>
> The following error message was observed when I used Machine.g77. Could
> the default gcc 3.2 compiler be a problem?
>
> gcc -g -DDEBUG -DMEMORY_DEBUG=0 -I.. -w -I/usr/X11R6/include
> -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE
> -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15
> -DNARROWPROTO -c -o unit.o unit.c
> gcc -g -DDEBUG -DMEMORY_DEBUG=0 -I.. -w -I/usr/X11R6/include
> -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE
> -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15
> -DNARROWPROTO -c -o unitio.o unitio.c
> unitio.c: In function `zbUnitIOIndexBondParameters':
> unitio.c:1318: `sTemp1' undeclared (first use in this function)
> unitio.c:1318: (Each undeclared identifier is reported only once
> unitio.c:1318: for each function it appears in.)
> unitio.c:1318: `sTemp2' undeclared (first use in this function)
> make[3]: *** [unitio.o] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [World] Error 2
> make: *** [install] Error 2
>
>
>
> On Thu, 2002-11-07 at 01:12, David A. Case wrote:
> > On Wed, Nov 06, 2002, chernhoe wrote:
> >
> > > I could not compile the X-windows version of leap on RH8. Does anyone
> > > have a solution?
> > >
> >
> > Can you give us some clue about what happened? Error message, other
> > information?
> >
> > ..dac
> >
> > --
> >
> > ==================================================================
> > David A. Case | e-mail: case_at_scripps.edu
> > Dept. of Molecular Biology, TPC15 | fax: +1-858-784-8896
> > The Scripps Research Institute | phone: +1-858-784-9768
> > 10550 N. Torrey Pines Rd. | home page:
> > La Jolla CA 92037 USA | http://www.scripps.edu/case
> > ==================================================================
> >
>
>
>