You are not logged in.
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
Last edited by fukawi2 (2009-06-13 05:40:03)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
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...
Offline
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
Thanks Allan, you ever helpful dev I owe you a beer next time you're in Melbourne
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
I owe you a beer next time you're in Melbourne
I building enough beer offers in that region that it is almost worth the flight
Offline
Wait until Summer. It ratsh!t down here at the moment
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline