LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-27-2013, 07:58 AM   #1
vitronix
Member
 
Registered: Dec 2012
Posts: 56

Rep: Reputation: Disabled
LFS m4-1.4.16 make check


Hello,

I'm trying to build an LFS (Linux From Scratch) system.
All is going fine until I run:

lfs@lfs:/mnt/lfs/sources/m4-1.4.16$ make check
if test -d ./.git; then \
cd . && \
git submodule --quiet foreach test '$(git rev-parse $sha1)' \
= '$(git merge-base origin $sha1)' \
|| { echo 'maint.mk: found non-public submodule commit' >&2; \
exit 1; }; \
else \
: ; \
fi
make check-recursive
make[1]: Entering directory `/mnt/lfs/sources/m4-1.4.16'
Making check in .
make[2]: Entering directory `/mnt/lfs/sources/m4-1.4.16'
make[2]: Nothing to be done for `check-am'.
make[2]: Leaving directory `/mnt/lfs/sources/m4-1.4.16'
Making check in examples
make[2]: Entering directory `/mnt/lfs/sources/m4-1.4.16/examples'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/mnt/lfs/sources/m4-1.4.16/examples'
Making check in lib
make[2]: Entering directory `/mnt/lfs/sources/m4-1.4.16/lib'
make check-am
make[3]: Entering directory `/mnt/lfs/sources/m4-1.4.16/lib'
gcc -std=gnu99 -I. -g -O2 -MT clean-temp.o -MD -MP -MF .deps/clean-temp.Tpo -c -o clean-temp.o clean-temp.c
In file included from clean-temp.h:22:0,
from clean-temp.c:23:
./stdio.h:477:1: error: 'gets' undeclared here (not in a function)
make[3]: *** [clean-temp.o] Error 1
make[3]: Leaving directory `/mnt/lfs/sources/m4-1.4.16/lib'
make[2]: *** [check] Error 2
make[2]: Leaving directory `/mnt/lfs/sources/m4-1.4.16/lib'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/m4-1.4.16'
make: *** [check] Error 2
lfs@lfs:/mnt/lfs/sources/m4-1.4.16$ make check
if test -d ./.git; then \
cd . && \
git submodule --quiet foreach test '$(git rev-parse $sha1)' \
= '$(git merge-base origin $sha1)' \
|| { echo 'maint.mk: found non-public submodule commit' >&2; \
exit 1; }; \
else \
: ; \
fi
make check-recursive
make[1]: Entering directory `/mnt/lfs/sources/m4-1.4.16'
Making check in .
make[2]: Entering directory `/mnt/lfs/sources/m4-1.4.16'
make[2]: Nothing to be done for `check-am'.
make[2]: Leaving directory `/mnt/lfs/sources/m4-1.4.16'
Making check in examples
make[2]: Entering directory `/mnt/lfs/sources/m4-1.4.16/examples'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/mnt/lfs/sources/m4-1.4.16/examples'
Making check in lib
make[2]: Entering directory `/mnt/lfs/sources/m4-1.4.16/lib'
make check-am
make[3]: Entering directory `/mnt/lfs/sources/m4-1.4.16/lib'
gcc -std=gnu99 -I. -g -O2 -MT clean-temp.o -MD -MP -MF .deps/clean-temp.Tpo -c -o clean-temp.o clean-temp.c
In file included from clean-temp.h:22:0,
from clean-temp.c:23:
./stdio.h:477:1: error: 'gets' undeclared here (not in a function)
make[3]: *** [clean-temp.o] Error 1
make[3]: Leaving directory `/mnt/lfs/sources/m4-1.4.16/lib'
make[2]: *** [check] Error 2
make[2]: Leaving directory `/mnt/lfs/sources/m4-1.4.16/lib'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/m4-1.4.16'
make: *** [check] Error 2
lfs@lfs:/mnt/lfs/sources/m4-1.4.16$

Does anybody know why I get these errors?

Thanks in advance.
 
Old 04-17-2013, 04:27 AM   #2
benb2013
LQ Newbie
 
Registered: Oct 2011
Posts: 4

Rep: Reputation: Disabled
Hi,

I quote:

"Since the 2.16 release of the glibc, 'gets' is not any more defined in the gnulib.
No m4 version synchronized with gnulib since [1] has been released yet."
...

[1] http://git.savannah.gnu.org/gitweb/?...5140fa0c807348

This causes gets compile errors on systems with glibc >= 2.16 with sources that still assume the previous definition.

The following link contains a patch for the M4 source, that is supposed to fix this:
http://git.buildroot.net/buildroot/p...-no-gets.patch

Above as the long version of 'Must brush up Google Fu',
See "man patch" for details on applying patches to source code

Regards
 
Old 04-17-2013, 04:42 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
@vitronix: This seems to be from chapter 5. This from the book about running make check in chapter 5:
Quote:
Note

Experience has shown that there is little to be gained from running the test suites in Chapter 5. There can be no escaping the fact that the host system always exerts some influence on the tests in that chapter, often causing inexplicable failures. Because the tools built in Chapter 5 are temporary and eventually discarded, we do not recommend running the test suites in Chapter 5 for the average reader. The instructions for running those test suites are provided for the benefit of testers and developers, but they are strictly optional.
In other words: Don't run the test when working on chapter 5 (you _do_ need to run them in chapter 6).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LFS 7.2: make check failure on make-3.8.2 computerfan9000 Linux From Scratch 7 10-27-2012 03:09 AM
Glibc giving Errors on Make Check in LFS 7.1 xerofoify Linux From Scratch 3 08-21-2012 11:02 AM
make check error 6.9.1 glibc lfs 6.5 aahiqmir Linux From Scratch 1 12-06-2009 07:49 PM
LFS version 6.5, chapter 6.12.1, make check Binutils-2.19.1 errors jbee Linux From Scratch 5 10-06-2009 09:41 AM
LFS 6, chapter 6.11; Glibc 'make check' error Zamochit Linux From Scratch 5 05-31-2005 12:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration