LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-02-2009, 03:58 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-02-2009, 05:32 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,316

Rep: Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878
Quote:
Originally Posted by ymesfer View Post
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:

ANY suggestions

Thank You

Youssif
This would be better posted in the Solaris forum, rather than Linux newbie. Where did you get the sendmail source? There are Solaris specific source packages out there, my first suggestion would be to download one of them, and build from there. Check www.sunfreeware.com.
 
Old 06-03-2009, 01:25 AM   #3
ymesfer
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Dear TB0ne,

it is only after posting on Linux that I did relise that i should post on Solaris Forum and I did after that..

anyway, i downloaded sendmail from sendmail.org and i did download few libraries and gcc from sunfreeware site already including:

openssl-0.9.8k,
libiconv,
libintl,
libxml2,
zlib,
gcc-3.4.6

are there any more dependecies?

thanks

Youssif
 
Old 06-03-2009, 10:12 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,316

Rep: Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878Reputation: 3878
Quote:
Originally Posted by ymesfer View Post
Dear TB0ne,

it is only after posting on Linux that I did relise that i should post on Solaris Forum and I did after that..

anyway, i downloaded sendmail from sendmail.org and i did download few libraries and gcc from sunfreeware site already including:

openssl-0.9.8k,
libiconv,
libintl,
libxml2,
zlib,
gcc-3.4.6

are there any more dependecies?

thanks

Youssif
Don't know...is it ASKING you for any more dependencies?? You can also get the sendmail package/source from sunfreeware too, which is why I suggested it in my first response.
 
Old 06-03-2009, 12:42 PM   #5
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


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
Compiling Linux on Solaris mintzyuval Solaris / OpenSolaris 10 06-04-2009 02:48 AM
Sendmail, Solaris 10 b1f30 Solaris / OpenSolaris 5 07-23-2008 12:56 PM
Help compiling Flex on Solaris 5.9 bx.s Solaris / OpenSolaris 5 08-14-2006 08:41 PM
compiling and configuring sendmail on solaris 9 linux_ub Linux - Networking 1 11-09-2004 05:17 PM
sendmail on solaris problems chrisfirestar Linux - General 2 08-10-2004 01:11 PM


All times are GMT -5. The time now is 04:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration