View Issue Details

IDProjectCategoryView StatusLast Update
0009311ScribusBuild Systempublic2010-08-10 20:51
ReporterTimH Assigned Tocbradney  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Platformi386OSOpenBSDOS Version4.8-beta
Product Version1.3.8 
Fixed in Version1.3.9.svn 
Summary0009311: Compilation fails when embedding Python (I think)
Description/usr/local/lib/libpython2.5.so.1.0: warning: tmpnam() possibly used unsafely; consider using mkstemp()
/usr/local/lib/libpython2.5.so.1.0: warning: tempnam() possibly used unsafely; consider using mkstemp()
/usr/local/lib/qt4/libQtCore.so.8.0: warning: strcpy() is almost always misused, please use strlcpy()
/usr/local/lib/qt4/libQtNetwork.so.8.0: warning: sprintf() is often misused, please use snprintf()
/usr/X11R6/lib/libfreetype.so.17.1: warning: strcat() is almost always misused, please use strlcat()
/usr/local/lib/libglib-2.0.so.1803.0: warning: vsprintf() is often misused, please use vsnprintf()
CMakeFiles/scribus.dir/util.cpp.o(.text+0x2b57): In function `printBacktrace(int)':
: undefined reference to `backtrace'
CMakeFiles/scribus.dir/util.cpp.o(.text+0x2b69): In function `printBacktrace(int)':
: undefined reference to `backtrace_symbols'
/usr/local/lib/libpython2.5.so.1.0: undefined reference to `openpty'
/usr/local/lib/libpython2.5.so.1.0: undefined reference to `forkpty'
collect2: ld returned 1 exit status
*** Error code 1
Steps To ReproduceBefore getting to this point, you must first work around linking to dl. This can be done by commenting out the line:

TARGET_LINK_LIBRARIES(${EXE_NAME} dl)

Or by replacing that block with:

IF(UNIX AND NOT CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
  TARGET_LINK_LIBRARIES(${EXE_NAME} dl)
ENDIF(UNIX)

see bug 0009310
Additional InformationIt appears as if this error can be avoided by linking to libutil. I discovered this fix by searching google for similar errors.

If I add a line like TARGET_LINK_LIBRARIES(${EXE_NAME} util) to CMakeLists.txt this particular error appears to be solved, but compilation still fails like so:

/usr/local/lib/libpython2.5.so.1.0: warning: tmpnam() possibly used unsafely; consider using mkstemp()
/usr/local/lib/libpython2.5.so.1.0: warning: tempnam() possibly used unsafely; consider using mkstemp()
/usr/local/lib/qt4/libQtCore.so.8.0: warning: strcpy() is almost always misused, please use strlcpy()
/usr/local/lib/qt4/libQtNetwork.so.8.0: warning: sprintf() is often misused, please use snprintf()
/usr/X11R6/lib/libfreetype.so.17.1: warning: strcat() is almost always misused, please use strlcat()
/usr/local/lib/libglib-2.0.so.1803.0: warning: vsprintf() is often misused, please use vsnprintf()
CMakeFiles/scribus.dir/util.cpp.o(.text+0x2b57): In function `printBacktrace(int)':
: undefined reference to `backtrace'
CMakeFiles/scribus.dir/util.cpp.o(.text+0x2b69): In function `printBacktrace(int)':
: undefined reference to `backtrace_symbols'
collect2: ld returned 1 exit status
*** Error code 1
TagsNo tags attached.
Patch

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2010-08-03 23:05 TimH New Issue
2010-08-04 22:10 cbradney Status new => resolved
2010-08-04 22:10 cbradney Fixed in Version => 1.3.9.svn
2010-08-04 22:10 cbradney Resolution open => fixed
2010-08-04 22:10 cbradney Assigned To => cbradney
2010-08-10 20:51 cbradney Status resolved => closed