Singular in 4.6.2.alpha4 doesn't build on Ubuntu 11.04 alpha 2

8 views
Skip to first unread message

Dan Drake

unread,
Feb 9, 2011, 11:54:03 PM2/9/11
to sage-...@googlegroups.com
I thought I would try to see if Sage builds in the upcoming version of
Ubuntu, which is still early in the development stages but I think the
compilers and other basic system stuff are stable. But there's some kind
of linker error:

../kernel/libkernel.a(mod_raw.o): In function `dynl_open':
/home/foo/sage-4.6.2.alpha4/spkg/build/singular-3-1-1-4.p3/src/kernel/mod_raw.cc:217: undefined reference to `dlopen'
../kernel/libkernel.a(mod_raw.o): In function `dynl_sym':
/home/foo/sage-4.6.2.alpha4/spkg/build/singular-3-1-1-4.p3/src/kernel/mod_raw.cc:228: undefined reference to `dlsym'
../kernel/libkernel.a(mod_raw.o): In function `dynl_close':
/home/foo/sage-4.6.2.alpha4/spkg/build/singular-3-1-1-4.p3/src/kernel/mod_raw.cc:233: undefined reference to `dlclose'
../kernel/libkernel.a(mod_raw.o): In function `dynl_error':
/home/foo/sage-4.6.2.alpha4/spkg/build/singular-3-1-1-4.p3/src/kernel/mod_raw.cc:238: undefined reference to `dlerror'
collect2: ld returned 1 exit status

(Full build log attached.)

This seems like a pretty basic linking / libc problem:
http://www.linuxquestions.org/questions/slackware-14/undefined-reference-to-dlopen-dlclose-dlsym-and-dlerror-350945/.

I tried to continue the build without Singular just to see what else
worked, and also got a linker error there too -- with symmetrica, it
eventually failed with "undefined reference to `cos'"!

The build system is a current Ubuntu Natty (11.04) 32-bit virtual
machine. Any ideas on what's going wrong? Is this an Ubuntu problem that
will get fixed before the final release, or something we need to work
on? (Or something silly on my part?)

Thanks,

Dan

--
--- Dan Drake
----- http://mathsci.kaist.ac.kr/~drake
-------

singular-3-1-1-4.p3.log.gz
signature.asc

Francois Bissey

unread,
Feb 10, 2011, 2:39:08 AM2/10/11
to sage-...@googlegroups.com

Hi

I don't think you are doing anything silly it is just plain weird. In singular
you have "-ldl" on the compilation line which should have the stuff in
question. So is /usr/lib/libdl.{a,so} on your system?
What about /usr/lib/libm.{a,so}?
I think it is weird it doesn't fail because of libm before symmetrica.
Can you provide a list of package that build before singular?

Francois

This email may be confidential and subject to legal privilege, it may
not reflect the views of the University of Canterbury, and it is not
guaranteed to be virus free. If you are not an intended recipient,
please notify the sender immediately and erase all copies of the message
and any attachments.

Please refer to http://www.canterbury.ac.nz/emaildisclaimer for more
information.

Volker Braun

unread,
Feb 10, 2011, 3:18:01 AM2/10/11
to sage-...@googlegroups.com

On Thursday, February 10, 2011 5:54:03 AM UTC+1, Dan Drake wrote:

I tried to continue the build without Singular just to see what else
worked, and also got a linker error there too -- with symmetrica, it
eventually failed  with "undefined reference to `cos'"!

This should be fixed in  http://trac.sagemath.org/sage_trac/ticket/10719, which currently needs review hint, hint. ;-)

Reply all
Reply to author
Forward
0 new messages