Willie
I compile postfix as follows:
make makefiles CCARGS="-DNO_NIS -DHAS_DB -I/usr/include" \
AUXLIBS="-L/usr/lib -ldb"
As Solaris 11.1 do not have NIS support in it any more and "-DNO_NIS"
actually does the trick here.
Regards
On 19/12/2013 11:47, Willie Bollinger wrote:
I am trying to compile postfix 2.10.2 on solaris 11.1 with gcc version
4.5.2 (GCC) and am not having any luck I am getting the following errors
gcc -Wmissing-prototypes -Wformat -Wno-comment
-Dstrcasecmp=fix_strcasecmp -Dstrncasecmp=fix_strncasecmp -DHAS_PCRE
-I/usr/include/pcre -g -O -I. -DSUNOS5 -c dict_nis.c
gcc -Wmissing-prototypes -Wformat -Wno-comment
-Dstrcasecmp=fix_strcasecmp -Dstrncasecmp=fix_strncasecmp -DHAS_PCRE
-I/usr/include/pcre -g -O -I. -DSUNOS5 -c dict_nisplus.c
dict_nisplus.c: In function 'dict_nisplus_lookup':
dict_nisplus.c:123:5: error: 'nis_result' undeclared (first use in
this function)
dict_nisplus.c:123:5: note: each undeclared identifier is reported
only once for each function it appears in
dict_nisplus.c:123:17: error: 'reply' undeclared (first use in this
function)
dict_nisplus.c:183:34: error: 'FOLLOW_LINKS' undeclared (first use in
this function)
dict_nisplus.c:183:49: error: 'FOLLOW_PATH' undeclared (first use in
this function)
dict_nisplus.c:189:26: error: 'NIS_SUCCESS' undeclared (first use in
this function)
dict_nisplus.c:221:23: error: 'NIS_NOTFOUND' undeclared (first use in
this function)
dict_nisplus.c:222:26: error: 'NIS_PARTIAL' undeclared (first use in
this function)
*** Error code 1
make: Fatal error: Command failed for target `dict_nisplus.o'
Current working directory
/usr/local/src/sol11x86_64/postfix-2.10.2/src/util
*** Error code 1
make: Fatal error: Command failed for target `update'
Current working directory /usr/local/src/sol11x86_64/postfix-2.10.2
*** Error code 1
make: Fatal error: Command failed for target `update'
willie@mail
--
---
Jaco Lesch
SAIX HLS
Email: ja...@saix.net