[LEDE-DEV] [Jool-list] It seems to me like the build system ignores EXTRA_FLAGS?

John Szakmeister john at szakmeister.net
Thu Dec 1 01:20:16 PST 2016


On Thu, Dec 1, 2016 at 3:57 AM, Dan Lüdtke <mail at danrl.com> wrote:
[snip]
> It get's worse. If I force -largp, the error stays the same:
>> x86_64-openwrt-linux-musl-gcc -Wall -O2 -largp -I./../../include -I/home/danrl/lede/nat64/source/staging_dir/target-x86_64_musl-1.1.15/usr/include/libnl3     -o jool ../../common/netlink/jool-config.o ../../common/stateful/jool-xlat.o ../common/jool-cJSON.o ../common/jool-dns.o ../common/jool-file.o ../common/jool-jool.o ../common/jool-netlink2.o ../common/jool-str_utils.o ../common/argp/jool-options.o ../common/nl/jool-buffer.o ../common/target/jool-bib.o ../common/target/jool-eam.o ../common/target/jool-global.o ../common/target/jool-instance.o ../common/target/jool-joold.o ../common/target/jool-json.o ../common/target/jool-log_time.o ../common/target/jool-pool.o ../common/target/jool-pool4.o ../common/target/jool-pool6.o ../common/target/jool-session.o -L/home/danrl/lede/nat64/source/staging_dir/target-x86_64_musl-1.1.15/usr/lib -lnl-genl-3 -lnl-3 -lpthread -lm
>> ../common/jool-jool.o: In function `main':
>> jool.c:(.text.startup+0x89): undefined reference to `argp_parse'
>> collect2: error: ld returned 1 exit status
>> Makefile:504: recipe for target 'jool' failed
>> make[6]: *** [jool] Error 1

I can't help you with the actual issues, but you don't have -largp in
the correct location.  It need probably needs to come before the last
few libraries, but after the jool-related ones (at the very least the
ones that depend on it).  Linkers link in the order given, so at the
point you've placed it, nothing depends on argp and therefore nothing
is used from it.

I'd try here:
    ../common/target/jool-pool6.o ../common/target/jool-session.o -largp ...

-John



More information about the Lede-dev mailing list