On Sun, Jul 3, 2011 at 12:03 PM, Bruce Dubbs <bruce.du...@gmail.com> wrote: > Nathan Coulson wrote: >> On Sun, Jul 3, 2011 at 3:26 AM, Andrew Benton <b3n...@gmail.com> wrote: >>> On Sat, 2 Jul 2011 19:26:34 -0700 >>> Nathan Coulson <conat...@gmail.com> wrote: >>> >>>> Checking for optional libraries... >>>> What libraries to use? >>>> [-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat -lpthread] > >>>> I've tried to compile and run the following simple program: >>>> >>>> #include <stdio.h> >>>> int main() { printf("Ok\n"); return(0); } >>>> >>>> I used the command: >>>> >>>> $ cc -o try -O2 -fno-strict-aliasing -pipe -fstack-protector >>>> -fstack-protector try.c -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc >>>> -lgdbm_compat -lpthread >>>> $ ./try >>>> >>>> and I got the following output: >>>> >>>> cannot find -lgdbm >>>> cannot find -ldb >>>> collect2: ld returned 1 exit status >>>> I can't compile the test program. >>>> You have a BIG problem. Â Shall I abort Configure [y] >>>> Ok. Â Stopping Configure. >>>> must have picked up that I had gdbm and db on the host somehow > > In my test logs, I have > > What libraries to use? [-lnsl -ldl -lm -lcrypt -lutil -lc] > > I do have /usr/lib/libgdbm.{a,so,so.3,so.3.0.0}, but not /usr/lib/libdb*. > >> -Dnoextensions=GDBM_File fixed it for me, but never had time to hunt >> down the reason yet > > It looks like a partial installation to me where configure finds some > parts and thinks it can use libdb, but then can't. If it did build that > in, it looks like it might cause a problem in Chapter 6. > > -- Bruce
sorry it took me a while to play with this. I noted the following in the config log Directories to use for library searches? [/lib /usr/lib /tools/lib] so went with -Dlibpth=/tools/lib Again, not sure why I am the only one who ran into this so far... and have not tested with my previous perl yet to compare the output's. -- Nathan Coulson (conathan) ------ Location: British Columbia, Canada Timezone: PST (-8) Webpage: http://www.nathancoulson.com -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page