New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to build without submodules #63
Comments
Hi @zorun , This should be achievable by tweaking the configure.ac to add an additional --with-... argument. Unfortunately, I will not have any time to do and test this before October. |
Late to the party. I'm trying to compile tracebox for OpenWRT and libcrafter produces an issue that I don't understand.
|
Hi, Could you check that you have libresolv available with your musl setup? |
Thank you very much for getting back at me. Looking at Under Development environment:
I'm not sure what to do. Any ideas? |
Hi,
Additional files libm.a, librt.a, libpthread.a, libcrypt.a,
libutil.a, libxnet.a, libresolv.a, and libdl.a are provided in $(libdir) as
empty library archives. They contain no code, but are present to satisfy
the POSIX requirement that options of the form -lm, -lpthread, etc. be
accepted by the c99 compiler.
I'm not sure what to do. Any ideas?
Admittedly, the reliance on these functions both in libcrafter (and tracebox) is
very limited. Two fixes are possible:
- Make the compilation of DNS-related function both in libcrafter and tracebox
optional, depending on the detection of libresolv by autoconf (this would be
the cleanest way, and the most time consuming)
- Ship your own version of libresolv, alongside tracebox. You may want to look at
https://github.com/tracebox/android/blob/master/build.sh#L212 where I shipped a
local static build of libbind when compiling for android.
Admittedly, I haven't touched any of this in several years...
Looking at https://github.com/tracebox/openwrt
makes me suspect you'll run into additional issues...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#63 (comment)> ,
or unsubscribe <https://github.com/notifications/unsubscribe-
auth/AAJVCUI7ECQT5JHFTENPNSLRTT4DLANCNFSM4FVLBGPQ> .
<https://github.com/notifications/beacon/AAJVCUNRQEDZBOK32KWHNB3RTT4DLA5CNF
SM4FVLBGP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEXJU3
VI.gif>
|
I see. There’s only tracebox 0.2 for OpenWRT if I understand correctly. I think I’m better off using |
I see. There’s only tracebox 0.2 for OpenWRT if I understand correctly.
That was indeed the last release we used on OpenWrt back then.
I think I’m better of using the default build for linux. I’d rather use the
latest version of tracebox. Thank you for your help.
I agree. If you end up getting it to build, feel free to update the quoted
OpenWrt repo with the new package description/patches...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#63 (comment)> ,
or unsubscribe <https://github.com/notifications/unsubscribe-
auth/AAJVCUJLPTNLIHKBLWB4BFTRTVK7HANCNFSM4FVLBGPQ> .
<https://github.com/notifications/beacon/AAJVCUNKTH6CXU6DS3AKIPLRTVK7HA5CNF
SM4FVLBGP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEXLRN
6I.gif>
|
...indeed, sadly libcrafter doesn't build against musl no matter what... :-/ |
...gave it another shot with clearer mind today, |
If you can provide a patch doing this switch through e.g., some configure.ac detection, and file it against libcrafter, I'd be happy to merge it. |
Currently, tracebox tries to import libcrafter as a git submodule.
This is a blocking issue for integrating this software in a distro (Arch Linux in my case):
Is it possible to add an option to use a system-wide libcrafter installation instead of a submodule?
See also pellegre/libcrafter#56
The text was updated successfully, but these errors were encountered: