ldexpf undefined in Python 2.4.3 build on SCO OSR 5.0.5

E

edcdave

My (gcc 2.95.2) build of Python 2.4.3 is failing with:

gcc -Wl,-Bexport -o python \
Modules/ccpython.o \
libpython2.4.a -lnsl -ldl -lm
Undefined first referenced
symbol in file
ldexpf /usr/ccs/lib/libm.so
python: fatal error: Symbol referencing errors. No output written to
python
collect2: ld returned 1 exit status
*** Error code 1 (bu21)
UX:make: ERROR: fatal error.

This is hardly surprising since config.log contained:

configure:18218: checking for hypot
configure:18269: gcc -o conftest -g -O2 conftest.c -lnsl -ldl -lm
Undefined first referenced
symbol in file
ldexpf /usr/ccs/lib/libm.so
conftest: fatal error: Symbol referencing errors. No output written to
conftest
collect2: ld returned 1 exit status
configure:18275: $? = 1

Which led to pyconfig.h containing:

/* Define to 1 if you have the `hypot' function. */
/* #undef HAVE_HYPOT */

So, even without HAVE_HYPOT, ldexpf is still referenced somehow.

Any suggestions? Should I step back to Python 2.3 source? Thanks,
Dave Harris

BTW, I'm the guy trying to get MoinMoin running on SCO OpemServer 5.0.5
(http://groups.google.com/group/comp...lnk=gst&q=getaddrinfo&rnum=2#fcc5a79144c195df).
The configure script correctly identifies getaddrinfo() as absent.

/* Define if you have the getaddrinfo function. */
/* #undef HAVE_GETADDRINFO */

Thanks for the suggestion to check it, Martin. There's still room for
some confusion since I'm trying to build Python 2.4.3 now and my
original binary was Python 2.3.4. But I'm satisfied that the Python
script is correct.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top