Date: Fri, 18 Jan 2013 12:27:13 GMT From: "O. Hartmann" <ohartman@zedat.fu-berlin.de> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/175402: math/suitesparse: libcholmod.so: undefined reference to `SuiteSparse_time` Message-ID: <201301181227.r0ICRD8R028583@red.freebsd.org> Resent-Message-ID: <201301181230.r0ICU15o026649@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 175402 >Category: ports >Synopsis: math/suitesparse: libcholmod.so: undefined reference to `SuiteSparse_time` >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 18 12:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: O. Hartmann >Release: FreeBSD 10-CURRENT/amd64 >Organization: FU Berlin >Environment: >Description: Compiling a package of software that uitilizes port math/suitesparse fails when a part of the package's software in question is compiled against libchomod.so, which is installed by port math/suitesparse, with the compiler/linker error: libcholmod.so: undefined reference to `SuiteSparse_time` Following some similar errors on the web, I came across this webpage on which someone has already investigated the problem: https://bugzilla.novell.com/show_bug.cgi?id=775418 here please be refered to "Comment 3". Obviously, the symbol (and so initially the function) SuiteSparse_time() does not get compiled in on a missing initial condition express by setting -DNTIMER. >How-To-Repeat: Compile a piece of software that is making usage of SuiteSparse_time() and link that software against library libcholmod.so. >Fix: Add "-DNTIMER" to the CFLAGS in port's Makefile of port math/suitesparse. I simply added this flag to the port's Makefile and making it globally visible that way, but there might be a reason why it isn't set int he first place, so let the experts/port maintainer decide were to place. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301181227.r0ICRD8R028583>