[Bug 195597] New: [patch] deskutils/gnote 3.14.0 build fails on FreeBSD 8.4

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Dec 3 01:32:05 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195597

            Bug ID: 195597
           Summary: [patch] deskutils/gnote 3.14.0 build fails on FreeBSD
                    8.4
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: gnome at FreeBSD.org
          Reporter: truckman at FreeBSD.org
          Assignee: gnome at FreeBSD.org
             Flags: maintainer-feedback?(gnome at FreeBSD.org)

Created attachment 150123
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=150123&action=edit
patch to fix deskutils/gnote configure script to fix build on FreeBSD 8.4

The deskutils/gnote port version 3.14.0 fails to build on FreeBSD 8.4 because
of a failure during the configure phase:

checking boost/test/unit_test.hpp presence... yes
checking for boost/test/unit_test.hpp... yes
checking for the Boost unit_test_framework library... no
configure: error: cannot find the flags to link with Boost unit_test_framework
===>  Script "configure" failed unexpectedly.
Please run the gnomelogalyzer, available from
"http://www.freebsd.org/gnome/gnomelogalyzer.sh", which will diagnose the
problem and suggest a solution. If - and only if - the gnomelogalyzer cannot
solve the problem, report the build failure to the FreeBSD GNOME team at
gnome at FreeBSD.org, and attach (a)
"/wrkdirs/usr/ports/deskutils/gnote/work/gnote-3.14.0/config.log", (b) the
output of the failed make command, and (c) the gnomelogalyzer output. Also,
it might be a good idea to provide an overview of all packages installed on
your system (i.e. an `ls /var/db/pkg`). Put your attachment up on any website,
copy-and-paste into http://freebsd-gnome.pastebin.com, or use send-pr(1) with
the attachment. Try to avoid sending any attachments to the mailing list
(gnome at FreeBSD.org), because attachments sent to FreeBSD mailing lists are
usually discarded by the mailing list software.
*** Error code 1

Stop in /usr/ports/deskutils/gnote.

The problem is that configure first tries to link this library statically, and
when that fails, it "forgets" to try linking it dynamically.  The reason is
that it has a bunch of nested loops to try multiple variations on the library
name and keeps track of which library names it has tried so that it doesn't
retry the same library name.  The problem is that one of the loop variables
also governs whether it should try static or dynamic liking, and if static
linking fais, the library name gets added to the exclusion list, which prevents
it from trying dynamic linking.

The attached patch adds the value of this loop variable ($boost_rtopt_) to
disambiguate the two cases so that linking both ways is tried.  An alterative
fix would be to remove the values of $boost_lib that don't contain
$boost_rtopt_ since one of the values of $boost_rtopt_ is ''.

Also, the location where $boost_failed_libs is incorrect.  It needs to be
moved out one loop nesting level to prevent the same library name value from
being added to the list multiple times.

Upstream should patch m4/boost.m4 and regenerate configure.

--- Comment #1 from Bugzilla Automation <bugzilla at FreeBSD.org> ---
Auto-assigned to maintainer gnome at FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list