ports/175402: math/suitesparse: libcholmod.so: undefined reference to `SuiteSparse_time`
O. Hartmann
ohartman at zedat.fu-berlin.de
Fri Jan 18 12:30:02 UTC 2013
>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:
More information about the freebsd-ports-bugs
mailing list