LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 06-02-2009, 06:24 AM   #1
ymesfer
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Rep: Reputation: 0
Compiling sendmail 8.14.3 with NEWDB on solaris 10


Dear All,

I have compiled Sendmail 8.14.3 successfully on solaris 10. When i tried to re-compile to add NEWDB feature using the following portion of site.config.m4 file:

APPENDDEF(`confINCDIRS', `-I/usr/include')dnl
APPENDDEF(`confLIBDIRS',`-L/usr/lib/bdb')dnl
APPENDDEF(`confENVDEF', `-DNEWDB')dnl

THEN
./Build clean
crle -u -l /usr/lib/bdb ;
./Build -c

i get many sybtax errors:
------- begining of error section -----
gcc -O -I. -I../../sendmail -I../../include -I/usr/local/ssl/include -I/usr/local/include -DNDBM -DNIS -DNISPLUS -DMAP_REGEX -DNEWDB -DSOLARIS=21000 -DNETINET6 -DSTARTTLS -DNOT_SENDMAIL -c smdb1.c
smdb1.c:26: error: syntax error before "DB"
smdb1.c:26: warning: no semicolon at end of struct or union
smdb1.c:29: error: syntax error before '}' token
smdb1.c:38: error: syntax error before "smdb_type_to_db1_type"
.
.
*** Error code 1
make: Fatal error: Command failed for target `smdb1.o'
Current working directory /usr/games/sendmail-8.14.3/obj.SunOS.5.10.sun4/libsmdb
*** Error code 1
The following command caused the error:
for x in libsm libsmutil libsmdb sendmail editmap mail.local mailstats makemap praliases rmail smrsh vacation; \
do \
(cd $x; echo Making all in:; pwd; \
/bin/sh ./Build -c); \
done
make: Fatal error: Command failed for target `all'
------ end of error section -------


ANY suggestions

Thank You

Youssif
 
Old 06-03-2009, 11:38 AM   #2
ymesfer
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Dear All,,

i got it..

all i needed was Berkeley 4.7 database from www.oracle.com.. Actually i didn;t think i would need it earlier cause Sendmail 8.13.8 was already built on solaris 10 with NEWDB feature;..

before instaling the database, I had to make a link of cc to gcc..

and before recompilation of sendmail 8.14.3 with NEWDB, i had to take a copy of libdb-4.7.so to /usr/lib/

regards

Youssif
 
  


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
Compiling Linux on Solaris mintzyuval Solaris / OpenSolaris 10 06-04-2009 01:48 AM
Compiling Sendmail 8.14.3 with NEWDB on Solaris 10 ymesfer Linux - Newbie 4 06-03-2009 11:42 AM
Sendmail, Solaris 10 b1f30 Solaris / OpenSolaris 5 07-23-2008 11:56 AM
compiling and configuring sendmail on solaris 9 linux_ub Linux - Networking 1 11-09-2004 04:17 PM
sendmail on solaris problems chrisfirestar Linux - General 2 08-10-2004 12:11 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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