From: Dennis Clarke on

I attempted to build from sources and was stopped by an odd error :

/opt/csw/gcc4/bin/gcc -DDEF_COMMAND_DIR="/usr/local/sbin"
-DDEF_DAEMON_DIR="/usr/local/libexec/postfix"
-DDEF_DATA_DIR="/var/lib/postfix" -DDEF_MAILQ_PATH="/usr/local/bin/mailq"
-DDEF_NEWALIAS_PATH="/usr/local/bin/newaliases" -DHAS_DB -DHAS_PCRE
-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -DUSE_TLS -DHAS_MYSQL
-I/usr/local/include -I/usr/local/ssl/include
-I/opt/csw/mysql51/include/mysql -Dstrcasecmp=fix_strcasecmp
-Dstrncasecmp=fix_strncasecmp -g -O -I. -I../../include -DSUNOS5 -c
mail_params.c
mail_params.c: In function 'mail_params_init':
mail_params.c:531: error: expected expression before '/' token
make: *** [mail_params.o] Error 1
make: *** [update] Error 1

I looked at the code and did not see an errant slash.

A complete log of the build failure may be seen at :

http://www.opn4.com/sendmail/postfix/postfix-2.7.1-32bit-try1.txt

I did a "make tidy" and tried again. Failed again:
http://www.opn4.com/sendmail/postfix/postfix-2.7.1-32bit-try1-patch.txt

Anyone seen this ?

Insights gladly appreciated !


--
Dennis

From: Wietse Venema on
Dennis Clarke:
>
> I attempted to build from sources and was stopped by an odd error :
>
> /opt/csw/gcc4/bin/gcc -DDEF_COMMAND_DIR="/usr/local/sbin"

That is not what the INSTALL instructions tell you to do.

Wietse

From: Stan Hoeppner on

Maybe putting them side-by-side will help.

Docs:
make makefiles CCARGS='-DDEF_CONFIG_DIR=\"/some/where\"'

You:
make makefiles CCARGS='-DDEF_COMMAND_DIR=\"/usr/local/sbin\"

> Let's see what I did wrong :

You spotted the leading squote but you missed the trailing squote.

--
Stan