Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Build Problems --defsym:2: undefined symbol `obj_ipxecustom008'
2019-01-22, 17:44 (This post was last modified: 2019-01-22 18:15 by James_Epp.)
Post: #1
Brick [SOLVED] Build Problems --defsym:2: undefined symbol `obj_ipxecustom008'
Hey, folks. I hardly ever compile stuff from source. I'd appreciate any advice. Compiling on Parabola GNU/Linux-libre

src/config/general.h is untouched from the git clone

Versions:
gcc = 8.2.1 20181127
binutils = 2.31.1-4
make = 4.2.1
perl = 5.28.1
xz utils = 5.2.4
liblzma = 5.2.4
mtools = 4.0.23
mkisofs (genisotools) = 1.1.11
syslinux = 6.03

Code:
[root@pxe000 src]# pwd
/root/dev/ipxe/src
[root@pxe000 src]# git status
On branch master
Your branch is up to date with 'origin/master'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)

    script.ipxe

nothing added to commit but untracked files present (use "git add" to track)
[root@pxe000 src]# cat script.ipxe
#!ipxe

:init
dhcp || goto failure

set server_ipv4 192.168.215.16
chain http://${server_ipv4}/ipxe/current/x86/root.ipxe || goto failure


:failure
shell

[root@pxe000 src]# make bin/ipxecustom008.usb EMBED=script.ipxe
  [DEPS] image/embedded.c
  [BUILD] bin/embedded.o
  [AR] bin/blib.a
ar: creating bin/blib.a
  [BIN] bin/usbdisk.bin
  [VERSION] bin/version.ipxecustom008.hd.o
  [LD] bin/ipxecustom008.hd.tmp
ld:--defsym:2: undefined symbol `obj_ipxecustom008' referenced in expression
make: *** [Makefile.housekeeping:1188: bin/ipxecustom008.hd.tmp] Error 1
rm bin/version.ipxecustom008.hd.o bin/usbdisk.bin
[root@pxe000 src]#
[root@pxe000 src]# # Why?
[root@pxe000 src]#
Find all posts by this user
Quote this message in a reply
2019-01-22, 18:07
Post: #2
RE: Build Problems --defsym:2: undefined symbol `obj_ipxecustom008' referenced in express
(2019-01-22 17:44)James_Epp Wrote:  
Code:
[root@pxe000 src]# make bin/ipxecustom008.usb EMBED=script.ipxe

That is not a valid build target; there is no "ipxecustom008" driver. It looks as though you're trying to build an all-drivers image, in which case you want:

Code:
make bin/ipxe.usb EMBED=script.ipxe

Michael
Visit this user's website Find all posts by this user
Quote this message in a reply
2019-01-22, 18:13
Post: #3
RE: Build Problems --defsym:2: undefined symbol `obj_ipxecustom008' referenced in express
You can find valid buildtargets at http://ipxe.org/appnote/buildtargets
There was a good response on IRC for you:
Quote:23:22 < James_Epp> Hey, channel. I hardly ever compile stuff from source. Can I get some advice for this? https://bpaste.net/show/0986b91b6f06
23:30 < James_Epp> rom-o-matic seems to work fine but I'd prefer to learn what my issue is
00:01 -!- James_Epp [c6a3ddf0@gateway/web/freenode/ip.x.x.x.x] has quit [Quit: Page closed]
01:18 < ErRandir> Don't recognise that target ipxe000.usb. What kind of image are you trying to build?
01:20 < ErRandir> Normal build targets are listed at http://ipxe.org/appnote/buildtargets

Why are you using make bin/ipxecustom008.usb ?
Maybe what you want is make bin/ipxe.usb EMBED=script.ipxe

Use GitHub Discussions
VRAM bin
Visit this user's website Find all posts by this user
Quote this message in a reply
2019-01-22, 18:14 (This post was last modified: 2019-01-22 18:16 by James_Epp.)
Post: #4
RE: Build Problems --defsym:2: undefined symbol `obj_ipxecustom008' referenced in express
Thanks, Michael. That's a simple mistake. I made the false assumption that I could rename the target file so that I wouldn't overwrite the stock .usb creation. Thanks for the clarrification!
(2019-01-22 18:13)NiKiZe Wrote:  You can find valid buildtargets at http://ipxe.org/appnote/buildtargets
There was a good response on IRC for you:
Quote:23:22 < James_Epp> Hey, channel. I hardly ever compile stuff from source. Can I get some advice for this? https://bpaste.net/show/0986b91b6f06
23:30 < James_Epp> rom-o-matic seems to work fine but I'd prefer to learn what my issue is
00:01 -!- James_Epp [c6a3ddf0@gateway/web/freenode/ip.x.x.x.x] has quit [Quit: Page closed]
01:18 < ErRandir> Don't recognise that target ipxe000.usb. What kind of image are you trying to build?
01:20 < ErRandir> Normal build targets are listed at http://ipxe.org/appnote/buildtargets

Why are you using make bin/ipxecustom008.usb ?
Maybe what you want is make bin/ipxe.usb EMBED=script.ipxe

Thanks for the IRC log. I really need to setup a tmux'd irssi server somewhere....

Rolleyes
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)