Bob wrote regarding '[SLE] SuSE 8.1 - Postfix 2.1.5 not building.' on Tue, Oct 05 at 22:11:
I'm trying to build postfix 2.1.5 from source under SuSE 8.1 but am getting the following error:
[...snip...]
[src/master] gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/local/mysql/include/mys ql -DHAS_PCRE -g -O -I. -I../../include -DLINUX2 -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_flow.o ../../lib/libglobal.a ../../lib/libutil.a -L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm -L/us r/lib -lpcre -ldb -lnsl -lresolv /usr/lib/gcc-lib/i486-suse-linux/3.2/../../../../i486-suse-linux/bin/ld: cannot find -ldb collect2: ld returned 1 exit status make: *** [master] Error 1 make: *** [update] Error 1 ------------
I'm trying to build postfix with MySQL support, so I used this make:
make -f Makefile.init makefiles \ 'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include' \ 'AUXLIBS=-L/usr/local/mysql/lib -lmysqlclient -lz -lm'
One problem I had was <db.h> not found, so I added the following sym link to /usr/include: ln -s /usr/include/db2/db.h db.h
This allowed me to do the make, but the "make install" fails.
Any ideas on how to fix?
I always use mysql_config to get the correct includes and whatnot for mysql. Well, if you let "always" mean "most of the time"... :) Anyway, you can do this: make -f Makefile.init makefiles \ "CCARGS=-DHAS_MYSQL `mysql_config --cflags`" \ "AUXLIBS=`mysql_config --libs`" and possibly have stuff work a bit better. It may not fix your problem, but it does make things a bit easier. BTW, I'm not real big on moving headers around to locations other than where the pakages put them, because then I have to remember what I did. If I leave stuff alone, then other packages assumptions are generally gonna work. I like things to work. :) --Danny