Bug 1417549
Summary: | /usr/bin/x86_64-linux-gnu-ld.bfd.real: ../common/progress/.libs/libprogress.a(libprogress_la-progress.o): undefined reference to symbol 'UP@@NCURSES_TINFO_5.0.19991023' | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | jean-christophe manciot <actionmystique> | ||||||
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | ||||||
Status: | CLOSED UPSTREAM | QA Contact: | |||||||
Severity: | high | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | unspecified | CC: | actionmystique, ptoscano, rbalakri | ||||||
Target Milestone: | --- | Keywords: | Reopened | ||||||
Target Release: | --- | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2017-02-15 09:58:10 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Can you see if this patch fixes it? diff --git a/fish/Makefile.am b/fish/Makefile.am index fa345d6..d806ebf 100644 --- a/fish/Makefile.am +++ b/fish/Makefile.am @@ -137,14 +137,15 @@ guestfish_CFLAGS = \ $(LIBXML2_CFLAGS) guestfish_LDADD = \ - $(LIBCONFIG_LIBS) \ - $(LIBREADLINE) \ $(top_builddir)/common/edit/libedit.la \ $(top_builddir)/common/options/liboptions.la \ $(top_builddir)/common/progress/libprogress.la \ $(top_builddir)/common/utils/libutils.la \ $(top_builddir)/lib/libguestfs.la \ $(LIBXML2_LIBS) \ + $(LIBCONFIG_LIBS) \ + $(LIBREADLINE) \ + $(LIBTINFO_LIBS) \ $(LTLIBINTL) \ -lm # git apply --stat ../bug.patch fish/Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) # git apply --check ../bug.patch error: patch failed: fish/Makefile.am:137 error: fish/Makefile.am: patch does not apply I don't understand what that means. However I will attach the patch directly to the BZ to avoid any copy and paste problems. Created attachment 1246114 [details]
0001-fish-Link-to-libtinfo-RHBZ-1417549.patch
Issue still there with v1.35.23. Please try the patch. I'm closing this. Please show some good will when we are attempting to help you with fixes. Same issue in v1.35.24 I have just verified that the patch still applies to the latest version. Please try it and see if it fixes the problem for you. We do not see this bug on our local builds. Applying the "0001-fish-Link-to-libtinfo-RHBZ-1417549.patch" patch on v1.35.24 leads to the same issue. You don't see it probably because you build with another OS. FYI, I've successfully built numerous libguestfs releases (up to v1.35.19) in the past in the exact same environment. (In reply to jean-christophe manciot from comment #11) > Applying the "0001-fish-Link-to-libtinfo-RHBZ-1417549.patch" patch on > v1.35.24 leads to the same issue. What are the exact steps you are doing to test it? I'm asking this because, when building from a release tarball, you need to autoreconf the sources (running `autoreconf -fi` from the top-level) so that the changes in autoconf (such as configure.ac, and the various *.m4 files) and automake files (such as the Makefile.am files) are correctly propagated to the static files of the autotools-based dist. I hit the same issue when testing on openSUSE Factory, and Ubuntu devel, and the patch worked in both cases. So I'd simply commit it, so it can be available also in release tarballs in libguestfs >= 1.35.25. You already have your answer https://bugzilla.redhat.com/show_bug.cgi?id=1417549#c0. Also, the script "git-reset-clean-pull-checkout.sh $branch $tag" does the following: git_branch=$1 git_tag=$2 echo ------------------------- echo "Checking out $git_branch" echo ------------------------- git checkout $git_branch echo --------------------- echo "Resetting & cleaning" echo --------------------- git reset --hard git submodule foreach --recursive git reset --hard git clean -fxd :/ echo ------------------------- echo "Checking out $git_branch" echo ------------------------- git checkout $git_branch echo -------------------- echo "Pulling with rebase" echo -------------------- git pull -v --progress --rebase return_code=$? if [ $return_code -ne 0 ]; then exit $return_code fi git submodule update --init --recursive git fetch --tags git checkout $git_tag exit 0 I just pushed the patch, as it was fixing the issue for me: https://github.com/libguestfs/libguestfs/commit/1230543f7159c8a936b52eda792340c9759a420b It will be in libguestfs >= 1.35.25. Do you have hardening-wrapper installed, by chance? I'll wait then and yes. Just tried, and git/master (which includes the patch) builds fine also with hardening-wrapper installed -- thus, marking it as fixed. Yes, this issue is solved, even though there are other issues during the test process "make check". |
Created attachment 1245778 [details] Full build log Description of problem: ---------------------- Error while compiling git sources v1.35.20 How reproducible: ---------------- echo -------- echo Cleaning echo -------- cd git-libguestfs sudo -u actionmystique -H git-reset-clean-pull-checkout.sh $branch $tag echo ----------- echo Configuring echo ----------- export NOCONFIGURE=yes ./autogen.sh ./configure --build=x86_64-pc-linux-gnu \ --enable-fuse \ --enable-golang \ --prefix=/usr --sysconfdir=/etc --localstatedir=/var echo --------- echo Compiling echo --------- make Actual results: -------------- ... Making all in fish make[2]: Entering directory '/home/actionmystique/Program-Files/Ubuntu/Libguestfs/git-libguestfs/fish' make all-am make[3]: Entering directory '/home/actionmystique/Program-Files/Ubuntu/Libguestfs/git-libguestfs/fish' CCLD guestfish /usr/bin/x86_64-linux-gnu-ld.bfd.real: ../common/progress/.libs/libprogress.a(libprogress_la-progress.o): undefined reference to symbol 'UP@@NCURSES_TINFO_5.0.19991023' /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libtinfo.so: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:2108: recipe for target 'guestfish' failed make[3]: *** [guestfish] Error 1 Additional info: --------------- Ubuntu 16.10 4.8 Full build log is attached.