[Konversation-devel] [Bug 112749] New: Compile error on Solaris 2.9 in dcctransfersend.cpp (fix included)

Bernd Kuhls bernd.kuhls at informatik.uni-oldenburg.de
Fri Sep 16 18:51:57 CEST 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=112749         
           Summary: Compile error on Solaris 2.9 in dcctransfersend.cpp (fix
                    included)
           Product: konversation
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Solaris
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: konversation-devel kde org
        ReportedBy: bernd.kuhls informatik uni-oldenburg de


Version:           0.18 (using KDE KDE 3.4.2)
Installed from:    Compiled From Sources
Compiler:          gcc 3.3.5 
OS:                Solaris

if g++ -DHAVE_CONFIG_H -I. -I. -I../..  -Ilinkaddressbook -I./linkaddressbook -I/usr/local/KDE-3.4.2/include -I/usr/local/qt-050201/include    -DQT_THREAD_SUPPORT  -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wno-non-virtual-dtor -O2 -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT  -MT dcctransfersend.o -MD -MP -MF ".deps/dcctransfersend.Tpo" -c -o dcctransfersend.o dcctransfersend.cpp; \
then mv -f ".deps/dcctransfersend.Tpo" ".deps/dcctransfersend.Po"; else rm -f ".deps/dcctransfersend.Tpo"; exit 1; fi
dcctransfersend.cpp: In constructor `
   DccTransferSend::DccTransferSend(DccPanel*, const QString&, const KURL&,
   const QString&, const QString&, unsigned int)':
dcctransfersend.cpp:68: error: `SIOCGIFADDR' undeclared (first use this
   function)
dcctransfersend.cpp:68: error: (Each undeclared identifier is reported only
   once for each function it appears in.)
dcctransfersend.cpp:68: error: `ioctl' undeclared (first use this function)
make[4]: *** [dcctransfersend.o] Error 1

Including these lines on top of the file fixes the problem, Konversation works fine on Solaris/Sparc:

#include <unistd.h>
#include <sys/sockio.h>


More information about the Konversation-devel mailing list