There is a build error when building XMail-1.26 on FreeBSD-7.x servers, I
didn’t try it on 6.x but I guess they also have this problem.

 

#gmake -f Makefile.bsd

g++   -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__ -D_REENTRANT=1 -D_THREAD_SAFE=1
-DHAS_SYSMACHINE -D_GNU_SOURCE -D_LARGEFILE64_SOURCE
-D_POSIX_PTHREAD_SEMANTICS -O2 -c MkMachDep.cpp

g++ -o bin/MkMachDep MkMachDep.o  -lssl -lcrypto -lkvm -lcrypt -pthread
-lc_r

/usr/bin/ld: cannot find -lc_r

gmake: *** [bin/MkMachDep] Error 1

 

This is simply because libc_r is deprecated and no longer installed by
default in FreeBSD, however it works fine on FreeBSD-4.11.

 

To fix the problem, open Makefile.bsd with your favorite text editor.

 

Find this:

 

        SYSTYPE = freebsd

        CFLAGS := $(CFLAGS) -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__
-D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAS_SYSMACHINE

        LDFLAGS := $(LDFLAGS) $(SSLLIBS) -lkvm -lcrypt -pthread -lc_r

 

Remove the last argument “-lc_r”

 

Save and exit.

_______________________________________________
xmail mailing list
[email protected]
http://xmailserver.org/mailman/listinfo/xmail

Reply via email to