On Wed, 2010-08-11 at 11:10:31 +0800, damian lee wrote: > recently I am trying to compile postfix in static linking so I can move > around the server without any dependency. > > I tried to pass the -static to the gcc compiler with > > make makefiles CC='gcc -Wmissing-prototypes' OPT='-static -O' DEBUG='-g' > > when I do make command, it always jump out the process and give me this > error > > gcc -Wmissing-prototypes -DHAS_PCRE -g -static -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_watch.o master_flow.o > ../../lib/libglobal.a ../../lib/libutil.a -lpcre -ldb -lnsl -lresolv > /usr/bin/ld: cannot find -ldb
Where is the *static* libdb library installed on your system? Have you tried explicitly passing its location to the linker? -- Sahil Tandon <[email protected]>
