Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 30th May 2012, 01:30
gaborojo gaborojo is offline
Junior Member
Join Date: May 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Hi

Ok Falco, I will be following your how to and Ill be trying to fix this problem.

I have installed binutils-gold getting the same message log.

Thank you very much.
Reply With Quote
Sponsored Links
Old 23rd October 2012, 22:18
Juu8888 Juu8888 is offline
Junior Member
Join Date: Oct 2012
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
Default German language breaks postfix compilation

I had the same problem with Ubuntu 12.04 and postfix 2.9.3 with vda-patch 2.9.1

gcc -Wmissing-prototypes -Wformat -DDEBIAN -DMAX_DYNAMIC_MAPS -DHAS_PCRE -DHAS_LDAP -DHAS_SQLITE -DMYORIGIN_FROM_FILE -DNO_NIS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAS_CDB -DHAS_MYSQL -I/usr/include/mysql -DHAS_PGSQL -I/usr/include/postgresql -DHAS_SQLITE -I/usr/include -DHAS_SSL -I/usr/include/openssl -DUSE_SASL_AUTH -I/usr/include/sasl -DUSE_CYRUS_SASL -DUSE_TLS  -O2 -I. -I../../include -DLINUX3 -o smtpd smtpd.o smtpd_token.o smtpd_check.o smtpd_chat.o smtpd_state.o smtpd_peer.o smtpd_sasl_proto.o smtpd_sasl_glue.o smtpd_proxy.o smtpd_xforward.o smtpd_dsn_fix.o smtpd_milter.o smtpd_resolve.o smtpd_expand.o ../../lib/libmaster.a ../../lib/libtls.a ../../lib/libdns.a ../../lib/libxsasl.a ../../lib/libmilter.a ../../lib/libglobal.a ../../lib/libutil.a -lssl -lcrypto -lsasl2 -lpthread -L/usr/src/postfix-2.9.3/debian -ldb
../../lib/libdns.a: undefined reference to `__res_search'
../../lib/libdns.a: undefined reference to `__dn_expand'
collect2: ld gab 1 als Ende-Status zurck
make: *** [smtpd] Fehler 1
The reason of this error: missing -lresolv

I found a problem in Postfix makedefs file. Let's check the source:

Linux.3*)   SYSTYPE=LINUX3
            if [ -f /usr/include/db.h ]
                : we are all set
            elif [ -f /usr/include/db/db.h ]
                CCARGS="$CCARGS -I/usr/include/db"
                # On a properly installed system, Postfix builds
                # by including <db.h> and by linking with -ldb
                echo "No <db.h> include file found." 1>&2
                echo "Install the appropriate db*-devel package first." 1>&2
                echo "See the RELEASE_NOTES file for more information." 1>&2
                exit 1
            SEARCHDIRS=$(${CC-gcc} -print-search-dirs 2>/dev/null |
                    sed -n '/^libraries: =/s/libraries: =//p' |
                    sed -e 's/:/\n/g' | xargs -n1 readlink -f |
                    grep -v 'gcc\|/[0-9.]\+$' | sort -u)
            if [ -z "$SEARCHDIRS" ]; then
                    SEARCHDIRS="/usr/lib64 /lib64 /usr/lib /lib /usr/lib/i386-linux-gnu"
            for name in nsl resolv
                for lib in $SEARCHDIRS
                    test -e $lib/lib$name.a -o -e $lib/lib$name.so && {
                        SYSLIBS="$SYSLIBS -l$name"

The explanation:

gcc -print-search-dirs | sed -n '/^libraries: =/s/libraries: =//p' didn't work for me, because i have Ubuntu in german language.

The gcc -print-search-dirs output is "Bibliotheken", german word of "libraries".

After changing the sed command the SYSLIBS variable filled in correctly and Postfix compiles fine.
Reply With Quote
The Following User Says Thank You to Juu8888 For This Useful Post:
falko (24th October 2012)


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix SMTP Auth to Dovecot Not Working -- HELP! Scratchpad Server Operation 6 12th April 2011 14:29
compile cp210x drivers in Ubuntu9.10 cigogo Kernel Questions 1 15th December 2009 17:27
localhost postfix/master: fatal: bind port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 18:39
Installation Fails... :( cyberstorm Installation/Configuration 1 15th January 2006 19:07
Install stop at uuwish, UUDeview SeaWolf Installation/Configuration 6 5th October 2005 00:53

All times are GMT +2. The time now is 19:56.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.