LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-02-2005, 11:20 AM   #1
ddaas
Member
 
Registered: Oct 2004
Location: Romania
Distribution: Ubuntu server, FreeBsd
Posts: 474

Rep: Reputation: 30
can't build sendmail v8.13.4 with starttls support on slack 10.1


Hi,
I have a problem building sendmail8.13.4 with starttls support on by slack 10.1 box.


In devtools/Site/ directory I created site.config.m4 file. It looks as follows:

APPENDDEF(`confENVDEF',`-DSTARTTLS')
APPENDDEF(`confLIBS', `-lssl -lcrypto')
APPENDDEF(`confLIBDIRS', `-L/usr/local/ssl/lib -R/usr/local/ssl/lib')
APPENDDEF(`confINCDIRS', `-I/usr/local/ssl/include')

Then I tried to run ./Build -c

The following errors occur:

cc: unrecognized option `-R/usr/local/ssl/lib'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin/ld: c
annot find -lphclient
collect2: ld returned 1 exit status
make[1]: *** [t-event] Error 1
In file included from debug.c:11:
../../sendmail/sendmail.h:1323:23: phclient.h: No such file or directory
In file included from debug.c:11:
../../sendmail/sendmail.h:1329: error: parse error before "PH"
../../sendmail/sendmail.h:1329: warning: no semicolon at end of struct or union
../../sendmail/sendmail.h:1332: error: parse error before '}' token
make[1]: *** [debug.o] Error 1
In file included from debug.c:11:
../../sendmail/sendmail.h:1323:23: phclient.h: No such file or directory
In file included from debug.c:11:
../../sendmail/sendmail.h:1329: error: parse error before "PH"
../../sendmail/sendmail.h:1329: warning: no semicolon at end of struct or union
../../sendmail/sendmail.h:1332: error: parse error before '}' token
make[2]: *** [debug.o] Error 1

I've installed openssl-0.9.7g in its default directory /usr/local/ssl


Note: Without site.config.m4 file from devtools/Site Build works just fine.


Any ideas?

What do I do wrong?

Thanks a lot
 
Old 06-02-2005, 12:47 PM   #2
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
Quote:
cc: unrecognized option `-R/usr/local/ssl/lib'
Quote:
APPENDDEF(`confLIBDIRS', `-L/usr/local/ssl/lib -R/usr/local/ssl/lib')
C compiler can't recognize -R parameter. Where did you get it ?
Quote:
usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin/ld: c
annot find -lphclient
collect2: ld returned 1 exit status
make[1]: *** [t-event] Error 1
In file included from debug.c:11:
../../sendmail/sendmail.h:1323:23: phclient.h: No such file or directory
C compiler cann't find phclient.h include file and phclient library. I found this link. Maybe you should install it first.

I don't intend to offend you, but it looks like you miss some basic knowledge and experience and I'd recommend to learn and read much more before you'll mess with such things
 
Old 06-02-2005, 02:35 PM   #3
ddaas
Member
 
Registered: Oct 2004
Location: Romania
Distribution: Ubuntu server, FreeBsd
Posts: 474

Original Poster
Rep: Reputation: 30
Quote:
C compiler can't recognize -R parameter. Where did you get it ?
The site.config.m4.sample from the devtools/Site directory mention -R. Now you get where I take it from.

dnl ### Note the "-R" for the library directory. On some systems, ###
dnl ### that can be used to tell the run time loader where to find ###
dnl ### dynamic libraries (shared objects). Check your system ###
dnl ### documentation (man ld) to see if this is appropriate for your ###
dnl ### system. ###
dnl ### ###
dnl #####################################################################
dnl ### Changes for STARTTLS support
APPENDDEF(`confENVDEF',`-DSTARTTLS')
APPENDDEF(`confLIBS', `-lssl -lcrypto')
APPENDDEF(`confLIBDIRS', `-L/usr/local/ssl/lib -R/usr/local/ssl/lib')
APPENDDEF(`confINCDIRS', `-I/usr/local/ssl/include')

Quote:
C compiler cann't find phclient.h include file and phclient library. I found this link. Maybe you should install it first.
Thanks. I should do it !



Quote:
I don't intend to offend you, but it looks like you miss some basic knowledge and experience and I'd recommend to learn and read much more before you'll mess with such things
No comment.


Thanks for your help. It is really appreciated.
 
Old 06-02-2005, 02:54 PM   #4
ddaas
Member
 
Registered: Oct 2004
Location: Romania
Distribution: Ubuntu server, FreeBsd
Posts: 474

Original Poster
Rep: Reputation: 30
I've installed PH Client and Programming API and I've got rid of -R option and it worked just fine.


Thanks,
p.s.
Quote:
I don't intend to offend you, but it looks like you miss some basic knowledge and experience and I'd recommend to learn and read much more before you'll mess with such things
You are right.
 
Old 06-02-2005, 05:48 PM   #5
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
Thou art welcome
 
Old 10-01-2008, 01:31 AM   #6
DdVar
LQ Newbie
 
Registered: Oct 2008
Posts: 4

Rep: Reputation: 0
Arrow new problem

Hello.
I had the same trouble, and this topic is decision.
But after elimination of this problem, I had a new trouble:

Quote:
/usr/bin/ld: cannot find -lphclient
I tried to reinstall nph with option in Makefile:
Quote:
FORCE_PKG_REGISTER = 1
But it does not help..

p.s. I use FreeBSD 7.0 RELEASE (I hope it will not prevent to answer a question)
 
  


Reply



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
cant build in slack Pinkdog Slackware 1 10-31-2003 09:27 AM
sendmail build problem budzynm Linux - Software 1 09-10-2003 11:03 PM
build kernel with LVM support raggmopp Linux - Software 0 06-20-2003 04:25 PM
Sendmail STARTTLS Manuel-H Linux - General 0 04-11-2003 08:20 AM
How to build jpeg support into PHP Larry James Programming 4 10-14-2000 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:57 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