[mingw] errors

Peter Kümmel syntheticpp at gmx.net
Thu Mar 2 19:08:43 CET 2006


Paulo Jorge Guedes wrote:
> Hi,
> 
> Some errors:
> 
> 1.
> d:/kde/trunk/kdelibs/kioslave/ftp/ftp.cc: In member function `bool
> Ftp::ftpReadDir(FtpEntry&)':
> d:/kde/trunk/kdelibs/kioslave/ftp/ftp.cc:1605: error: `S_IFSOCK'
> undeclared (first use this function)
> d:/kde/trunk/kdelibs/kioslave/ftp/ftp.cc:1605: error: (Each undeclared
> identifier is reported only once for each function it appears in.)
> make[2]: *** [kioslave/ftp/CMakeFiles/kio_ftp.dir/ftp.obj] Error 1
> 
> Looked at sys/stat.h and S_IFSOCK is indeed not declared (S_IFDIR, etc,
> are).
> 

Is you kdewin32 installation up to date?
S_IFSOCK is defined in win/include/wingw/sys/stat.h:

http://websvn.kde.org/trunk/KDE/kdelibs/win/include/mingw/sys/stat.h?rev=511668&view=markup

> 2.
> Info: resolving vtable for KStyleby linking to __imp___ZTV6KStyle
> (auto-import)
> CMakeFiles/keramik.dir/keramik.obj(.text$_ZN12KeramikStyleD1Ev[KeramikSt
> yle::~KeramikStyle()]+0x49): In function `qt_plugin_instance':
> d:/kde/trunk/kdelibs/kstyles/keramik/keramik.cpp:657: variable 'vtable
> for KStyle' can't be auto-imported. Please read the documentation for
> ld's --enable-auto-import for details.
> CMakeFiles/keramik.dir/keramik.obj(.text$_ZN12KeramikStyleD0Ev[KeramikSt
> yle::~KeramikStyle()]+0x4e):d:/kde/trunk/kdelibs/kstyles/keramik/keramik
> .cpp:657: variable 'vtable for KStyle' can't be auto-imported. Please
> read the documentation for ld's --enable-auto-import for details.
> CMakeFiles/keramik.dir/keramik.obj(.text$_ZN13KStyleFactoryI12KeramikSty
> leE6createERK7QString[KStyleFactory<KeramikStyle>::create(QString
> const&)]+0x5c0):d:/kde/trunk/kdelibs/kstyles/keramik/keramik.cpp:657:
> variable 'vtable for KStyle' can't be auto-imported. Please read the
> documentation for ld's --enable-auto-import for details.
> collect2: ld returned 1 exit status
> 
> No comments :)
> 
> 3. 
> d:/kde/trunk/kdelibs/kinit/kinit.cpp: In function `pid_t launch(int,
> const char*, const char*, const char*, int, const char*, bool, const
> char*, bool, const char*)':
> d:/kde/trunk/kdelibs/kinit/kinit.cpp:404: error: `socketpair' undeclared
> (first use this function)
> d:/kde/trunk/kdelibs/kinit/kinit.cpp:404: error: (Each undeclared
> identifier is reported only once for each function it appears in.)
> d:/kde/trunk/kdelibs/kinit/kinit.cpp: In function `void init_signals()':
> d:/kde/trunk/kdelibs/kinit/kinit.cpp:757: error: aggregate `sigaction
> act' has incomplete type and cannot be defined
> d:/kde/trunk/kdelibs/kinit/kinit.cpp:785: error: `sigemptyset'
> undeclared (first use this function)
> d:/kde/trunk/kdelibs/kinit/kinit.cpp:786: error: `sigaddset' undeclared
> (first use this function)
> d:/kde/trunk/kdelibs/kinit/kinit.cpp:787: error: `SIG_UNBLOCK'
> undeclared (first use this function)
> d:/kde/trunk/kdelibs/kinit/kinit.cpp:787: error: `sigprocmask'
> undeclared (first use this function)
> d:/kde/trunk/kdelibs/kinit/kinit.cpp:788: error: `SA_NOCLDSTOP'
> undeclared (first use this function)
> d:/kde/trunk/kdelibs/kinit/kinit.cpp:796: error: invalid use of
> undefined type `struct sigaction'
> d:/kde/trunk/kdelibs/kinit/kinit.cpp:757: error: forward declaration of
> `struct sigaction'
> d:/kde/trunk/kdelibs/kinit/kinit.cpp:803: error: invalid use of
> undefined type `struct sigaction'
> d:/kde/trunk/kdelibs/kinit/kinit.cpp:757: error: forward declaration of
> `struct sigaction'
> make[2]: *** [kinit/CMakeFiles/kdeinit.dir/kinit.obj] Error 1
> make[2]: Leaving directory `/d/kde/trunk/kdelibs'
> 
> AFAIK, windows doesn't support socketpair...
> 
> Paulo

kinit also does not compile with msvc.

Peter


More information about the Kde-buildsystem mailing list