After my initial (ultimately successful) attempts with shared=yes, I
gave "dynamicmaps=yes" a spin, like this:

make tidy
CCARGS="`pkg-config --cflags openssl libpcre libcdb` -DUSE_TLS -DHAS_PCRE 
-DHAS_CDB -DHAS_LDAP" \  
AUXLIBS="`pkg-config --libs  openssl` -lnsl" \
AUXLIBS_CDB="`pkg-config --libs libcdb`" \
AUXLIBS_PCRE="`pkg-config --libs libpcre`" \
AUXLIBS_LDAP="-lldap -llber" \
make makefiles shared=yes dynamicmaps=yes

which results in:

[src/milter]
for i in milter.h; \
        do \
                  cmp -s $i ../../include/$i 2>/dev/null || cp $i
../../include; \
        done
        cd ../../include; chmod 644 milter.h
        [src/master]
gcc -Wmissing-prototypes -Wformat -Wno-comment -I. -I../../include -DUSE_TLS 
-DHAS_PCRE -DHAS_CDB -DHAS_LDAP -DSNAPSHOT
-DUSE_DYNAMIC_LIBS -DUSE_DYNAMIC_MAPS  -g -O -I. -I../../include -DLINUX3 
-Wl,-rpath,/usr/lib/postfix -o master master.o master_conf.o
master_ent.o master_sig.o master_avail.o master_spawn.o master_service.o 
master_status.o master_listen.o master_vars.o
master_wakeup.o master_watch.o master_flow.o master_monitor.o 
../../lib/libpostfix-global.so ../../lib/libpostfix-util.so -lssl -lcrypto 
-lnsl -ldb -lnsl -lresolv -ldl 
../../lib/libpostfix-util.so: undefined reference to `dlsym'
../../lib/libpostfix-util.so: undefined reference to `dlerror'
../../lib/libpostfix-util.so: undefined reference to `dlopen'
collect2: error: ld returned 1 exit status
make: *** [master] Error 1
make: *** [update] Error 1

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein

Reply via email to