Subject: Re: problems compiling kdelibs3
To: Hisashi T Fujinaka <htodd@twofifty.com>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: current-users
Date: 08/17/2002 20:31:37
Oh yeah, encountered this too. struct utmpx uses struct sockaddr_storage,
which isn't defined if _XOPEN_SOURCE is defined (which some software
apparently does define). I'm not sure what is the correct fix to this,
but I just removed the

#if !defined(_XOPEN_SOURCE) || (_XOPEN_SOURCE - 0) >= 500
#endif

around struct sockaddr_storage definition in my <sys/socket.h>
for now.

Jaromir 

Hisashi T Fujinaka wrote:
> c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../kio/ -I../dcop -I../libltdl
> -I../kdecore -I../kdeui -I../kio -I../kio/kio -I../kio/kfile
> -I/usr/obj/pkg/x11/kdelibs3/work/.buildlink/qt3/include
> -I/usr/pkg/share/x11-links/include
> -I/usr/obj/pkg/x11/kdelibs3/work/.buildlink/include
> -I/usr/obj/pkg/x11/kdelibs3/work/.buildlink/include
> -I/usr/pkg/share/x11-links/include -pthread -DQT_THREAD_SUPPORT
> -I/usr/obj/pkg/x11/kdelibs3/work/.buildlink/include
> -I/usr/pkg/share/x11-links/include
> -I/usr/obj/pkg/x11/kdelibs3/work/.buildlink/include -O2
> -I/usr/obj/pkg/x11/kdelibs3/work/.buildlink/include
> -I/usr/obj/pkg/x11/kdelibs3/work/.buildlink/include -O2
> -I/usr/pkg/share/x11-links/include -fno-exceptions -fno-check-new
> -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT
> -c kdesu_pty.cpp -Wp,-MD,.deps/kdesu_pty.TPlo  -fPIC -DPIC -o
> .libs/kdesu_pty.o
> c++: unrecognized option `-pthread'
> In file included from /usr/include/util.h:46,
>                  from kdesu_pty.cpp:82:
> /usr/include/utmpx.h:98: field `ut_ss' has incomplete type
> gmake[2]: *** [kdesu_pty.lo] Error 1
> gmake[2]: Leaving directory
> `/usr/obj/pkg/x11/kdelibs3/work/kdelibs-3.0.2/kdesu'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/usr/obj/pkg/x11/kdelibs3/work/kdelibs-3.0.2'
> gmake: *** [all] Error 2
> *** Error code 2
> 
> Stop.
> make: stopped in /usr/pkgsrc/x11/kdelibs3
> *** Error code 1
> 
> Stop.
> 
> 
> -- 
> Hisashi T Fujinaka - htodd@twofifty.com
> BSEE (6/86) + BSChem (3/95) + BAEnglish (8/95) + $2.50 = mocha latte
> 


-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.org/
-=- We should be mindful of the potential goal, but as the tantric    -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow.   Do not let this distract you.''     -=-