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

Bug#565859: libguytools1: libguytoolsysinfo.so fails to build: sprintf not declared



Package: libguytools1
Version: 1.0.4-1
Severity: important
Tags: patch
Justification: fails to build from source


https://bugs.launchpad.net/ubuntu/+source/libguytools1/+bug/509450


Binary package hint: libguytools1

libguytoolsysinfo.so (one of the libraries built by this package) fails to build:

make[1]: Entering directory `/tmp/buildd/libguytools1-1.0.4/sysinfo'
g++ -c -pipe -O2 -O3 -D_REENTRANT -Wall -W -fmessage-length=0 -fPIC -DLIBGUYTOOLS_VERSION=\"1.0.4\" -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../include -I. -o toolsysinfo.o toolsysinfo.cpp
toolsysinfo.cpp: In function 'APIRET ToolSysInfoGetMacAddr(t_ToolSysInfoMacAddr*)':
toolsysinfo.cpp:90: error: 'sprintf' was not declared in this scope
make[1]: *** [toolsysinfo.o] Error 1
make[1]: Leaving directory `/tmp/buildd/libguytools1-1.0.4/sysinfo'

However, this qmake-qt4-based build continues anyway and completes "successfully", just omitting the broken libguytoolsysinfo.so library. Packages which depend on libguytools1 for this library will therefore FTBFS, e.g. package 'guymager' http://launchpadlibrarian.net/35999162/buildlog_ubuntu-lucid-amd64.guymager_0.4.2-1_FAILEDTOBUILD.txt.gz :

   [guymager...FAILEDTOBUILD.txt.gz]: /usr/bin/ld: cannot find -lguytoolsysinfo


Attached patch adds the missing #include <stdio.h> to fix the problem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0000.libguytoolsysinfo_incl_stdio.patch
Type: text/x-c
Size: 584 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/forensics-devel/attachments/20100118/4b4f4477/attachment.bin>


Reply to: