LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Compiling Sendmail 8.14.3 with NEWDB on Solaris 10 (https://www.linuxquestions.org/questions/linux-newbie-8/compiling-sendmail-8-14-3-with-newdb-on-solaris-10-a-730070/)

ymesfer 06-02-2009 03:58 AM

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

TB0ne 06-02-2009 05:32 PM

Quote:

Originally Posted by ymesfer (Post 3560016)
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.

ymesfer 06-03-2009 01:25 AM

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

TB0ne 06-03-2009 10:12 AM

Quote:

Originally Posted by ymesfer (Post 3561204)
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.

ymesfer 06-03-2009 12:42 PM

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


All times are GMT -5. The time now is 06:34 AM.