From: SourceForge.net <no...@so...> - 2009-06-19 16:25:17
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7453927 By: larryhaja I've tried building libtuxcap with my installed python (version 2.5.2). When Cmake runs it finds the static library at /usr/lib/python2.5/config/libpython2.5.a. This results in the following error: Linking CXX executable ../../pythondemo1/Pythondemo1 cd /tmp/SBo/libtuxcap-1.4.0/tuxcap-build/tuxcap/pythondemo1 && /usr/bin/cmake -E cmake_link_script CMakeFiles/../../pythondemo1/Pythondemo1.dir/link.txt --verbose=1 /usr/bin/c++ -O2 -march=i486 -mtune=i686 -DNDEBUG -O3 -fPIC CMakeFiles/../../pythondemo1/Pythondemo1.dir/main.o -o ../../pythondemo1/Pythondemo1 -rdynamic -L/usr/lib/python2.5/config -L/tmp/SBo/libtuxcap-1.4.0/tuxcap-build/tuxcap/lib -Wl,-Bstatic -lSDLmain -Wl,-Bdynamic -lSDL -lpthread -lSDL_mixer -lGLU -lGL -lSM -lICE -lX11 -lXext -lMagick++ -lMagickCore -lX11 -lX11 /usr/lib/python2.5/config/libpython2.5.a ../lib/libtuxcap.so.4.0 -Wl,-Bstatic -lSDLmain -Wl,-Bdynamic -lSDL -lpthread -lSDL_mixer -lGLU -lGL -lSM -lICE -lX11 -lXext -lMagick++ -lMagickCore -lX11 -lXext -lMagick++ -lMagickCore /usr/lib/python2.5/config/libpython2.5.a -Wl,-rpath,/tmp/SBo/libtuxcap-1.4.0/tuxcap-build/tuxcap/lib ../lib/libtuxcap.so.4.0: undefined reference to `forkpty' ../lib/libtuxcap.so.4.0: undefined reference to `openpty' collect2: ld returned 1 exit status make[2]: *** [tuxcap/pythondemo1/../../pythondemo1/Pythondemo1] Error 1 make[2]: Leaving directory `/tmp/SBo/libtuxcap-1.4.0/tuxcap-build' make[1]: *** [tuxcap/pythondemo1/CMakeFiles/../../pythondemo1/Pythondemo1.dir/all] Error 2 make[1]: Leaving directory `/tmp/SBo/libtuxcap-1.4.0/tuxcap-build' make: *** [all] Error 2 In order for it to compile I had to force it to look for the shared library with this variable -DPYTHON_LIBRARY:PATH=/usr/lib/libpython2.5.so. Am I missing something why Cmake isn't finding the shared library or is the logic to find shared libraries just not built into the CMakeLists.txt. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=709544 |
From: SourceForge.net <no...@so...> - 2009-06-19 17:52:59
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7454060 By: wpvanpaassen Hi, Thanks for reporting this. What distribution and version are you running? Could you list the content of your /usr/lib/python2.5/config directory. I would also like to see the output of running a fresh cmake .. in the build directory. btw, what version of cmake do you use? It seems to me your /usr/lib/python2.5/config directory is missing the .so file and because of that the .a file is used for linking. The undefined references are part of libutil. So could you try building it again without the -DPYTHON_LIBRARY:PATH setting and with adding -lutil. Let me know if this works so I can add the fix. Cheers WP ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=709544 |
From: SourceForge.net <no...@so...> - 2009-06-19 22:45:34
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7454446 By: larryhaja Ok, so I'll try to answer your questions the best I can. > What distribution and version are you running? Slackware 12.2 > btw, what version of cmake do you use? # cmake --version cmake version 2.6-patch 2 (ie. 2.6.2) > Could you list the content of your /usr/lib/python2.5/config directory. # ls -l /usr/lib/python2.5/config/* -rw-r--r-- 1 root root 38795 2008-09-11 11:43 /usr/lib/python2.5/config/Makefile -rw-r--r-- 1 root root 17862 2008-09-11 11:43 /usr/lib/python2.5/config/Setup -rw-r--r-- 1 root root 368 2008-09-11 11:43 /usr/lib/python2.5/config/Setup.config -rw-r--r-- 1 root root 41 2008-09-11 11:43 /usr/lib/python2.5/config/Setup.local -rw-r--r-- 1 root root 2078 2008-09-11 11:43 /usr/lib/python2.5/config/config.c -rw-r--r-- 1 root root 1446 2008-09-11 11:43 /usr/lib/python2.5/config/config.c.in -rwxr-xr-x 1 root root 7122 2008-09-11 11:43 /usr/lib/python2.5/config/install-sh -rw-r--r-- 1 root root 1917770 2008-09-11 11:43 /usr/lib/python2.5/config/libpython2.5.a -rwxr-xr-x 1 root root 7431 2008-09-11 11:43 /usr/lib/python2.5/config/makesetup -rw-r--r-- 1 root root 1040 2008-09-11 11:43 /usr/lib/python2.5/config/python.o > The undefined references are part of libutil. So could you try building it again without the -DPYTHON_LIBRARY:PATH setting and with adding -lutil. Yes, I saw a post for the error I posted and adding -lutil worked for that person. The problem is I don't know what variable should be passed to cmake to include -lutil. I added -lutil to my custom C(XX)FLAGS and that seemed to work as it compiled fine. But, I'm not that familure with cmake so I just tried a few things until it worked. >I would also like to see the output of running a fresh cmake .. in the build directory. Not exactly sure what you're referring too. Did you want a log file of the build process, the configure process, or both?!?!? Or is there a log file that Cmake outputs too? On a side note, it doesn't look like libtuxcap has support for lib64 or using the variable LIB_SUFFIX. I added LIB_SUFFIX to tuxcap/lib/CMakeLists.txt by adding it to these lines. INSTALL(TARGETS tuxcap tuxcap_static LIBRARY DESTINATION lib${LIB_SUFFIX} ARCHIVE DESTINATION lib${LIB_SUFFIX} ) Adding LIB_SUFFIX to these lines allowed the libraries to be installed to /usr/lib64. I'm not sure if this is the appropriate place for that variable but it seemed to work. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=709544 |
From: SourceForge.net <no...@so...> - 2009-06-20 05:49:25
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7454701 By: wpvanpaassen Thanks for the feedback. I will add your fixes to the build cheers WP ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=709544 |