LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 02-20-2015, 04:17 AM   #1
michanux
LQ Newbie
 
Registered: Jan 2015
Posts: 28

Rep: Reputation: Disabled
Misprint in the LFS book 7.6 ?


Hello
Is there a mistake on
http://www.linuxfromscratch.org/lfs/...5/gettext.html

"make -C src msgfmt" breaks with
Code:
ibtool: compile:  gcc -std=gnu99 -DLOCALEDIR=\"/tools/share/locale\" -DBISON_LOCALEDIR=\"/usr/share/locale\" -DLOCALE_ALIAS_PATH=\"/tools/share/locale\" -DUSEJAVA=0 -DUSEJEXE=0 -DGETTEXTJEXEDIR=\"/tools/lib/gettext\" -DGETTEXTJAR=\"/tools/share/gettext/gettext.jar\" -DLIBDIR=\"/tools/lib\" -DGETTEXTDATADIR=\"/tools/share/gettext\" -DPROJECTSDIR=\"/tools/share/gettext/projects\" -DHAVE_CONFIG_H -I. -I.. -I. -I. -I.. -I.. -I../libgrep -I../gnulib-lib -I../gnulib-lib -I../intl -I../../gettext-runtime/intl -g -O2 -c plural-exp.c -o libgettextsrc_la-plural-exp.o
plural-exp.c:20:29: fatal error: ../intl/pluralx.c: No such file or directory
 #include "../intl/pluralx.c"
                             ^
compilation terminated.
make: *** [libgettextsrc_la-plural-exp.lo] Error 1
make: Leaving directory `/mnt/lfs/sources/gettext-0.19.4/gettext-tools/src'
Google recommends to insert "make -C intl pluralx.c" after "make -C gnulib-lib".
Now the compilation runs very well.
 
Old 02-20-2015, 06:43 AM   #2
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
Quote:
Originally Posted by michanux View Post
Hello
Is there a mistake on
http://www.linuxfromscratch.org/lfs/...5/gettext.html

"make -C src msgfmt" breaks with
Code:
ibtool: compile:  gcc -std=gnu99 -DLOCALEDIR=\"/tools/share/locale\" -DBISON_LOCALEDIR=\"/usr/share/locale\" -DLOCALE_ALIAS_PATH=\"/tools/share/locale\" -DUSEJAVA=0 -DUSEJEXE=0 -DGETTEXTJEXEDIR=\"/tools/lib/gettext\" -DGETTEXTJAR=\"/tools/share/gettext/gettext.jar\" -DLIBDIR=\"/tools/lib\" -DGETTEXTDATADIR=\"/tools/share/gettext\" -DPROJECTSDIR=\"/tools/share/gettext/projects\" -DHAVE_CONFIG_H -I. -I.. -I. -I. -I.. -I.. -I../libgrep -I../gnulib-lib -I../gnulib-lib -I../intl -I../../gettext-runtime/intl -g -O2 -c plural-exp.c -o libgettextsrc_la-plural-exp.o
plural-exp.c:20:29: fatal error: ../intl/pluralx.c: No such file or directory
 #include "../intl/pluralx.c"
                             ^
compilation terminated.
make: *** [libgettextsrc_la-plural-exp.lo] Error 1
make: Leaving directory `/mnt/lfs/sources/gettext-0.19.4/gettext-tools/src'
Google recommends to insert "make -C intl pluralx.c" after "make -C gnulib-lib".
Now the compilation runs very well.
The book is fine. You are using newer version than in the 7.6 book, so it's your fault. The issue is fixed in svn and 7.7-rc1 where latest versions are used.
 
Old 02-20-2015, 06:51 AM   #3
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Check the 7.6 errata as well. Yes, gettext did add a new compile time dependency within itself. Not sure when Bruce and crew found it, but many people just used the earlier version of gettext.

Usually the SVN book will have new build instructions from time to time as packages are refined, so you kinda always have to read up first.
 
Old 02-25-2015, 02:53 PM   #4
DrinkinHomeBrew
LQ Newbie
 
Registered: Oct 2011
Posts: 26

Rep: Reputation: Disabled
Just to add my 2c to this problem and maybe help future travelers ....

I recently performed a 7.6 build and did not encounter this error. Using the exact same host configuration for a subsequent build of 7.7-rc1 the same errors came up (and led me to here)

Code:
/mnt/lfs/build-logs/5.23-gettext-make-src-msgfmt.log:73:plural-exp.c:20:29: fatal error: ../intl/pluralx.c: No such file or directory
/mnt/lfs/build-logs/5.23-gettext-make-src-msgfmt.log:77:make: *** [libgettextsrc_la-plural-exp.lo] Error 1
/mnt/lfs/build-logs/5.23-gettext-make-src-msgmerge.log:12:plural-exp.c:20:29: fatal error: ../intl/pluralx.c: No such file or directory
/mnt/lfs/build-logs/5.23-gettext-make-src-msgmerge.log:16:make: *** [libgettextsrc_la-plural-exp.lo] Error 1
/mnt/lfs/build-logs/5.23-gettext-make-src-xgettext.log:32:plural-exp.c:20:29: fatal error: ../intl/pluralx.c: No such file or directory
/mnt/lfs/build-logs/5.23-gettext-make-src-xgettext.log:36:make: *** [libgettextsrc_la-plural-exp.lo] Error 1

The fix was to add the 'make -C intl pluralx.c' just after 'make -C intl pluralx.c' described above.

There was one difference on my host configuration (which was a VM template), and that was I had to run install 'texinfo' to get binutils to compile. However the LFS book does not have texinfo as a required host package. I've noted both of these to the dev team.

Last edited by DrinkinHomeBrew; 02-25-2015 at 02:56 PM.
 
Old 02-25-2015, 02:56 PM   #5
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
Quote:
Originally Posted by DrinkinHomeBrew View Post
Just to add my 2c to this problem and maybe help future travelers ....

I recently performed a 7.6 build and did not encounter this error. Using the exact same host configuation for a subsequent build of 7.7-rc1 the same errors came up (and led me to here)

The fix was to add the 'make -C intl pluralx.c' just after 'make -C intl pluralx.c' described above.
LFS-7.7-rc1 has the following in gettext chapter 5:

make -C gnulib-lib
make -C intl pluralx.c
 
Old 02-25-2015, 03:10 PM   #6
DrinkinHomeBrew
LQ Newbie
 
Registered: Oct 2011
Posts: 26

Rep: Reputation: Disabled
Damn, you're right.

Well I feel like an idiot now.
 
  


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] Which version of book to use for BLFS??? (LFS-6.7 used for building LFS) rkmv Linux From Scratch 3 02-21-2012 05:32 PM
LFS newbie stuck in Linux API headers step 5.5 LFS book 6.3 Vxplus Linux From Scratch 2 11-10-2008 08:13 PM
error using lfs while compiling lfs book's 6.12 (gcc-4.1.2) section aditya_gpch Linux From Scratch 3 04-24-2008 04:23 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:12 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