pkgsrc-WIP-discuss archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Problem locating libpython



Hi all,

I am trying to build my first pkgsrc package for a project I have been working 
on called EDoc++ ( http://edoc.sourceforge.net/ ). This package builds and runs 
fine on my NetBSD system when i build normally from source, however when using 
my newly created pkgsrc-wip structure to build it the configure script fails 
while looking for libpython. 

I have been following the instructions described at: 
http://www.netbsd.org/docs/pkgsrc/creating.html


The edoc pkgsrc Makefile includes the buildlink file for python2.4 like:
include "../../lang/python24/buildlink3.mk"

Looking through config.log I see that the libpython2.4.a library is being 
linked with the configure test program, but the link stage fails with undefined 
references to all sorts of functions for pthread, and libm. To show an example:

-- test program --
#include <Python.h>
int
main ()
{
Py_InitializeEx(0); Py_Finalize();
  ;
  return 0;
}

-- compilation command --
configure:29746: cc -o conftest -O2 -I/usr/pkg/include/python2.4 -I/usr/include 
-I/usr/pkg/include/python2.4 -I/usr/include  -I/usr/include 
-L/usr/pkg/lib/python2.4/config -Wl,-R/usr/pkg/lib/python2.4/config -L/usr/lib 
-Wl,-R/usr/lib -Wl,-R/usr/pkg/lib  -L/usr/lib conftest.c  -lpython2.4 >&5

-- errors that ocurr --
/usr/pkgsrc/wip/edoc/work/.buildlink/lib/python2.4/config/libpython2.4.a(floatobject.o)(.text+0x10c2):
 In function `float_rem': : undefined reference to `fmod'

Some of the functions that are missing include:
fmod, floor, ceil, pthread_attr_init, pthread_create

I am using an older pkgsrc, however i looked through the python2.4 buildlink 
file and it includes lines like: pthread.buildlink3.mk

Does anyone have an idea what might be causing this problem? If it will help i 
can commit what i currently have to pkgsrc wip for someone to look through, but 
I am guessing that this is a simple problem that I just cant find a solution 
for.

Thanks in advance for any help,
Brendon.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
pkgsrc-wip-discuss mailing list
pkgsrc-wip-discuss%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss




Home | Main Index | Thread Index | Old Index