LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-14-2016, 10:48 PM   #1
Jean Francois
LQ Newbie
 
Registered: Apr 2016
Location: Allgaeu, Germany
Posts: 9

Rep: Reputation: Disabled
LFS 7.8 chap. 6.67. Error compiling Eudev-3.1.2


Hello everyone!

I have an Error in compiling Eudev-3.1.2 from LFS-BOOK-7.8. I am novice in LFS and in this Forum. Until chap. 6.67. all look OK.

The Configure seem OK. I am doing everything according to the book.

Thanks

**************************************************

My Environment: Lubuntu

machine: i686
kernel: 3.19.0-58-generic #64~14.04.1-Ubuntu SMP Fri Jan 22 11:23:34 UTC 2016
gcc (GCC) 5.2.0

**************************************************

configure:

configure: WARNING:
You will not be able to create source packages with 'make dist'
because gtk-doc >= 1.18 is not found.

**************************************************

make result:

root:/sources/eudev-3.1.2# LIBRARY_PATH=/tools/lib make > make.txt
util.c: In function 'tempfn_xxxxxx':
util.c:1710:23: warning: passing argument 1 of '__xpg_basename' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
fn = basename(p);
^
In file included from util.c:55:0:
/usr/include/libgen.h:34:14: note: expected 'char *' but argument is of type 'const char *'
extern char *__xpg_basename (char *__path) __THROW;
^
./.libs/libudev-core.a(libudev_core_la-udev-builtin-blkid.o): In function `print_property':
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:49: undefined reference to `blkid_safe_string'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:51: undefined reference to `blkid_encode_string'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:55: undefined reference to `blkid_safe_string'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:57: undefined reference to `blkid_encode_string'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:61: undefined reference to `blkid_safe_string'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:63: undefined reference to `blkid_encode_string'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:97: undefined reference to `blkid_encode_string'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:73: undefined reference to `blkid_encode_string'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:77: undefined reference to `blkid_encode_string'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:85: undefined reference to `blkid_encode_string'
./.libs/libudev-core.a(libudev_core_la-udev-builtin-blkid.o):/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:89: more undefined references to `blkid_encode_string' follow
./.libs/libudev-core.a(libudev_core_la-udev-builtin-blkid.o): In function `builtin_blkid':
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:169: undefined reference to `blkid_new_probe'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:173: undefined reference to `blkid_probe_set_superblocks_flags'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:188: undefined reference to `blkid_probe_set_device'
./.libs/libudev-core.a(libudev_core_la-udev-builtin-blkid.o): In function `probe_superblocks':
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:106: undefined reference to `blkid_probe_get_fd'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:109: undefined reference to `blkid_probe_enable_partitions'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:112: undefined reference to `blkid_probe_get_size'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:128: undefined reference to `blkid_probe_set_partitions_flags'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:129: undefined reference to `blkid_probe_enable_superblocks'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:131: undefined reference to `blkid_do_safeprobe'
./.libs/libudev-core.a(libudev_core_la-udev-builtin-blkid.o): In function `builtin_blkid':
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:199: undefined reference to `blkid_probe_has_value'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:200: undefined reference to `blkid_probe_lookup_value'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:180: undefined reference to `blkid_probe_filter_superblocks_usage'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:209: undefined reference to `blkid_probe_numof_values'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:211: undefined reference to `blkid_probe_get_value'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:217: undefined reference to `blkid_free_probe'
./.libs/libudev-core.a(libudev_core_la-udev-builtin-blkid.o): In function `probe_superblocks':
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:113: undefined reference to `blkid_probe_is_wholedisk'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:118: undefined reference to `blkid_probe_enable_superblocks'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:120: undefined reference to `blkid_do_fullprobe'
/sources/eudev-3.1.2/src/udev/udev-builtin-blkid.c:124: undefined reference to `blkid_probe_lookup_value'
collect2: error: ld returned 1 exit status
make[4]: *** [udevadm] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
root:/sources/eudev-3.1.2#

***************************************

make.txt

make all-recursive
make[1]: Entering directory '/sources/eudev-3.1.2'
Making all in src
make[2]: Entering directory '/sources/eudev-3.1.2/src'
Making all in shared
make[3]: Entering directory '/sources/eudev-3.1.2/src/shared'
CC cgroup-util.lo
CC conf-files.lo
CC device-nodes.lo
CC dev-setup.lo
CC exit-status.lo
CC fileio.lo
CC hashmap.lo
CC label.lo
CC log.lo
CC mempool.lo
CC mkdir.lo
CC mkdir-label.lo
CC MurmurHash2.lo
CC path-util.lo
CC process-util.lo
CC random-util.lo
CC selinux-util.lo
CC siphash24.lo
CC smack-util.lo
CC strbuf.lo
CC strv.lo
CC strxcpyx.lo
CC sysctl-util.lo
CC terminal-util.lo
CC time-util.lo
CC util.lo
CC utf8.lo
CC virt.lo
CCLD libudev_shared.la
make[3]: Leaving directory '/sources/eudev-3.1.2/src/shared'
Making all in libudev
make[3]: Entering directory '/sources/eudev-3.1.2/src/libudev'
CC libudev_la-libudev.lo
CC libudev_la-libudev-list.lo
CC libudev_la-libudev-util.lo
CC libudev_la-libudev-device.lo
CC libudev_la-libudev-enumerate.lo
CC libudev_la-libudev-monitor.lo
CC libudev_la-libudev-queue.lo
CC libudev_la-libudev-hwdb.lo
CCLD libudev.la
CC libudev_private_la-libudev.lo
CC libudev_private_la-libudev-list.lo
CC libudev_private_la-libudev-util.lo
CC libudev_private_la-libudev-device.lo
CC libudev_private_la-libudev-enumerate.lo
CC libudev_private_la-libudev-monitor.lo
CC libudev_private_la-libudev-queue.lo
CC libudev_private_la-libudev-hwdb.lo
CC libudev_private_la-libudev-device-private.lo
CCLD libudev-private.la
make[3]: Leaving directory '/sources/eudev-3.1.2/src/libudev'
Making all in udev
make[3]: Entering directory '/sources/eudev-3.1.2/src/udev'
GEN keyboard-keys.txt
GEN keyboard-keys-from-name.gperf
/usr/bin/gperf -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < keyboard-keys-from-name.gperf > keyboard-keys-from-name.h
GEN keyboard-keys-to-name.h
make all-am
make[4]: Entering directory '/sources/eudev-3.1.2/src/udev'
CC libudev_core_la-udev-event.lo
CC libudev_core_la-udev-watch.lo
CC libudev_core_la-udev-node.lo
CC libudev_core_la-udev-rules.lo
CC libudev_core_la-udev-ctrl.lo
CC libudev_core_la-udev-builtin.lo
CC libudev_core_la-udev-builtin-btrfs.lo
CC libudev_core_la-udev-builtin-hwdb.lo
CC libudev_core_la-udev-builtin-input_id.lo
CC libudev_core_la-udev-builtin-net_id.lo
CC libudev_core_la-udev-builtin-path_id.lo
CC libudev_core_la-udev-builtin-usb_id.lo
CC libudev_core_la-udev-builtin-blkid.lo
CC libudev_core_la-udev-builtin-kmod.lo
CC libudev_core_la-udev-builtin-keyboard.lo
CCLD libudev-core.la
CC udevadm.o
CC udevadm-info.o
CC udevadm-control.o
CC udevadm-monitor.o
CC udevadm-hwdb.o
CC udevadm-settle.o
CC udevadm-trigger.o
CC udevadm-test.o
CC udevadm-test-builtin.o
CC udevadm-util.o
CCLD udevadm
Makefile:652: recipe for target 'udevadm' failed
make[4]: Leaving directory '/sources/eudev-3.1.2/src/udev'
Makefile:502: recipe for target 'all' failed
make[3]: Leaving directory '/sources/eudev-3.1.2/src/udev'
Makefile:401: recipe for target 'all-recursive' failed
make[2]: Leaving directory '/sources/eudev-3.1.2/src'
Makefile:447: recipe for target 'all-recursive' failed
make[1]: Leaving directory '/sources/eudev-3.1.2'
Makefile:378: recipe for target 'all' failed
 
Old 04-16-2016, 12:29 PM   #2
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: Debian, Crux, LFS, AntiX, NuTyX
Posts: 1,661
Blog Entries: 3

Rep: Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711
It looks like it didn't find the header files for libblkid. Did you make the config.cache file and include the line BLKID_CFLAGS="-I /tools/include"?
 
Old 04-17-2016, 07:11 AM   #3
Jean Francois
LQ Newbie
 
Registered: Apr 2016
Location: Allgaeu, Germany
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thank you hazel.

Yes I did. After the configuration I find in the config.cache:
Line 213: pkg_cv_BLKID_CFLAGS=${pkg_cv_BLKID_CFLAGS=-I/tools/include}

I find in tools only a header file !
jean@jean-HP-G6000:/mnt/lfs/tools/include/blkid$ ls -la blkid.h
-rw-r--r-- 1 root root 13710 Feb 20 23:26 blkid.h

Is my tools OK ?

Thanks
jean

PS. I am nearly at chapter 6 end...
 
Old 04-17-2016, 07:23 AM   #4
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: Debian, Crux, LFS, AntiX, NuTyX
Posts: 1,661
Blog Entries: 3

Rep: Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711
Quote:
Originally Posted by Jean Francois View Post
Thank you hazel.

Yes I did. After the configuration I find in the config.cache:
Line 213: pkg_cv_BLKID_CFLAGS=${pkg_cv_BLKID_CFLAGS=-I/tools/include}

I find in tools only a header file !
jean@jean-HP-G6000:/mnt/lfs/tools/include/blkid$ ls -la blkid.h
-rw-r--r-- 1 root root 13710 Feb 20 23:26 blkid.h

Is my tools OK ?
I don't know, but it looks like mine and I didn't have this problem. Perhaps some more knowledgeable person could come in on this.
 
Old 04-17-2016, 08:28 AM   #5
Jean Francois
LQ Newbie
 
Registered: Apr 2016
Location: Allgaeu, Germany
Posts: 9

Original Poster
Rep: Reputation: Disabled
Hello hazel

I find also in my $LFS/lib:
jean@jean-HP-G6000:/mnt/lfs/lib$ ls -la libblkid.*
lrwxrwxrwx 1 root root 15 Mär 27 12:03 libblkid.so.1 -> libblkid.so.1.0
-rwxr-xr-x 1 root root 157500 Mär 27 12:03 libblkid.so.1.0

thanks
jean
 
Old 04-17-2016, 09:03 AM   #6
Jean Francois
LQ Newbie
 
Registered: Apr 2016
Location: Allgaeu, Germany
Posts: 9

Original Poster
Rep: Reputation: Disabled
Hello hazel
also i find again in my build-archiv...

chap. 5.33. Util-linux-2.27: make install:
libtool: install: warning: `libblkid.la' has not been installed in `/tools/lib'

chap. 6.28. E2fsprogs-1.42.13: make install:
make[1]: Entering directory '/sources/e2fsprogs-1.42.13/build3/lib/blkid'
MKINSTALLDIRS /lib /usr/lib
INSTALL-ELF-LIB /lib/libblkid.so.1.0
SYMLINK /lib/libblkid.so.1
SYMLINK /usr/lib/libblkid.so
LDCONFIG
MKINSTALLDIRS /usr/lib /usr/include/blkid
mkdir /usr/include/blkid
INSTALL_DATA /usr/lib/libblkid.a
INSTALL_DATA /usr/include/blkid/blkid.h
INSTALL_DATA /usr/include/blkid/blkid_types.h
INSTALL_DATA /usr/share/man/man3/libblkid.3
INSTALL_DATA /usr/lib/pkgconfig/blkid.pc

then E2fsprogs has installed libblkid.so.1 in my lib... !?

thanks
jean
 
Old 04-17-2016, 10:58 AM   #7
Jean Francois
LQ Newbie
 
Registered: Apr 2016
Location: Allgaeu, Germany
Posts: 9

Original Poster
Rep: Reputation: Disabled
Hello
Sorry I am back !! I hope I don't disturb you...

possibly I am in a vicious cycle !!!

By chap. 6.28. E2fsprogs-1.42.13 was for me only possible to configure without 2 disables:
--disable-libblkid and --disable-libuuid

Then the file config.log gave me:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ ../configure --prefix=/usr --bindir=/bin --with-root-prefix= --enable-elf-shlibs --disable-uuidd --disable-fsck
....
....
configure: exit 0

Good-bye!
jean
 
Old 04-17-2016, 11:12 AM   #8
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: Debian, Crux, LFS, AntiX, NuTyX
Posts: 1,661
Blog Entries: 3

Rep: Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711
I think you've found the problem. Good work!

If you look in chapter 6.28, you will see that libblkid and libuuid should be disabled in the e2fsprogs build because util-linux will provide better ones later on. I don't know why you couldn't build e2fsprogs in this way; you should have asked for help at that stage because obviously something must have gone wrong with your build even earlier. Simply diverging from the book as the quickest way to get around a problem is never a good idea in LFS. On the other hand, trying it and seeing where it leads is how you learn that lesson. We've all done it, if that's any consolation.

You know what I would do in your place? Clear the partition of everything except glibc and start again. Better still, if you have saved your original tools (before you amended gcc and binutils), clear the whole partition and make a clean start.
 
Old 04-17-2016, 05:16 PM   #9
Jean Francois
LQ Newbie
 
Registered: Apr 2016
Location: Allgaeu, Germany
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thank you Hazel

Fortunately I have saved any state from my LFS-File system step by step. For chap. 5 and 6 !
Do you mind to (re)perform ab chap.6.9 Glibc-2.22?
Oder to analyze better chap 6.28 ??
 
Old 04-18-2016, 01:43 AM   #10
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: Debian, Crux, LFS, AntiX, NuTyX
Posts: 1,661
Blog Entries: 3

Rep: Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711
Quote:
Originally Posted by Jean Francois View Post
Thank you Hazel

Fortunately I have saved any state from my LFS-File system step by step. For chap. 5 and 6 !
Do you mind to (re)perform ab chap.6.9 Glibc-2.22?
Oder to analyze better chap 6.28 ??
Forget about 6.28. You have a bad build there. If you have a /tools backup with unadjusted binutils and gcc (as recommended), clear out all your directories, go back to 6.8, then start again with glibc. Otherwise, clear out everything but the files glibc installed and start again with binutils. Good luck!
 
Old 04-18-2016, 06:31 AM   #11
Jean Francois
LQ Newbie
 
Registered: Apr 2016
Location: Allgaeu, Germany
Posts: 9

Original Poster
Rep: Reputation: Disabled
OK hazel I think you are right, but it is important first to understand where is the bug, else I will do the same error.
So back to the 6.28. E2fsprogs-1.42.13:
I had configured with the recommended environment variable and the configure options.
then the result was:
configure: error: external uuid library not found
what means "external" uuid library and where normally should it be ?

Thanks
Jean
 
Old 04-18-2016, 06:56 AM   #12
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: Debian, Crux, LFS, AntiX, NuTyX
Posts: 1,661
Blog Entries: 3

Rep: Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711
Quote:
Originally Posted by Jean Francois View Post
OK hazel I think you are right, but it is important first to understand where is the bug, else I will do the same error.
So back to the 6.28. E2fsprogs-1.42.13:
I had configured with the recommended environment variable and the configure options.
then the result was:
configure: error: external uuid library not found
what means "external" uuid library and where normally should it be ?
I've absolutely no idea. I'm not an expert on LFS internals. If you insist on pursuing this, perhaps the LFS mailing list would be a better forum. The LFS developers listen in on that one.
 
Old 04-19-2016, 10:20 AM   #13
Jean Francois
LQ Newbie
 
Registered: Apr 2016
Location: Allgaeu, Germany
Posts: 9

Original Poster
Rep: Reputation: Disabled
hello
I find a old message from jul 2009:
Possible defect in instructions in ch6 e2fsprogs-1.41.7

http://lists.linuxfromscratch.org/pi...ly/062937.html
 
Old 04-19-2016, 07:18 PM   #14
Jean Francois
LQ Newbie
 
Registered: Apr 2016
Location: Allgaeu, Germany
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thank you very much hazel
your tip with libblkid had me very helped.Thank you very much indeed!

First i removed the libblkid and libuuid installed by chap. 6.28. E2fsprogs-1.42.13.
then I could compile and install chap 6.67. Eudev-3.1.2 without problem.

Now the game go forward.....

-------------------------------------------
Errare humanum est, perseverare diabolicum
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LFS with eudev ReaperX7 Linux From Scratch 74 09-29-2015 10:57 AM
[SOLVED] LFS chap 6.9 error building glibc Lancelot1 Linux From Scratch 6 11-08-2012 08:00 AM
error using lfs while compiling lfs book's 6.12 (gcc-4.1.2) section aditya_gpch Linux From Scratch 3 04-24-2008 05:23 PM
LFS 6.2 - Chap. 6.11 - Binutils 2.16.1 - make error CharlesCVA Linux From Scratch 2 03-12-2008 02:39 PM

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

All times are GMT -5. The time now is 12:28 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration