AMBER Archive (2006)

Subject: AMBER: Xleap compilation problem

From: Sergio Dall'Angelo (sergio.dallangelo_at_unimi.it)
Date: Fri May 12 2006 - 05:19:48 CDT


Dear all
I've some xleap compilation error (below) near the end of compilation of
Amber9 after patching with bugfix.all on a turion64-based laptop with
gfortran compiler (./configure -athlon gfortran) running in a Ubuntu
6.06 32 bit environment with Xorg7.0.

I've this problem first:

gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -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 `/home/sergio/amber9/src/leap/src/Xraw'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/sergio/amber9/src/leap'
make: *** [serial] Error 2

And I've solved in this way, like Wei Zhang suggest in a previus mail

>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

After this change I've tried to re-compile, but I've this error

make[2]: Entering directory `/home/sergio/amber9/src/leap/src/Xraw'
Makefile:10: warning: overriding commands for target `.c.o'
../../../config.h:86: warning: ignoring old commands for target `.c.o'
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o 3d.o 3d.c
3d.c: In function ‘AllocShadowPixel’:
3d.c:393: warning: comparison is always false due to limited range of
data type
3d.c:393: warning: comparison is always false due to limited range of
data type
3d.c:394: warning: comparison is always false due to limited range of
data type
3d.c:394: warning: comparison is always false due to limited range of
data type
3d.c:395: warning: comparison is always false due to limited range of
data type
3d.c:395: warning: comparison is always false due to limited range of
data type
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o AllWidgets.o AllWidgets.c
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o Arrow.o Arrow.c
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o AsciiSink.o AsciiSink.c
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o AsciiSrc.o AsciiSrc.c
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o AsciiText.o AsciiText.c
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o Box.o Box.c
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o Clock.o Clock.c
Clock.c:48: warning: conflicting types for built-in function ‘round’
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o Command.o Command.c
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o color.o color.c
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o Container.o Container.c
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o Dialog.o Dialog.c
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o Form.o Form.c
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o Frame.o Frame.c
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o Grip.o Grip.c
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o Label.o Label.c
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o List.o List.c
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o Logo.o Logo.c
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o MenuButton.o MenuButton.c
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o Paned.o Paned.c
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o Panner.o Panner.c
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o Porthole.o Porthole.c
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o Repeater.o Repeater.c
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o Scrollbar.o Scrollbar.c
gcc -c -I/usr/X11R6/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-O2 -m32 -o ScrolledTable.o ScrolledTable.c
ScrolledTable.c: In function ‘XawScrolledTableSetLocation’:
ScrolledTable.c:1160: error: syntax error before ‘float’
ScrolledTable.c:1173: error: syntax error before ‘if’
ScrolledTable.c:1175: error: parameter ‘num_subs’ is initialized
ScrolledTable.c:1176: error: syntax error before ‘subs’
ScrolledTable.c:1210: error: parameter ‘shown’ is initialized
ScrolledTable.c:1210: error: ‘stw’ undeclared (first use in this function)
ScrolledTable.c:1210: error: (Each undeclared identifier is reported
only once
ScrolledTable.c:1210: error: for each function it appears in.)
ScrolledTable.c:1212: error: syntax error before ‘XawScrollbarSetThumb’
ScrolledTable.c:1218: error: parameter ‘shown’ is initialized
ScrolledTable.c:1218: error: redefinition of parameter ‘shown’
ScrolledTable.c:1210: error: previous definition of ‘shown’ was here
ScrolledTable.c:1221: error: syntax error before ‘XawScrollbarSetThumb’
make[2]: *** [ScrolledTable.o] Error 1
make[2]: Leaving directory `/home/sergio/amber9/src/leap/src/Xraw'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/sergio/amber9/src/leap'
make: *** [serial] Error 2

Could you help me!!
Thanks in advance!
Sergio

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