You are not logged in.

#1 2009-06-13 05:38:15

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Slimmed Postfix failing to build

Hi all,

I'm trying to build a slimmed down version of Postfix, without Cyrus SASL, LDAP, MySQL and PostgreSQL support. I've modified the PKGBUILD from ABS from the default:

make makefiles \
                CCARGS="-DUSE_SASL_AUTH -I/usr/include/sasl \
                        -DUSE_CYRUS_SASL \
                        -DHAS_LDAP \
                        -DUSE_TLS \
                        -DHAS_MYSQL -I/usr/include/mysql \
                        -DHAS_PGSQL -I/usr/include/postgresql" \
                AUXLIBS="-lsasl2 -lssl -lcrypto -lldap -llber -lmysqlclient -lz -lm -lpq"
        make OPT="${CFLAGS}" || return 1

to this:

make makefiles CCARGS="-DUSE_TLS -DDEF_QUEUE_DIR=/srv/postfix" AUXLIBS="-lssl -lcrypto -lz -lm"
make OPT="${CFLAGS}" || return 1

I've removed all the CCARGS that say to use Cyrus, LDAP, MySQL and PostgreSQL, and the corresponding AUXLIBS parts, and consolidated it all to single lines since it's so small now, but I get this error when we get to the "make" stage:

gcc -Wmissing-prototypes -Wformat -DUSE_TLS -DDEF_QUEUE_DIR=/srv/postfix -DHAS_PCRE  -g -march=i686 -mtune=generic -O2 -pipe -I. -I../../include -DLINUX2 -c mail_queue.c
mail_params.c: In function âmail_params_initâ:
mail_params.c:511: error: expected expression before â/â token
make: *** [mail_params.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [update] Error 1
==> ERROR: Build Failed.

I've looked at mail_params.c line 511 but I don't understand C so it doesn't make sense to me.

EDIT: Running makepkg on the standard PKGBUILD from ABS works fine.

Any help would be great smile

Last edited by fukawi2 (2009-06-13 05:40:03)

Offline

#2 2009-06-13 05:59:40

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,403
Website

Re: Slimmed Postfix failing to build

My ideas would be:
1) try building with more of the AUXLIBS from the ABS PKGBUILD included
2) remove the -DDEF_QUEUE_DIR (which is not in the ABS version) to see if that causes the issue.

Essentially, start where it works and make your way step by step to where you want to be...

Online

#3 2009-06-13 06:08:27

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: Slimmed Postfix failing to build

Bugger it, removing DEF_QUEUE_DIR has fixed it dammit. It didn't occur to me that something simple like that would cause an error like that neutral

Thanks Allan, you ever helpful dev big_smile  I owe you a beer next time you're in Melbourne wink

Offline

#4 2009-06-13 06:35:24

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,403
Website

Re: Slimmed Postfix failing to build

fukawi2 wrote:

I owe you a beer next time you're in Melbourne wink

I building enough beer offers in that region that it is almost worth the flight  tongue

Online

#5 2009-06-13 06:36:42

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: Slimmed Postfix failing to build

Wait until Summer. It ratsh!t down here at the moment neutral

Offline

Board footer

Powered by FluxBB