Re: AMBER: Xleap compilation problem

From: Sergio Dall'Angelo <sergio.dallangelo.unimi.it>
Date: Fri, 12 May 2006 17:21:02 +0200

Hi Jordi
Thank you very much!!
I've solved my problem, I've leave a dot on the line!!!!!
Now all works!!!
Thanks
Sergio

Jordi Camps wrote:
> Hi Sergio!
>
> I've never compiled Amber 9 package (only Amber 8), but it seems that you
> made some kind of error editing the file. Please, could you send me the
> lines 1140-1180 of the file ScrolledTable.c? Or the entire file, if you
> prefer. I hope to find some syntactic error easily.
>
> Anyway, this message would better go only to the mailing list, not to
> individual people :P
>
> CU!
>
> --
> Jordi Camps Puchades
> jcamps.lsi.upc.edu
> Supercomputing research, support and development
>
> Barcelona Supercomputing Center | Instituto Nacional de Bioinformática
> | GNHC-2 UPC-CIRI
> (http://inb.lsi.upc.edu)
> http://www.bsc.es | http://www.inab.org
> Tel. : 934 134 049 | Tel. : 934 037 155
> Fax : 934 137 721 | Fax : 934 037 157
> c/ Jordi Girona, 29 | c/ Josep Samitier, 1-5
> Edifici Nexus II, despatx 109-112 | PCB, Edifici Modular, PBC32
> E-08034 Barcelona | E-08028 Barcelona
> Catalunya (Spain) | Catalunya (Spain)
>
>
>> -----Mensaje original-----
>> De: owner-amber.scripps.edu [mailto:owner-amber.scripps.edu]
>> En nombre de Sergio Dall'Angelo
>> Enviado el: viernes, 12 de mayo de 2006 11:49
>> Para: destinatari-ignoti:
>> Asunto: AMBER: Xleap compilation problem
>>
>> 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.scripps.edu
>> To unsubscribe, send "unsubscribe amber" to majordomo.scripps.edu
>>
>>
>
>
>
>

-----------------------------------------------------------------------
The AMBER Mail Reflector
To post, send mail to amber.scripps.edu
To unsubscribe, send "unsubscribe amber" to majordomo.scripps.edu
Received on Sun May 14 2006 - 06:07:14 PDT
Custom Search