This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author barry-scott
Recipients barry-scott
Date 2008-08-09.16:45:10
SpamBayes Score 0.0014091129
Marked as misclassified No
Message-id <1218300371.75.0.851068496859.issue3533@psf.upfronthosting.co.za>
In-reply-to
Content
I wanted to use Py_DEBUG build to help debug a problem
with ref counts in a C++ extension.

I cannot find eprintf in the sources of python
where does this symbol come from? How do I fix the
build to define it?


$ sw_vers 
ProductName:    Mac OS X
ProductVersion: 10.4.11
BuildVersion:   8S165

$ ./configure --enable-framework --enable-debug --with-pydebug
$ make
...
/usr/bin/install -c -d -m 755 Python.framework/Versions/3.0
if test ""; then \
        gcc -o Python.framework/Versions/3.0/Python  -dynamiclib \
                -isysroot "" \
                -all_load libpython3.0.a -Wl,-single_module \
                -install_name
/Library/Frameworks/Python.framework/Versions/3.0/Python \
                -compatibility_version 3.0 \
                -current_version 3.0; \
        else \
        /usr/bin/libtool -o Python.framework/Versions/3.0/Python
-dynamic  libpython3.0.a \
                 -lSystem -lSystemStubs -arch_only ppc -install_name
/Library/Frameworks/Python.framework/Versions/3.0/Python
-compatibility_version 3.0 -current_version 3.0 ;\
fi
ld: Undefined symbols:
___eprintf
/usr/bin/libtool: internal link edit command failed
make: *** [Python.framework/Versions/3.0/Python] Error 1
History
Date User Action Args
2008-08-09 16:46:11barry-scottsetrecipients: + barry-scott
2008-08-09 16:46:11barry-scottsetmessageid: <1218300371.75.0.851068496859.issue3533@psf.upfronthosting.co.za>
2008-08-09 16:45:11barry-scottlinkissue3533 messages
2008-08-09 16:45:10barry-scottcreate