Exim 4.72 build fails

bdj

Verified User
Joined
Feb 22, 2008
Messages
152
On my Freebsd 6 system I do

Code:
cd /usr/local/directadmin/custombuild
./build update
./build exim

Result:

Code:
aahj:custombuild# ./build exim
File already exists:    exim-4.72.tar.gz
File already exists:    exim
File already exists:    exim_freebsd
File already exists:    exim_debian
Found /usr/local/directadmin/custombuild/exim-4.72.tar.gz
Extracting ...
Done.
--2010-12-10 22:16:09--  http://files.directadmin.com/services/custombuild/Makefile
Resolving files.directadmin.com... 72.35.85.222
Connecting to files.directadmin.com|72.35.85.222|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 48508 (47K) [text/plain]
Saving to: `Local/Makefile'

100%[============================================================>] 48,508      74.8K/s   in 0.6s

2010-12-10 22:16:10 (74.8 KB/s) - `Local/Makefile' saved [48508/48508]

Trying to make exim...

>>> Creating links to source files...
>>> New Makefile installed
>>> Use "make makefile" if you need to force rebuilding of the makefile

/bin/sh ../scripts/Configure-os.h
/bin/sh ../scripts/Configure-os.c
gcc buildconfig.c
/bin/sh ../scripts/Configure-config.h "make"
`buildconfig' is up to date.
Building configuration file config.h
>>> config.h built

>>> exicyclog script built
>>> exinext script built
>>> exiwhat script built
>>> exigrep script built
>>> eximstats script built
>>> exipick script built
>>> exiqgrep script built
>>> exiqsumm script built
>>> transport-filter.pl script built
>>> convert4r3 script built
>>> convert4r4 script built
>>> exim_checkaccess script built

gcc exim_dbmbuild.c
gcc -o exim_dbmbuild
/usr/bin/strip exim_dbmbuild
>>> exim_dbmbuild utility built

gcc -DEXIM_DUMPDB exim_dbutil.c
gcc -DCOMPILE_UTILITY os.c
gcc -DCOMPILE_UTILITY store.c
gcc -o exim_dumpdb
/usr/bin/strip exim_dumpdb
>>> exim_dumpdb utility built

gcc -DEXIM_FIXDB exim_dbutil.c
gcc -o exim_fixdb
/usr/bin/strip exim_fixdb
>>> exim_fixdb utility built

gcc -DEXIM_TIDYDB exim_dbutil.c
gcc -o exim_tidydb
/usr/bin/strip exim_tidydb
>>> exim_tidydb utility built

gcc exim_lock.c
gcc -o exim_lock
/usr/bin/strip exim_lock
>>> exim_lock utility built

gcc cdb.c
gcc dbmdb.c
gcc dnsdb.c
gcc dsearch.c
gcc ibase.c
gcc ldap.c
gcc lsearch.c
gcc mysql.c
gcc nis.c
gcc nisplus.c
gcc oracle.c
gcc passwd.c
gcc pgsql.c
gcc spf.c
gcc sqlite.c
gcc testdb.c
gcc whoson.c
gcc lf_check_file.c
gcc lf_quote.c
gcc lf_sqlperform.c
ar cq lookups.a
ranlib lookups.a

gcc accept.c
gcc dnslookup.c
gcc ipliteral.c
gcc iplookup.c
gcc manualroute.c
gcc queryprogram.c
gcc redirect.c
gcc rf_change_domain.c
gcc rf_expand_data.c
gcc rf_get_errors_address.c
gcc rf_get_munge_headers.c
gcc rf_get_transport.c
gcc rf_get_ugid.c
gcc rf_lookup_hostlist.c
gcc rf_queue_add.c
gcc rf_self_action.c
gcc rf_set_ugid.c
ar cq routers.a
ranlib routers.a

gcc appendfile.c
gcc autoreply.c
gcc lmtp.c
gcc pipe.c
gcc smtp.c
gcc tf_maildir.c
ar cq transports.a
ranlib transports.a

gcc auth-spa.c
gcc b64decode.c
gcc b64encode.c
gcc call_pam.c
gcc call_pwcheck.c
gcc call_radius.c
gcc check_serv_cond.c
gcc cram_md5.c
gcc cyrus_sasl.c
cyrus_sasl.c:34:23: sasl/sasl.h: No such file or directory
cyrus_sasl.c: In function `mysasl_config':
cyrus_sasl.c:88: error: `SASL_OK' undeclared (first use in this function)
cyrus_sasl.c:88: error: (Each undeclared identifier is reported only once
cyrus_sasl.c:88: error: for each function it appears in.)
cyrus_sasl.c:90: error: `SASL_FAIL' undeclared (first use in this function)
cyrus_sasl.c: In function `auth_cyrus_sasl_init':
cyrus_sasl.c:105: error: `sasl_conn_t' undeclared (first use in this function)
cyrus_sasl.c:105: error: `conn' undeclared (first use in this function)
cyrus_sasl.c:106: error: syntax error before "cbs"
cyrus_sasl.c:29:1: unterminated #else
*** Error code 1

Stop in /usr/local/directadmin/custombuild/exim-4.72/build-FreeBSD-i386/auths.
*** Error code 1

Stop in /usr/local/directadmin/custombuild/exim-4.72/build-FreeBSD-i386.
*** Error code 1

Stop in /usr/local/directadmin/custombuild/exim-4.72.
-e \n*** The make has failed, do you want to try to make again? (y,n): n

Any help?
Thanks
 
scsi, thanks for the help. I didn't find that kb article.

I'll try and report back.
 
I installed cyrus-sasl2 via ports and then retried custombuild. Worked like a charm.

Thanks
 
I dont even see ./build exim in my custombuild . Any ideas?
 
I updated to custombuild 1.2 that fixed that problem... however the whole reason i tried rebuilding exim was becasue the process wont start. its in a stopped state... after the rebuild it still does not start. Also today i have been getting a lot more then usual httpd processes... so much i have to restart apache every so often becasue it seems to have crashed. ANyone can help?
 
You should check your apache logs or turn on apache extended status to see what is going on.

Try rebuilding exim from source following this guide if it wont start:

http://help.directadmin.com/item.php?id=125

Also you can check the logs /var/log/messages or /var/log/exim/ to see what is going on.
 
I tried the source build earlier today. That didnt work. Then I just tried the exim thing. and that didnt work. my admin who ironically is away on vacation today.... has setup some cronjob updating things I get a message every morning at 4am from charlie root. Maybe an update has started this madness?

Going to check the logs for the httpd thing now.
 
Last edited:
Either your server is very busy or under attack.

You should try raising the sysctl setting vm.pmap.pv_entry_max

You can type:

sysctl vm.pmap.pv_entry_max

To see what the current value is... and then to raise it just do:

sysctl vm.pmap.pv_entry_max=XXXX

where XXXX is a higher number then the one reported above.

You should do this to see what is going on:

http://help.directadmin.com/item.php?id=91

Then you can see how many connections are taking place and what site is getting the most traffic.
 
SCSI i really do appreaciate all your help. THe "attacks" as you put it have seemed to stop. I have tried both methods of getting exim up and I cant... it seems like I can start the process from sshd but wehn i do my curorsor isnt movable it doesnt enter to the next line. any ideas on getting this thing back running properly?
 
Login via ssh as root user and type:

/usr/local/etc/rc.d/exim.sh restart

What happens?
 
mcfly# /usr/local/etc/rc.d/exim.sh restart
/usr/local/etc/rc.d/exim.sh: Command not found
 
if i cd /usr/local/etc/rc.d/ and type exim restart it just freezes i have to ctrl+c to get out.

mcfly# exim restart
^C
exim: SIGINT received - message abandoned
 
You can do it like that...typing exim is trying to start the daemon from /usr/bin/exim.

If you want to cd to the folder then it needs to be done like this.

cd /usr/local/etc/rc.d
./exim.sh restart

The ./ is important.
 
aww ok... i tried that though same thing command not found


mcfly# cd /usr/local/etc/rc.d
mcfly# ./exim.sh restart
./exim.sh: Command not found.
 
ok maybe its not called exim.sh

Try:

./exim restart
 
sorry for delay i had to walk to the dogs... when i typed ./exim restart

mcfly# ./exim restart
mcfly#


it seemed ultra fast... like nothing happened
 
here is the dir listing of /usr/local/etc/rc.d/

mcfly# ls
boot.sh* exim* proftpd*
boot.sh.old* ffserver* rsyncd*
da-popb4smtp* functions* shoutcast*
da-popb4smtp.core httpd* sshd*
denyhosts* mysqld* startips*
directadmin* named* vm-pop3d*
dovecot* pidof*
 
Back
Top