On 02/04/2015 09:16 AM, Wietse Venema wrote:
> OK, show the complete "make makefiles" command that you used without
> the insanely complicated Linux build process. I have a few Linux
> boxen where I can try that command myself.

The full "make makefiles" was:
make -f Makefile.init makefiles shared=yes dynamicmaps=yes 'CCARGS=-fPIC
-DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/pcre
-DHAS_MYSQL -I/usr/include/mysql -DHAS_PGSQL -I/usr/include/pgsql
-DHAS_SQLITE -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl
-DUSE_TLS -I/usr/kerberos/include   -DDEF_CONFIG_DIR=\"/etc/postfix\" '
'AUXLIBS= -L/usr/lib64/sasl2 -lsasl2 -L/usr/kerberos/lib64 -lssl
-lcrypto -ldl -lz   -pie -Wl,-z,relro' 'AUXLIBS_LDAP=-lldap -llber'
AUXLIBS_PCRE=-lpcre 'AUXLIBS_MYSQL=-L/usr/lib64/mysql -lmysqlclient -lm'
AUXLIBS_PGSQL=-lpq 'AUXLIBS_SQLITE=-lsqlite3 -lpthread' DEBUG= 'OPT=-O2
-g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -Wno-comment'

I simplified it down to this and was still got the error:
make makefiles shared=yes 'CCARGS=-fPIC' 'AUXLIBS=-pie'

If I remove the -pie from AUXLIBS (either from the simplified version or
the full version) it builds just fine.  It also builds just fine if I
remove the shared=yes (and dynamicmaps=yes).  So it appears that -pie
doesn't want to work with shared=yes.

I honestly don't know where or why -pie was added in the first place, so
I'll remove it for now, I don't know if postfix is supposed to be
compatible with that option or not.


Peter

Reply via email to