[xcrysden] The issue of compiling XCrySDen-1.5.24-src-all on Debian squeeze.

Hongsheng Zhao zhaohscas at yahoo.com.cn
Thu Jun 23 11:55:17 CEST 2011


On 06/23/2011 05:18 PM, Tone Kokalj wrote:
> On Sat, 2011-06-18 at 17:29 +0800, Hongsheng Zhao wrote:
>> Dear Prof. Tone,
>>
>> I'm trying to compiling XCrySDen-1.5.24-src-all on Debian squeeze.
>> I use the Make.linux-semishared as the Make.sys.
>>
>> When I type the *make all*, I meet the following errors:
>>
>>
>> --------
>> In file included from /usr/include/meschach/matrix2.h:35:0,
>>                    from shankland.h:4,
>>                    from fft3d.c:6:
>> /usr/include/meschach/matrix.h:49:3: error: unknown type name ‘u_int’
>
> Delete the "-ansi" flag from the CFLAGS in Make.sys and it should work.

I've compiled it according to your above advice, but this time I meet 
the the following errors:

----------
fft3d.o: In function `fft3d_interpolate':
fft3d.c:(.text+0x3eb): undefined reference to `fftw_malloc'
fft3d.c:(.text+0x408): undefined reference to `fftw_malloc'
fft3d.c:(.text+0x43a): undefined reference to `fftw_plan_dft_r2c_3d'
fft3d.c:(.text+0x46c): undefined reference to `fftw_plan_dft_c2r_3d'
fft3d.c:(.text+0x47a): undefined reference to `fftw_execute'
fft3d.c:(.text+0x51e): undefined reference to `fftw_execute'
fft3d.c:(.text+0x529): undefined reference to `fftw_destroy_plan'
fft3d.c:(.text+0x534): undefined reference to `fftw_destroy_plan'
fft3d.c:(.text+0x53f): undefined reference to `fftw_free'
fft3d.c:(.text+0x54a): undefined reference to `fftw_free'
shank3d.o: In function `shankland3d_interpolate':
shank3d.c:(.text+0x440): undefined reference to `fftw_malloc'
shank3d.c:(.text+0x472): undefined reference to `fftw_plan_dft_r2c_3d'
shank3d.c:(.text+0x4a4): undefined reference to `fftw_plan_dft_c2r_3d'
shank3d.c:(.text+0x615): undefined reference to `fftw_execute'
shank3d.c:(.text+0x87b): undefined reference to `fftw_execute'
shank3d.c:(.text+0x8bc): undefined reference to `fftw_destroy_plan'
shank3d.c:(.text+0x8c7): undefined reference to `fftw_destroy_plan'
shank3d.c:(.text+0x8d2): undefined reference to `fftw_free'
shank_Hinv.o: In function `shank_HinvObj':
shank_Hinv.c:(.text+0x2c): undefined reference to `m_get'
shank_Hinv.o: In function `shank_Hinv':
shank_Hinv.c:(.text+0xa5): undefined reference to `m_get'
shank_Hinv.c:(.text+0x2a3): undefined reference to `m_inverse'
shank_Hinv.c:(.text+0x2ae): undefined reference to `m_free'
shank_Hinv.o: In function `shank1d_lambda':
shank_Hinv.c:(.text+0x42c): undefined reference to `m_free'
shank_Hinv.o: In function `shank2d_lambda':
shank_Hinv.c:(.text+0x691): undefined reference to `m_free'
shank_Hinv.c:(.text+0x69c): undefined reference to `m_free'
shank_Hinv.o: In function `shank3d_lambda':
shank_Hinv.c:(.text+0xa09): undefined reference to `m_free'
shank_Hinv.o:shank_Hinv.c:(.text+0xa1c): more undefined references to 
`m_free' follow
collect2: ld returned 1 exit status
make[2]: *** [xcrys] Error 1
make[2]: Leaving directory 
`/home/werner/software/XCrySDen_relative/XCrySDen-1.5.24-src-all/C'
make[1]: *** [compile] Error 2
make[1]: Leaving directory 
`/home/werner/software/XCrySDen_relative/XCrySDen-1.5.24-src-all/C'
make: *** [src-C] Error 2
----------

Attached please find the Make.sys file used in my case.

Regards
-- 
Hongsheng Zhao <zhaohscas at yahoo.com.cn>
School of Physics and Electrical Information Science,
Ningxia University, Yinchuan 750021, China
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Make.sys
Url: http://www.democritos.it/pipermail/xcrysden/attachments/20110623/213b2e4c/attachment.asc 


More information about the XCrySDen mailing list