From: Friedrich L. <fl...@fl...> - 2003-01-27 19:31:37
|
Maarten van den Berg wrote: > On Sunday 26 January 2003 04:44, Friedrich Lobenstock wrote: > >>maarten van den Berg wrote: >> >>>How did you 'patch it on', if you don't mind me asking ? >> >>Compiled ipac-ng on SuSE 7.3. It was a bit tricky to link statically >>against the postgres libs. In the end I had to temporarily remove >>all libpq*.so.* from /usr/lib. Now I created a tar file with all >>the needed files (just fetchipac and ipacsum) which I copied >>to patch/base/IPAC.tar.bz2 on the floppy disk. > > > Hrm. I don't even manage to statically compile it. When I give > --enable-static to ./configure it seems to just disregard it; ldd > indicates as much anyway. When I tweak the LDFLAGS in the Makefile itself > the compile breaks with hundreds of "undefined reference to `PQfoobar'. > Removing the libpq*.so.* files makes either no difference, or makes it > worse (configure telling me it can't find/use postgres at all) > I've been running around Googl'ing all day but I'm at a loss here... Yes there's no possibility to tell configure to create static binaries. You have to move the *.so libs so the linker has to link against the static libs. AND you have to run the last linker command by hand changing the link order of the libs. If I recall correctly the "-lpq" has to come last or so instead of first. > > Would that be another floppy or the same floppy the config tarball is on ? The _same_ floppy as the config tarball!! -- MfG / Regards Friedrich Lobenstock ____________________________________________________________________ Friedrich Lobenstock FL226-RIPE Internetservices URL: http://www.fl.priv.at/ Email: fl...@fl... ____________________________________________________________________ |