PicoLisp math functions are broken in 64-bit build for Oneiric

Bug #874841 reported by AlexanderBurger
6
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

Revision history for this message
AlexanderBurger (abu-software-lab) wrote :

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.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package picolisp - 3.0.8.5-2

---------------
picolisp (3.0.8.5-2) unstable; urgency=low

  * Sync to upstream tip with important fixes.

picolisp (3.0.8.5-1) unstable; urgency=low

  * New upstream release.
    - Force linkage with libm, fix 64-bit build in Ubuntu. (LP: #874841)
  * Sync to upstream tip with IPv6 support.
 -- Ubuntu Archive Auto-Sync <email address hidden> Mon, 07 Nov 2011 10:04:47 +0000

Changed in picolisp (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.