PicoLisp math functions are broken in 64-bit build for Oneiric
Bug #874841 reported by
AlexanderBurger
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
picolisp (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 11.10
picolisp-3.0.7.7-2
The math functions, which are loaded dynamically at runtime in PicoLisp, are not linked into the executable.
Test:
$ pil +
: (load "@lib/math.l")
-> atan2
: (cos 0.5)
!? (native "@" "cos" 1000000 "Dbl1")
[DLL] /usr/bin/picolisp: undefined symbol: cos
Obviously uses the Ubuntu build process "-Wl,--as-needed" as the default. As a result, the "-lm" command line argument to 'gcc' has no effect. This problem does not occur in the original Debian build.
Related branches
To post a comment you must log in.
FYI, the newest upstream version (3.0.8.4) now contains the directive "-Wl,-- no-as-needed" in the 'gcc' link line. This should fix the problem in the long range.