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
Building with an old version installed and LDFLAGS set #12335
Comments
Just installed radare2 from tag 3.1.0 on macOS 10.13.6 and was running into a similar issue with |
Same as #12044 ? |
@Maijin That bug doesn't look related. That seems to be about old object files. This is about linking against an already installed version of the libraries rather than the just-built version of the libraries. |
I meant for the |
enotime for this release, i prefer to move to 3.3 to properly look at it and not do a quick fix now |
moving to 3.4, enotime again |
Trying to reproduce. with cflags i had no problems, so maybe iits an LDFLAGS only issue also i found the script is testing 3.0.1 vs 3.1.0 .. will be good to chk if ths is still happening with 3.5, or maybe add a travis task to build the last release and then build r2 from git, will require 3 more min to run but we will be sure that the release build fine if u had a previous versoin installed. may help us also to cleanup deprecated files and such |
Just got similar errors upgrading 4.3.1 -> 4.4.0:
Removing the old version fixed it. |
ok thanks for rechecking, closing here. |
@Maijin : The problem is that new versions aren't built correctly when an old version is currently installed, and i0ntempest reported that this is still a problem. |
right reopening |
I suggest to use |
Sure, if you'd like to trade the set of problems you already know about for a whole new unknown set of problems. Just fixing the current build system would be simpler for everyone. |
I think the best way to track this is to write a script that runs 2 builds of r2 with incompatible API changes and run it in the CI. Anyone have some time to write a reproducer script for this? I'm a bit short in time but i do believe this issue should be fixed, r2 is not suposed to build only on clean environments |
It's easy enough to reproduce by placing unreadable empty files with the same names as the libraries into any folder and setting LDFLAGS to that folder when configuring.
|
thats a great reproducer. ill find some spare time and do the ci changes and the fix. thanks for sharing that quickly :) |
added the ci task here, #18542 |
When building with LDFLAGS set, radare2 may link against an old installed version (see #492).
If the old version is 3.0.1, then building 3.1.0's
rasm2
fails due to a missing symbol. See https://trac.macports.org/ticket/57688Work environment
Expected behavior
I expect radare2 to build and link against the just built version of its libraries.
Actual behavior
_ht_pp_foreach
is undefined in 3.0.1'slibr_util.dylib
so linkingrasm2
fails.Steps to reproduce the behavior
Here's a script to reproduce the behavior. It installs 3.0.1 into
/tmp/local
and then attempts to build 3.1.0 withLDFLAGS=-L/tmp/local/lib
set.The text was updated successfully, but these errors were encountered: