Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am attempting to compile Scheme48, and get undefined references to dlopen and friends.

System: Xubuntu 12.10, 32bit

build-essentials and libc6-dev are installed.

in /lib/i386-linux-gnu/ the file exists. is a symlink to it. /usr/lib/i386-linux-gnu/ is a symlink to /lib/i386-linux-gnu/

The Makefile has -ldl on the gcc command to link up the executable.

I'm clearly missing some magic sauce here as all Google digs up complains about 64bit failing while 32bit works. But 32bit does not build.

What gives?

share|improve this question

Found the problem. The -ldl parameter was specified too early on the command line. Modifying the to put the libraries after all .o files fixed the problem.

The 1.9 release of Scheme48 fixes this as well.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.