Pythonissue again

Moin moin

I changed distros (opensuse -> arch) and am still hitting this
python-issue on link-time:

– Build files have been written to: /home/carsten/kde/build/avo-carsten
Linking CXX shared library …/…/lib/libavogadro.so
/usr/lib/python2.6/config/libpython2.6.a(posixmodule.o): In function
posix_forkpty': (.text+0x32f9): undefined reference toforkpty’
/usr/lib/python2.6/config/libpython2.6.a(posixmodule.o): In function
posix_openpty': (.text+0x3388): undefined reference toopenpty’
collect2: ld returned 1 exit status
make[2]: *** [lib/libavogadro.so.0.9.4] Error 1
make[1]: *** [libavogadro/src/CMakeFiles/avogadro.dir/all] Error 2
make: *** [all] Error 2

Carsten

Hi,

On Sun, May 17, 2009 at 2:22 PM, Carsten Niehaus cniehaus@gmx.de wrote:

Moin moin

I changed distros (opensuse -> arch) and am still hitting this
python-issue on link-time:

– Build files have been written to: /home/carsten/kde/build/avo-carsten
Linking CXX shared library …/…/lib/libavogadro.so
/usr/lib/python2.6/config/libpython2.6.a(posixmodule.o): In function
posix_forkpty': (.text+0x32f9): undefined reference toforkpty’
/usr/lib/python2.6/config/libpython2.6.a(posixmodule.o): In function
posix_openpty': (.text+0x3388): undefined reference toopenpty’
collect2: ld returned 1 exit status
make[2]: *** [lib/libavogadro.so.0.9.4] Error 1
make[1]: *** [libavogadro/src/CMakeFiles/avogadro.dir/all] Error 2
make: *** [all] Error 2

This symbol seems to be in libutil, I already have a simple compile test:

#include <pty.h>
int main()
{
forkpty(0, 0, 0, 0);
}

tim@ubuntu:~/Shared/avogadro-1.0/build-linux$ g++ forkpty.cpp
/tmp/ccgW5ezE.o: In function main': forkpty.cpp:(.text+0x31): undefined reference toforkpty’
collect2: ld returned 1 exit status
tim@ubuntu:~/Shared/avogadro-1.0/build-linux$ g++ forkpty.cpp -lutil
tim@ubuntu:~/Shared/avogadro-1.0/build-linux$

I’ll try to if I can get cmake to use the above file to determine if
it needs to add util to the list of libraries.

Tim

Carsten


Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects


Avogadro-devel mailing list
Avogadro-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avogadro-devel

Carsten Niehaus wrote:

Moin moin

I changed distros (opensuse -> arch) and am still hitting this
python-issue on link-time:

– Build files have been written to: /home/carsten/kde/build/avo-carsten
Linking CXX shared library …/…/lib/libavogadro.so
/usr/lib/python2.6/config/libpython2.6.a(posixmodule.o): In function
posix_forkpty': (.text+0x32f9): undefined reference toforkpty’
/usr/lib/python2.6/config/libpython2.6.a(posixmodule.o): In function
posix_openpty': (.text+0x3388): undefined reference toopenpty’
collect2: ld returned 1 exit status
make[2]: *** [lib/libavogadro.so.0.9.4] Error 1
make[1]: *** [libavogadro/src/CMakeFiles/avogadro.dir/all] Error 2
make: *** [all] Error 2

What version of Avogadro? This works for me on Arch Linux. Could you
look in CMakeCache.txt and tell me what PYTHON_LIBRARY is - it looks
like you are getting the static lib in /usr/lib/python2.6/config - I
override the CMake FindPythonLibs.cmake to find the library in
/usr/lib/python{version}.so.