Frank Elsner wrote:
> I've problems to compile exim-4.74 in a Solaris 10 system.
There was similar discussed in the thread "Exim 4.74 RC2 uploaded"
Which included a patch to fix the issue. It basically resolves around the
fact that Solaris /bin/sh is different to most other OSes /bin/sh (Solaris
probably doesn't have a bash version of /bin/sh, but probably provides
the original Bourne Shell).
> I've CFLAGS_DYNAMIC= in Local/Makefile
> but make dies with
>
> gcc dbmdb.c
> make: Fatal error: Don't know how to make target `DNSDB.o'
> Current working directory /root/exim-4.74/build-SunOS5-5.10-i386/lookups
> *** Error code 1
> The following command caused the error:
> cd lookups; make SHELL=/bin/sh AR="ar cq" CC="gcc" CFLAGS="-O" \
> CFLAGS_DYNAMIC="" \
> FE="@" RANLIB="@true" RM_COMMAND="/bin/rm" HDRS="../config.h ../dbfunctions.h ../dbstuff.h ../exim.h ../functions.h ../globals.h ../local_scan.h ../macros.h ../mytypes.h ../structs.h" \
> INCLUDE="-I/opt/include -I/usr/sfw/include -I/usr/sfw/include -I/opt/openldap/include"; \
> echo " "
> make: Fatal error: Command failed for target `buildlookups'
> Current working directory /root/exim-4.74/build-SunOS5-5.10-i386
> *** Error code 1
> The following command caused the error:
> cd build-${build:-`/bin/sh scripts/os-type`-`/bin/sh scripts/arch-type`}; make SHELL=/bin/sh
> make: Fatal error: Command failed for target `all'
>
> Environment
>
> SHELL = /bin/bash
> PATH = /usr/sbin:/usr/bin:/usr/sfw/bin:/usr/local/bin:/usr/ucb:/usr/ccs/bin:/usr/openwin/bin:/opt/csw/bin:/usr/afsws/bin:/opt/exim/bin:/opt/monit/bin
A quick fix without the patch may be:
PATH=/usr/xpg4/bin:$PATH make
Regards
D.