Re: Build failure for 2.0.0

courier--- via courier-users <[email protected]> Sun, 21 Jun 2026 16:13:06 +0100
Newsgroups gmane.mail.imap.courier.general
Message-ID <[email protected]>
On 2026-06-21 11:51, Sam Varshavchik wrote:
> courier--- via courier-users writes:
> 
>> I have the following error during build of the latest version:
>> 
>> /usr/bin/ld: 
>> /usr/lib/gcc/x86_64-pc-linux-gnu/16.1.1/../../../../lib/Scrt1.o: in 
>> function `_start':
>> (.text+0x1b): undefined reference to `main'
>> collect2: error: ld returned 1 exit status
>> make[3]: *** [Makefile:790: testispell] Error 1
>> make[3]: Leaving directory 
>> '/home/aur/courier-mta/src/courier-2.0.0/libs/sqwebmail'
>> make[2]: *** [Makefile:987: all-recursive] Error 1
>> make[2]: Leaving directory 
>> '/home/aur/courier-mta/src/courier-2.0.0/libs/sqwebmail'
>> make[1]: *** [Makefile:645: all] Error 2
>> make[1]: Leaving directory 
>> '/home/aur/courier-mta/src/courier-2.0.0/libs/sqwebmail'
>> make: *** [Makefile:475: all-recursive] Error 1
>> ==> ERROR: A failure occurred in build().
>>     Aborting...
>> 
>> Running Arch linux with gcc 16.1.1
> 
> Need to see a little bit more to get the full picture. Here, for 
> reference, are the relevant logs from Github's build on Arch:
> 
> 2026-06-20T02:47:28.2277605Z g++ -std=c++17 -DHAVE_CONFIG_H -I.   -I.. 
> -I./.. -I../.. -I./../..  -march=x86-64 -mtune=generic -O2 -pipe 
> -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat 
> -Werror=format-security         -fstack-clash-protection 
> -fcf-protection         -fno-omit-frame-pointer 
> -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -Wall -MT 
> testispell.o -MD -MP -MF .deps/testispell.Tpo -c -o testispell.o 
> testispell.C
> 2026-06-20T02:47:29.1387116Z mv -f .deps/testispell.Tpo 
> .deps/testispell.Po
> 2026-06-20T02:47:29.1416701Z /bin/sh ./libtool  --tag=CXX   --mode=link 
> g++ -std=c++17  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt 
> -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat 
> -Werror=format-security         -fstack-clash-protection 
> -fcf-protection         -fno-omit-frame-pointer 
> -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -Wall  -Wl,-O1 
> -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now          
> -Wl,-z,pack-relative-relocs -o testispell testispell.o  
> ../pcp/libpcp.la ../maildir/libmaildir.la ../cgi/libcgi.la 
> ../rfc2045/libencode.la ../gpglib/libgpg.la ../rfc2045/librfc2045.la 
> ../rfc822/librfc822.la ../liblock/liblock.la ../http11/libhttp11.la 
> ../ldapaddressbook/libaddressbook.la ../random128/librandom128.la 
> ../md5/libmd5.la ../numlib/libnumlib.la 
> ../../libs/gdbmobj/libgdbmobj.la `cat ../pcp/pcp.libs` 
> -lcourier-unicode -lpthread -lcrypt
> 
> That's it. This part is actually pretty boring. The full logs from Arch 
> latest: https://tinyurl.com/3bx4seyv
> 
> 
> 
> _______________________________________________
> courier-users mailing list
> [email protected]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
  Sam,

I've sent you the full make output, but looking at yours I can see my 
make does not compile testispell - as I would expect because it wasn't 
installed - so this presumably accounts for the ld failure. I can also 
see that earlier on it recognises ispell as not found.
The compile works for 1.6.0 (and all previous versions) in exactly the 
same environment.

Neil.


_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users