compile issues with Solaris9 & sm8.12.5

compile issues with Solaris9 & sm8.12.5

Post by tony » Sun, 14 Jul 2002 03:53:56



I am having trouble with compiling sendmail8.12.5 on a sparc Solaris9
server:

Here is the error I am receiving when doing a  sh Build from the
/sendmail directory:

# sh Build
..........
ranlib  libsm.a
gcc -O -I. -I../../include  -I/opt/db-4.0.14/build_unix -DNEWDB
-DMAP_REGEX -DSOLARIS=20900 -DNETINET6    -c -o t-event.o t-event.c
gcc -o t-event  -L/opt/db-4.0.14/build_unix t-event.o libsm.a
-lresolv -lsocket -lnsl -ldb

/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.0.4/../../../../sparc-sun-solaris/
2.9/bin/ld: cannot find -ldb
collect2: ld returned 1 exit status
...
make:... Error 2

This is what my site.config.m4 file looks like:

APPENDDEF(`confINCDIRS', `-I/opt/db-4.0.14/build_unix')
APPENDDEF(`confLIBDIRS', `-L/opt/db-4.0.14/build_unix')
APPENDDEF(`confLIBS', `-ldb')

I have installed the BerkeleyDB4.0.14 to /usr/local/BerkeleyDB.4.0

I have compiled and installed using gcc3.0.4
libtool-1.4.2, binuntils-2.11.2, and the BerkeleyDB4.0 without errors.

IF I put the path to /usr/local/BerkeleyDB.4.0/include for the
confINCDIRS and
/usr/local/BerkeleyDB.4.0/lib for the confLIBDIRS  I get this error:

.....
gcc -o t-event  -L/usr/lcoal/BerkeleyDB.4.0/lib t-event.o libsm.a
-ldb -lresolv -lsocket -lnsl -ldb
========================================================
./t-event
ld.so.1: ./t-event: fatal: libdb-4.0.so: open failed: no such file or
directory
.....
make:.......error2

the libdb-4.0.so  does exist in the  /usr/local/BerkeleyDB.4.0/lib  
directory.

Any help would be appreciated..

 
 
 

compile issues with Solaris9 & sm8.12.5

Post by Neil W Ricker » Sun, 14 Jul 2002 12:14:20



>I have installed the BerkeleyDB4.0.14 to /usr/local/BerkeleyDB.4.0
>I have compiled and installed using gcc3.0.4
>libtool-1.4.2, binuntils-2.11.2, and the BerkeleyDB4.0 without errors.
>IF I put the path to /usr/local/BerkeleyDB.4.0/include for the
>confINCDIRS and
>/usr/local/BerkeleyDB.4.0/lib for the confLIBDIRS  I get this error:
>.....
>gcc -o t-event  -L/usr/lcoal/BerkeleyDB.4.0/lib t-event.o libsm.a
>-ldb -lresolv -lsocket -lnsl -ldb

In addition to "-L/usr/lcoal/BerkeleyDB.4.0/lib", you need
"-R/usr/lcoal/BerkeleyDB.4.0/lib".

 
 
 

compile issues with Solaris9 & sm8.12.5

Post by tony » Wed, 17 Jul 2002 06:14:26




> >I have installed the BerkeleyDB4.0.14 to /usr/local/BerkeleyDB.4.0

> >I have compiled and installed using gcc3.0.4
> >libtool-1.4.2, binuntils-2.11.2, and the BerkeleyDB4.0 without errors.

> >IF I put the path to /usr/local/BerkeleyDB.4.0/include for the
> >confINCDIRS and
> >/usr/local/BerkeleyDB.4.0/lib for the confLIBDIRS  I get this error:

> >.....
> >gcc -o t-event  -L/usr/lcoal/BerkeleyDB.4.0/lib t-event.o libsm.a
> >-ldb -lresolv -lsocket -lnsl -ldb

> In addition to "-L/usr/lcoal/BerkeleyDB.4.0/lib", you need
> "-R/usr/lcoal/BerkeleyDB.4.0/lib".

Thanks,  That worked.
 
 
 

1. Can't Compile sendmail8.12.5

Hi,friends:
I want to compile sendmail8.12.5 on solaris 8,but when I
execute ./Builder,system always report error as follows:

make[1]:Nothing to be done for 'all'.
make[1]:Leaving directory '/export/home/swm/sendmail-
8.12.5/obj.SunOS.5.8.i86pc/vacation'.

Who can help me?Thanks

2. xml-attribute

3. Sendmail v8.12.5 configuration with Red Hat Linux v8.0

4. Remove SP2 Junk Files

5. amavisd-snapshot20020300 and sendmail-8.12.5-7

6. Advise on network NT-MAC

7. sendmail-8.12.5 infinite loop within tls_read (STARTTLS: read error=generic SSL error)

8. ntp-4.0.98c is available

9. 8.9.3 & BIND 8.2 & Solaris 7 compile problems

10. sendmail 8.8.5 compile issue

11. msn & hotmail issues in outlook express

12. IM&N: Usability issue when replying

13. XP & Resource Kit Issue