See My in-line comments... > I know I'm hard of thinking sometimes, so bare with me. I'm supposed to > create the /etc/lfs-xxx file and also the configureextra/LINUXlfs file ?
Yup - it's in the book - Chapter 9 (http://lfs.130th.net/lfs/view/stable/chapter09/theend.html or pick your local mirror). In 3.0 they suggested creating /etc/lfs-<version> In 4.0+ they suggest creating /etc/lfs with 4.0 or whatever the release # is inside it. > Also I have continued to try different compile options I added the > following: > export CPPFLAGS="-lm -lz" > export LDFLAGS="-L/lib" Bad idea - CPPFLAGS isn't what you want to use for loader directives. > The ./configure seems to work now with now errors I can see(anything in > particular I should be looking for?). READ THE STUFF IN THE LARGE **** BOXES... No errors or warnings is good. > When I run make it chugs along for some time the fails with the > following: > > gcc -g -O2 -I/usr/local/include -Wshadow -Wpointer-arith > -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -g > -O2 -I/usr/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes > -Wmissing-declarations -Wnested-externs -fPIC -o .libs/ntop ntop-main.o > ntop-admin.o -L/lib -L/usr/local/lib -L/usr/local/src/n/ntop/myrrd > ./.libs/libntopreport.so ./.libs/libntop.so -lpthread -lresolv -lnsl -lc > -lssl -lcrypto -lpcap /usr/lib/libgdbm.so -lgd -lpng -lz -lmyrrd > -Wl,--rpath -Wl,/usr/local/lib > ./.libs/libntop.so: undefined reference to `log' > ./.libs/libntopreport.so: undefined reference to `cos' > ./.libs/libntopreport.so: undefined reference to `sin' > /usr/local/lib/libpng.so: undefined reference to `pow' > collect2: ld returned 1 exit status > make[2]: *** [ntop] Error 1 See, I told you it was a bad idea... > I'm guessing the above are math functions libm.so ? Yes > I also notice in the log file there were several entries like this: > gcc: -lm: linker input file unused because linking not done > gcc: -lz: linker input file unused because linking not done Yup. CPPFLAGS is the C++ flags - fed to the COMPILER. LDFLAGS are the (wait for it...) ld flags, fed to ld, the loader... All that crud should go into LDFLAGS, e.g.: LDFLAGS="-L/lib -lm -lz" So, I would try this as configureextra/LINUXlfs: ------------------------------------------------------------------- #!/bin/sh echo " Setting Linux From Scratch specific flag values" LDFLAGS="-L/lib -lm -lz" ------------------------------------------------------------------- Of course, what's really odd is that Pooh (my file server and sometime ntop box) is an LFS 3-pre1 box, so it should be 99.9% identical to yours and it works just fine, always has, without anything odd. In fact... # locate libz.so /usr/lib/libz.so.1.1.3 /usr/lib/libz.so /usr/lib/libz.so.1 # locate libm.so /lib/libm.so.6 /usr/lib/libm.so # ls -l /lib/libm.so.6 lrwxrwxrwx 1 root root 13 Dec 18 2001 /lib/libm.so.6 -> libm-2.2.1.so # cat /etc/ld.so.conf /lib /usr/lib So you shouldn't have to do anything at all... in fact, I just did the whole shooting match on Pooh with the latest cvs and it works fine. As is, not even the configureextra stuff. So I have to be suspicious that there's something else you missed in the LFS setup... -----Burton _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop
