Hi postfix-users,

today I have the pleasure to update sparc some machines, that haven't
been touched for more than 2.5 years :/

The systems use sunstudio compiler. Openssl, bind, ... went fine but
now, as it comes to postfix, I'm failing. The build scripts are in use
since long time, and worked fine until the last update (postfix 2.11.4).
Now with 3.3.2 the build breaks with the following error:

$ make makefiles CC=/opt/SUNWspro/bin/cc CXX=/opt/SUNWspro/bin/cc  
CCARGS="-DHAS_DB -DUSE_TLS -DHAS_PCRE -DHAS_CDB
-I/opt/custom/libs/bdb/include -I/opt/custom/libs/ssl/include
-I/opt/custom/libs/pcre/include -I/opt/custom/libs/cdb/include"  
AUXLIBS="-R/opt/custom/libs/bdb/lib -R/opt/custom/libs/ssl/lib
-R/opt/custom/libs/pcre/lib -L/opt/custom/libs/bdb/lib
-L/opt/custom/libs/ssl/lib -L/opt/custom/libs/pcre/lib
/opt/custom/libs/cdb/lib/libcdb.a -ldb -lssl -lcrypto -lpcre"

rm -f libexec/post-install && ln -f conf/post-install libexec/post-install
rm -f libexec/postfix-files && ln -f conf/postfix-files
libexec/postfix-files
rm -f libexec/postfix-script && ln -f conf/postfix-script
libexec/postfix-script
rm -f libexec/postfix-wrapper && ln -f conf/postfix-wrapper
libexec/postfix-wrapper
rm -f libexec/main.cf && ln -f conf/main.cf libexec/main.cf
rm -f libexec/master.cf && ln -f conf/master.cf libexec/master.cf
rm -f libexec/postmulti-script && ln -f conf/postmulti-script
libexec/postmulti-script
set -e; for i in src/util src/global src/dns src/tls src/xsasl
src/milter src/master  src/postfix src/fsstone src/smtpstone 
src/sendmail src/error src/pickup src/cleanup src/smtpd src/local 
src/trivial-rewrite src/qmgr src/oqmgr src/smtp src/bounce  src/pipe
src/showq src/postalias src/postcat src/postconf src/postdrop 
src/postkick src/postlock src/postlog src/postmap src/postqueue 
src/postsuper src/qmqpd src/spawn src/flush src/verify  src/virtual
src/proxymap src/anvil src/scache src/discard src/tlsmgr  src/postmulti
src/postscreen src/dnsblog src/tlsproxy  src/posttls-finger; do \
(set -e; echo "[$i]"; cd $i; make 'CC=/opt/SUNWspro/bin/cc -I.
-I../../include -DHAS_DB -DUSE_TLS -DHAS_PCRE -DHAS_CDB
-I/opt/custom/libs/bdb/include -I/opt/custom/libs/ssl/include
-I/opt/custom/libs/pcre/include -I/opt/custom/libs/cdb/include
-DNO_NISPLUS -Dstrcasecmp=fix_strcasecmp                
-Dstrncasecmp=fix_strncasecmp -Wmissing-prototypes -Wformat
-Wno-comment' update MAKELEVEL=) || exit 1; \
done

[src/util]
/opt/SUNWspro/bin/cc -I. -I../../include -DHAS_DB -DUSE_TLS -DHAS_PCRE
-DHAS_CDB -I/opt/custom/libs/bdb/include -I/opt/custom/libs/ssl/include
-I/opt/custom/libs/pcre/include -I/opt/custom/libs/cdb/include
-DNO_NISPLUS -Dstrcasecmp=fix_strcasecmp               
-Dstrncasecmp=fix_strncasecmp -Wmissing-prototypes -Wformat -Wno-comment
-g -O -I. -DSUNOS5 -c alldig.c
cc: illegal option -Wmissing-prototypes
*** Error code 1
make: Fatal error: Command failed for target `alldig.o'
Current working directory
/export/home/install/compile/postfix/postfix-2.11.7/src/util
*** Error code 1
make: Fatal error: Command failed for target `update'

 
Below some system information. It would be nice, if you could give me a
clue. Maybe it is of interest, that I found another old source archive
of postfix-2.11.7.tar.gz in that home of that user. Trying to build
that, it fails with the same error. So I guess that there's been a
change between 2.11.4 and 2.11.7. Neither libs nor compiler were
changed, except openssl that build successfully for the current
openssl-1.0.2q. postfix-2.11.4 still builds fine without errors on that
system. I know that the cc-version is ancient, but it would be great if
is somehow possible to keep the build environment - any chance?

$ /opt/SUNWspro/bin/cc -V
cc: Sun C 5.9 SunOS_sparc 2007/05/03
usage: cc [ options] files.  Use 'cc -flags' for details

$ uname -a
SunOS gv-vmail-201 5.10 Generic_148888-03 sun4v sparc SUNW,T5140

Kind regards
  Jan

Reply via email to