LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   can't build sendmail v8.13.4 with starttls support on slack 10.1 (https://www.linuxquestions.org/questions/slackware-14/can%27t-build-sendmail-v8-13-4-with-starttls-support-on-slack-10-1-a-329600/)

ddaas 06-02-2005 11:20 AM

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

dunric 06-02-2005 12:47 PM

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 :study: before you'll mess with such things :jawa:

ddaas 06-02-2005 02:35 PM

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 :study: before you'll mess with such things :jawa:
No comment.


Thanks for your help. It is really appreciated.

ddaas 06-02-2005 02:54 PM

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 :study: before you'll mess with such things :jawa:
You are right.

dunric 06-02-2005 05:48 PM

Thou art welcome ;)

DdVar 10-01-2008 01:31 AM

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)


All times are GMT -5. The time now is 08:28 PM.