Lu_Mia Lu_Mia wrote:

i added \n" but it still gives me the same error.
after i do "make" it changes the file to the way it was before i added the \n".

This leads us back to the Makefile I suppose, <glibc-2.3.6>/csu/Makefile
which is where version-info.h is generated:

The relative fragment should look like this:


$(objpfx)version-info.h: $(common-objpfx)config.make $(all-Banner-files)
        $(make-target-directory)
        (case $(config-os) in \
           linux*) version=`(printf '%s\n%s\n' \
                                    '#include <linux/version.h>' \
                                    UTS_RELEASE \
                             | $(CC) $(CPPFLAGS) -E -P - -DNOT_IN_libc=1 | \
                             sed -e 's/"\([^"]*\)".*/\1/p' -e d) 2>/dev/null`;\
                   if [ -z "$$version" ]; then \
                     if [ -r /proc/version ]; then \
                       version=`sed 's/.*Linux version \([^ ]*\) .*/>>\1<</' \
                                < /proc/version`; \
                     else \
                       version=`uname -r`; \
                     fi; \
                   fi; \
                   os=`uname -s 2> /dev/null`; \
                   if [ -z "$$os" ]; then \
                     os=Linux; \
                   fi; \
                   printf '"Compiled on a %s %s system on %s.\\n"\n' \
                          "$$os" "$$version" "`date +%Y-%m-%d`";; \
           *) ;; \
         esac; \
         files="$(all-Banner-files)";                           \
         if test -n "$$files"; then                             \
           echo "\"Available extensions:\\n\"";                 \
           sed -e '/^#/d' -e 's/^[[:space:]]*/  /'              \
               -e 's/^\(.*\)$$/\"\1\\n\"/' $$files;             \
         fi) > [EMAIL PROTECTED]
        mv -f [EMAIL PROTECTED] $@


Does LFS maybe apply any patches to the stock glibc-2.3.6 tarball?
If so, one of them just might have messed up this Makefile, but
to be honest I doubt it.

bj

--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to