LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-19-2011, 03:28 AM   #1
monkeydog
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
error during install makemap and mailstats of sendmail


Hi everyone, I intend to install cryus-sasl, procmail and sendmail for my school. After I've finished the install of cyrus-sasl and procmail, I try to install sendmail. I have config the required setting of sendmail which let it support cryus-sasl in the file sendmail/devtools/Site/site.config.m4, then I build the main program of the sendmail and created the related user account and directories. It doesn't has any error. But when I try to build the program "makemap" and "mailstats", it has the similar error which said that there are an unrecognized option '-R/usr/local/ssl/lib' and can't find -lphclient. Here are the dump screen after I type the command "sh Build install" in the directory of program "makemap":

[root@chmsmail makemap]# sh Build install
Configuration: pfx=, os=Linux, rel=2.6.18-194.el5PAE, rbase=2, rroot=2.6.18-194, arch=i686, sfx=, variant=optimized
Making in /usr/local/src/sendmail/obj.Linux.2.6.18-194.el5PAE.i686/makemap
cc -O2 -I. -I../../sendmail -I../../include -I/opt/nph/include -I/usr/local/ssl/include -I/usr/local/cyrus-sasl2/include -DNEWDB -DMAP_REGEX -DPH_MAP -UNIS -DSTARTTLS -DTCPWRAPPERS -DSASL=2 -DNOT_SENDMAIL -c -o makemap.o makemap.c
cc -o makemap -L/opt/nph/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/cyrus-sasl2/lib makemap.o /usr/local/src/sendmail/obj.Linux.2.6.18-194.el5PAE.i686/libsmdb/libsmdb.a /usr/local/src/sendmail/obj.Linux.2.6.18-194.el5PAE.i686/libsmutil/libsmutil.a /usr/local/src/sendmail/obj.Linux.2.6.18-194.el5PAE.i686/libsm/libsm.a -ldb -lresolv -lcrypt -lnsl -ldl -lphclient -lssl -lcrypto
cc: unrecognized option '-R/usr/local/ssl/lib'
/usr/bin/ld: cannot find -lphclient
collect2: ld returned 1 exit status
make: *** [makemap] Error 1

Anyone can tell me what should I do to tackle the error? Thank you very much.
 
Old 04-19-2011, 06:19 AM   #2
jadrevenge
Member
 
Registered: Mar 2011
Location: Manchester,UK
Distribution: OpenIndiana/Ubuntu
Posts: 37

Rep: Reputation: 2
hack the makefile and change "-R/usr/local/ssl/lib" to "-Wl,-rpath,/usr/local/ssl/lib"

-R works on some compilers, I'm assuming that sendmail thinks you're running Solaris ...

the lphclient seems to be related to "sendmail ph Map Class Support": http://www.feep.net/sendmail/phmap/

which sends you to: http://www.feep.net/nph/

I don't quite get that myself, it's never asked me for it before ... what options did you specify in the "site.config.m4"?
 
Old 04-19-2011, 09:10 PM   #3
monkeydog
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you for your advice. I have just read the README under sendmail/devtools/Site/ and find that I should add a -c for any Build command once I have modified the site.config.m4. The problem has been solved. Thank you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail: eocket wedge , 504 error , dsn error, mail relay connection error djcs Debian 0 03-03-2009 01:41 AM
Sendmail Config and Mailstats Russell Griffiths Linux - Software 1 10-04-2006 11:54 AM
Mailstats output - Mailers Russell Griffiths Linux - Software 2 10-03-2006 06:51 PM
can't makemap local-host-names in sendmail TomHodder Linux - Software 2 09-09-2003 10:21 PM
Sendmail Error while sendmail mail palavsachin27 Linux - Networking 1 01-22-2003 05:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration