* Wietse Venema <postfix-users@postfix.org>: > Ralf Hildebrandt: > > I then replaced ld (a symlink to ld.bfd) with gold (ld.gold), and > > everything would build happily. > > 1) Do you have a (pointer to a) description of the difference between > these programs?
http://wiki.gentoo.org/wiki/Gold http://fedoraproject.org/wiki/Features/GoldLinkerDefault http://stackoverflow.com/questions/3476093/replacing-ld-with-gold-any-experience > 2) What OS are you using? Ubuntu 14.04 LTS > 3) Can you do the following experiments: > > - Use the default "ld" program. OK > - In makedefs, edit the PLUGGABLE_MAPS="..." line and put LDAP at > the first place. Then "makemakefiles ..." and "make". Done. Building: [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 > - Ditto with LDAP at the end of the PLUGGABLE_MAPS="..." line. Done. Building: [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 Same result > I would rather avoid having to ask people to mess with symlinks > to system programs. -- [*] 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