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 03-20-2017, 07:29 PM   #1
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
Nevermind...


I've started from the beginning 5x times. I've tried both a Debian and Slackware host, both of which worked in the past. I've tried the 232 and 233 package. Finally, I've tried both 8.0 systemd & the current SVN, without any optimizations.

Each time, the Systemd package gets to some point late in the build and crashes during a link, citing either a missing libblkid, or undefined references in a related header file.
Code:
/usr/bin/ld.gold: error: cannot find -lblkid
src/shared/.libs/libsystemd_shared_la-dissect-image.o:dissect-image.c:function dissect_image: error: undefined reference to 'blkid_new_probe'
src/shared/.libs/libsystemd_shared_la-dissect-image.o:dissect-image.c:function dissect_image: error: undefined reference to 'blkid_probe_set_device'
src/shared/.libs/libsystemd_shared_la-dissect-image.o:dissect-image.c:function dissect_image: error: undefined reference to 'blkid_probe_enable_partitions'
src/shared/.libs/libsystemd_shared_la-dissect-image.o:dissect-image.c:function dissect_image: error: undefined reference to 'blkid_probe_set_partitions_flags'
..
..
In the build instructions, there's a sed related to libblkid and parts of the config.cache are obviously pointed at solving the problem, but they don't seem to fix it in every circumstance.

I'm going to try building a minimal util-linux first, then rebuilding it at the end of the chapter to fix this. But, I'm not sure why the modifications in the instructions don't solve the root problem.

Last edited by Luridis; 03-21-2017 at 02:14 PM.
 
Old 03-21-2017, 11:00 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Hi Luridis

It looks like it just isn't finding blkid_* in libblkid (and other components), you could append the library reference on your build line and see if that works. If you're directly referencing an .o file in libblkid in your build, it might be blocking the linker from looking in other components.
Have you changed your build line since the last time this worked?
 
Old 03-21-2017, 01:09 PM   #3
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Original Poster
Rep: Reputation: 167Reputation: 167
It worked in the SVN just before 8.0 was released. Keep thinking I missed something, but given the number of tries I've made that seems unlikely. Still, I could just be running on automatic and missing something small.

I wouldn't even need to do it if I had kept my original VM snapshot. But, alas, I did not and my mistake was revealed when I realized I had forgotten that GTK3 wants introspection to even build. Given that I was late into building the media libraries it would have taken hours just to go back and figure out which packages need the --enable-introspection in the configure. So, I just decided to start over.
 
Old 03-21-2017, 02:21 PM   #4
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Original Poster
Rep: Reputation: 167Reputation: 167
Nevermind, it was all me and being dumb as hell. In my haste I became convinced the issue was with configure. I checked and double checked and triple checked it. But, even though I've been building these for 10 years, the smallest detail can escape you. I missed the make directive. There are none in BLFS for this package, probably why my eyes slipped over it without noticing. So, I got a little too autopilot during the build.
 
1 members found this post helpful.
  


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] After a day of playing with systemd on SVN... ReaperX7 Linux From Scratch 4 04-19-2014 05:56 PM
[SOLVED] [LFS SVN only] systemd-udev-208 and kmod-15 build issue ReaperX7 Linux From Scratch 2 12-14-2013 06:17 PM
SVN build thirstonlinux Linux - Newbie 6 09-18-2013 03:44 AM
(SVN)- arts-3.5.9 fails to build with glibc-2.8 moonfrog Linux From Scratch 1 10-26-2008 12:16 AM
KFTPGrabber svn checked out build fails Marinus Debian 0 01-12-2008 10:30 PM

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

All times are GMT -5. The time now is 01:03 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
Open Source Consulting | Domain Registration