Re: Oof!

Guido.van.Rossum@cwi.nl
Fri, 28 Jan 1994 09:53:15 +0100

> I can't get it to build. The error is in attempting to link python:
>
> import.o(.text+0x9a4): undefined reference to `dlopen'
> import.o(.text+0x9b8): undefined reference to `dlerror'
> import.o(.text+0x9d4): undefined reference to `dlsym'
>
> which are of course from the shared library `libdl', which the GNU
> linker (gcc version 2.4) doesn't seem to know how to use. I can't see
> how to tell it to use it, either. I can't figure out how to tell
> configure to use `cc' rather than `gcc', either.

>From the README:

| - The configure script uses gcc (the GNU C compiler) if it finds it.
| If you don't want this, or if this compiler is installed but broken on
| your platform, pass "CC=cc" (or whatever the name of the proper C
| compiler is) in the environment.

> Also, how do I build with `-g' instead of `-o'? Does this configuration
> stuff have some file that you can edit to tell it some things? Or do
> you have to edit each resultant Makefile by hand (ugh!)?

A look at the toplevel Makefile(.in) shows:

| # Compiler options passed to subordinate makes
| OPT= -O

and further down

| # Build the interpreter
| python: Makefiles
| for i in $(SUBDIRS); do \
| (echo $$i; cd $$i; $(MAKE) OPT="$(OPT)" all); \
| done

--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>
URL: <http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>