#11769: Singular does not build on Ubuntu Oneiric
------------------------+---------------------------------------------------
Reporter: ddrake | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-4.7.2
Component: packages | Keywords: singular, linker, sd34 -ldl
libkernel mod_raw.cc
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
------------------------+---------------------------------------------------
Changes (by leif):
* cc: burcin (added)
* keywords: singular, linker, sd34 => singular, linker, sd34 -ldl
libkernel mod_raw.cc
Old description:
> Due to fussier linkers, Singular will not build on the current version of
> Ubuntu Oneiric (11.10). This was reported at
> https://groups.google.com/d/topic/sage-devel/aL8b9phz3Xc/discussion : the
> fix is to flip the order of `-ldl` and `-lkernel` in the linking step.
>
> This may already be fixed upstream; if so, this ticket should be closed.
> If not, SD34 would be the perfect time to fix it.
New description:
Due to fussier linkers, Singular will not build on the current version of
Ubuntu Oneiric (11.10). This was reported at
[https://groups.google.com/d/topic/sage-devel/aL8b9phz3Xc/discussion]:
{{{
../kernel/libkernel.a(mod_raw.o): In function `dynl_open':
/home/foo/sage-4.7.2.alpha2/spkg/build/singular-3-1-1-4.p13/src/kernel/mod_raw.cc:217:
undefined reference to `dlopen'
../kernel/libkernel.a(mod_raw.o): In function `dynl_sym':
/home/foo/sage-4.7.2.alpha2/spkg/build/singular-3-1-1-4.p13/src/kernel/mod_raw.cc:228:
undefined reference to `dlsym'
../kernel/libkernel.a(mod_raw.o): In function `dynl_close':
/home/foo/sage-4.7.2.alpha2/spkg/build/singular-3-1-1-4.p13/src/kernel/mod_raw.cc:233:
undefined reference to `dlclose'
../kernel/libkernel.a(mod_raw.o): In function `dynl_error':
/home/foo/sage-4.7.2.alpha2/spkg/build/singular-3-1-1-4.p13/src/kernel/mod_raw.cc:238:
undefined reference to `dlerror'
collect2: ld returned 1 exit status
make[2]: *** [iparith.inc] Error 1
make[2]: Leaving directory
`/home/foo/sage-4.7.2.alpha2/spkg/build/singular-3-1-1-4.p13/src/Singular'
make[1]: *** [install] Error 1
make[1]: Leaving directory
`/home/foo/sage-4.7.2.alpha2/spkg/build/singular-3-1-1-4.p13/src'
make: *** [/home/foo/sage-4.7.2.alpha2/local/bin/Singular-3-1-1] Error 2
Unable to build Singular.
}}}
(Cf. also [comment:ticket:11674:27] ff.)
The fix is to flip the order of `-ldl` and `-lkernel`, or append a second
`-ldl` in the linking steps.
This may already be fixed upstream (cf. #10903); if so, this ticket should
be closed. If not, [http://wiki.sagemath.org/days34 the Sage/Singular Days
(SD34)] would be the perfect time to fix it.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11769#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.