[Rspamd-Users] Build rspam package

G.W. Haywood rspamd at jubileegroup.co.uk
Sat Nov 13 18:27:38 UTC 2021


Hi there,

On Sat, 13 Nov 2021, 山本 伸一 wrote:

> I tried
>
> $ mkdir rspamd.build
> $ git clone --recursive https://github.com/rspamd/rspamd.git
> $ cd rspamd.build
> $ cmake ../rspamd
> $ make
>
> then
>
> [ 17%] Linking C executable snowball
> ld.lld: error: undefined symbol: main
>>>> referenced by start.S:104 (../sysdeps/x86_64/start.S:104)
>>>>               /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib/crt1.o:(_start)
> collect2: エラー: ld はステータス 1 で終了しました
> make[2]: *** [contrib/snowball/CMakeFiles/snowball.dir/build.make:163: contrib/snowball/snowball] エラー 1
> make[1]: *** [CMakeFiles/Makefile2:1221: contrib/snowball/CMakeFiles/snowball.dir/all] エラー 2
> make: *** [Makefile:149: all] エラー 2
> s
>
> please advice me.

I just tried

$ git clone --recursive https://github.com/rspamd/rspamd.git
$ mkdir rspamd.build
$ cd rspamd.build
$ cmake ../rspamd -DENABLE_HYPERSCAN=ON -DENABLE_LUAJIT=ON -DCMAKE_BUILD_TYPE=RelWithDebuginfo
$ make

and the build completed successfully with just a few compiler warnings.

I suspect that when you performed the 'cmake' step it gave errors, and
that you failed to fix the problems at that stage.

-- 

73,
Ged.


More information about the Users mailing list