LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 06-11-2020, 04:25 AM   #1
chinnadas
Member
 
Registered: Feb 2020
Posts: 55

Rep: Reputation: Disabled
syslinux build failed in linux from scratch


/usr/bin/ld: main.o: in function `find_device_sysfs':
/home/chinnadas/syslinux-6.04-pre1/extlinux/main.c:1185: undefined reference to `minor'
/usr/bin/ld: /home/chinnadas/syslinux-6.04-pre1/extlinux/main.c:1185: undefined reference to `major'
/usr/bin/ld: main.o: in function `sysfs_get_offset':
/home/chinnadas/syslinux-6.04-pre1/extlinux/main.c:134: undefined reference to `minor'
/usr/bin/ld: /home/chinnadas/syslinux-6.04-pre1/extlinux/main.c:134: undefined reference to `major'
collect2: error: ld returned 1 exit status
make[3]: *** [/home/chinnadas/syslinux-6.04-pre1/extlinux/Makefile:56: extlinux] Error 1
make[3]: Leaving directory '/home/chinnadas/syslinux-6.04-pre1/bios/extlinux'
make[2]: *** [/home/chinnadas/syslinux-6.04-pre1/Makefile:288: extlinux] Error 2
make[2]: Leaving directory '/home/chinnadas/syslinux-6.04-pre1/bios'
make[1]: *** [/home/chinnadas/syslinux-6.04-pre1/Makefile:257: bios] Error 2
make[1]: Leaving directory '/home/chinnadas/syslinux-6.04-pre1'
make: *** [Makefile:102: bios] Error 2
 
Old 06-11-2020, 05:33 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
IIRC, syslinux is one very big exe, with few/no supporting libs, right? That means a static compile.

The 'undefined reference to' bit indicates that one of the libraries isn't up to date enough. I'm no software expert, but every 'undefined reference' error I've seen is down to compiling against apackage that's too old. If the headers are wrong, that appears in the compile, so the program involved is usually gcc. If the libraries, the program involved is usually ld, the linker. Your snippet isn't big enough to say much more.
 
  


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
Making Syslinux boot a different partition also with Syslinux. tokico Linux - Software 6 03-04-2009 09:37 AM
syslinux setting change to grub, or grub change to syslinux. hocheetiong Linux - Newbie 2 06-14-2008 07:38 AM
Syslinux boot floppy: how do I build it ?? chantal4 Linux - Newbie 6 04-01-2007 10:59 AM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 05:11 AM

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

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