iPXE discussion forum
[SOLVED] Build Problems --defsym:2: undefined symbol `obj_ipxecustom008' - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: [SOLVED] Build Problems --defsym:2: undefined symbol `obj_ipxecustom008' (/showthread.php?tid=17335)



[SOLVED] Build Problems --defsym:2: undefined symbol `obj_ipxecustom008' - James_Epp - 2019-01-22 17:44

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]#



RE: Build Problems --defsym:2: undefined symbol `obj_ipxecustom008' referenced in express - mcb30 - 2019-01-22 18:07

(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


RE: Build Problems --defsym:2: undefined symbol `obj_ipxecustom008' referenced in express - NiKiZe - 2019-01-22 18:13

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


RE: Build Problems --defsym:2: undefined symbol `obj_ipxecustom008' referenced in express - James_Epp - 2019-01-22 18:14

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