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.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th June 2012, 06:06
said76 said76 is offline
Junior Member
 
Join Date: Oct 2010
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default error on dict_nis.c when compiling postfix

Hi,

I am encountering some problems when trying to install Postfix from its source. I am compiling the latest version of Postfix-2.9.3 onto my Ubuntu Server 12.04.

Here is my compilation detail
make makefiles 'CCARGS=-DHAS_MYSQL -I/home/server/mysql/include/mysql -DUSE_TLS -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DHAS_PCRE -I/usr/include' 'AUXLIBS=-L/home/server/mysql/lib/mysql -lmysqlclient -lz -lm -L/usr/local/lib -lssl -lcrypto -L/usr/lib -lpcre'

I am getting the following error messages
../../lib/libutil.a(dict_nis.o): In function `dict_nis_lookup':
/home/src/postfix-2.9.3/src/util/dict_nis.c:173: undefined reference to `yp_match'
/home/src/postfix-2.9.3/src/util/dict_nis.c:187: undefined reference to `yp_match'
../../lib/libutil.a(dict_nis.o): In function `dict_nis_init':
/home/src/postfix-2.9.3/src/util/dict_nis.c:81: undefined reference to `yp_get_default_domain'
collect2: ld returned 1 exit status
make: *** [sendmail] Error 1
make: *** [update] Error 1

I tried to google them on the Internet but to no avail. I was wondering if I need a certain package installed prior to postfix installation.

Any help would be greatly appreciated
Reply With Quote
Sponsored Links
  #2  
Old 13th June 2012, 14:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Did you install all dependencies with
Code:
apt-get build-dep postfix
?

Also, you might want to disable dash by running
Code:
dpkg-reconfigure dash
http://www.howtoforge.com/virtual-us...untu-12.04-lts should give you some hints.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 14th June 2012, 03:04
said76 said76 is offline
Junior Member
 
Join Date: Oct 2010
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Falko,

Thank you for your reply.

I tried the command "apt-get build-dep postfix" but still got the same error messages as described in my earlier thread.

Falko, thank you for the link. I would definitely use this link in a very short future. As soon as my postfix has been installed successfully, I'm gonna need to refer to the article you posted for guidance.

However, in the article, I noticed you actually installed postfix from the Ubuntu package as opposed to installing it from the source which is what I am trying to do.

Thank you
Reply With Quote
  #4  
Old 14th June 2012, 16:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Oh, I was thinking you tried to build Postfix from the deb src package instead of from the real sources.

In that case I'd try the following:
Code:
apt-get install build-essential binutils-gold
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 15th June 2012, 03:13
said76 said76 is offline
Junior Member
 
Join Date: Oct 2010
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Hi Falko,

Tried to run the command "$ apt-get install build-essential binutils-gold" but unfortunately didn't work. Still the same errors

dict_nis.c:173: error: undefined reference to 'yp_match'
dict_nis.c:187: error: undefined reference to 'yp_match'
dict_nis.c:81: error: undefined reference to 'yp_get_default_domain'
collect2: ld returned 1 exit status
make: *** [sendmail] Error 1
make: *** [update] Error 1

This is coming from dict_nis_init. I wonder what kind of header files I'd need for this to be recognized by the server.

I don't know if binutils-dev might do the trick here. It's a trial and error experiment.

Thank you
Reply With Quote
Reply

Bookmarks

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
Getting Email Working ISPConfig3 Squirrelmail and Courier etc Ian Wilson Installation/Configuration 17 19th June 2013 22:58
Postfix SMTP Auth to Dovecot Not Working -- HELP! Scratchpad Server Operation 6 12th April 2011 13:29
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36


All times are GMT +2. The time now is 18:34.


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