AMBER Archive (2006)

Subject: Re: AMBER: conflicting types for XawScrolledTableSetLocation

From: Wei Zhang (zweig_at_scripps.edu)
Date: Thu May 04 2006 - 12:17:40 CDT


Hi,

Somebody has encountered before, though I don't know why it happens,
the solution is easy:

1. open file xxx/amber9/src/leap/src/Xraw/ScrolledTable.c

2. around line 1154, find the following code:

void
#if NeedFunctionPrototypes
XawScrolledTableSetLocation (Widget gw,
#if NeedWidePrototypes
                        double xoff, double yoff)
#else
                        float xoff, float yoff)
#endif
#else
XawScrolledTableSetLocation (gw, xoff, yoff)
    Widget gw;
    float xoff,yoff;
#endif

change it into

void XawScrolledTableSetLocation(Widget gw, double xoff, double yoff )

then re-compile

should solve your problem, if it doesn't, let me know.

Good Luck!

Sincerely,

Wei

On Thu, 2006-05-04 at 08:43 -0700, K. Yarem wrote:
> We encountered this xleap compilation error (below) near the end of
> compilation of Amber9 after patching with bugfix.all on a Pentium4-
> based workstation with Intel's Ifort8.0 and MKL 7.2 (configure -p4
> ifort_ia32) running in a Fedora Core 5 environment. On this same
> system, Amber8 (including xleap) compiles and runs with no problems.
>
> Any feedback would be greatly appreciated - Thanks!
>
> gcc -m32 -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -
> D_LARGEFILE_SOURCE -O2 -o ScrolledTable.o ScrolledTable.c
> ScrolledTable.c:1167: error: conflicting types for
> ‘XawScrolledTableSetLocation’
> ScrolledTable.h:99: error: previous declaration of
> ‘XawScrolledTableSetLocation’ was here
> make[2]: *** [ScrolledTable.o] Error 1
> make[2]: Leaving directory `/usr/local/amber9/src/leap/src/Xraw'
> make[1]: *** [install] Error 2
> make[1]: Leaving directory `/usr/local/amber9/src/leap'
> make: *** [serial] Error 2
>
>
>
> ______________________________________________________________________
> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great
> rates starting at 1¢/min.

-- 
Wei Zhang <zweig_at_scripps.edu>
The Scripps Research Institute

----------------------------------------------------------------------- The AMBER Mail Reflector To post, send mail to amber_at_scripps.edu To unsubscribe, send "unsubscribe amber" to majordomo_at_scripps.edu