Building problems in trunk/kdebase
Andreas Pakulat
apaku at gmx.de
Thu Nov 30 22:08:35 GMT 2006
On 30.11.06 21:57:50, Alexander Neundorf wrote:
> On Tuesday 28 November 2006 18:55, Andreas Pakulat wrote:
> > seems today is not my lucky day. First I had compilation problems in
> > workspace/kcontrol/input. For some reason the buildsystem thought I
> > would've libusb installed, while I didn't (actually the library is
> > installed, but not the -dev package), thus compilation of the
> > logitechmouse support failed due to missing headers.
>
> Please post the error message.
[ 0%] Building CXX object workspace/kcontrol/input/CMakeFiles/kcm_input.dir/mouse.o
/usr/bin/c++ -Dkcm_input_EXPORTS -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -fno-exceptions -fno-check-new -fno-common -g3 -fno-inline -fPIC -I/home/kdedev4/kdebase_build/workspace/kcontrol/input -I/home/andreas/KDE-work/4.0/kdebase/workspace/kcontrol/input -I/home/andreas/KDE-work/4.0/kdebase -I/home/kdedev4/kdebase_build -I/home/kdedev4/kdebase_build/workspace/kicker/libkicker -I/home/andreas/KDE-work/4.0/kdebase/workspace/kicker/libkicker -I/home/andreas/KDE-work/4.0/kdebase/workspace/lib -I/home/andreas/KDE-work/4.0/kdebase/libkonq -I/home/kdedev4/kdebase_build/workspace -I/home/andreas/KDE-work/4.0/kdebase/workspace/kcontrol/background -I/home/andreas/KDE-work/4.0/kdebase/workspace/kcontrol/input/xcursor -I/home/kdedev4/qt4.2/include -I/home/kdedev4/qt4.2/include/Qt -I/home/kdedev4/qt4.2/mkspecs/default -I/home/kdedev4/qt4.2/include/QtCore -I/home/kdedev4/qt4.2/include/QtGui -I/home/kdedev4/qt4.2/include/Qt3Support -I/home/kdedev4/qt4.2/include/QtAssistant -I/home/kdedev4/qt4.2/include/QtDesigner -I/home/kdedev4/qt4.2/include/QtNetwork -I/home/kdedev4/qt4.2/include/QtOpenGL -I/home/kdedev4/qt4.2/include/QtSql -I/home/kdedev4/qt4.2/include/QtXml -I/home/kdedev4/qt4.2/include/QtSvg -I/home/kdedev4/qt4.2/include/QtUiTools -I/home/kdedev4/qt4.2/include/QtTest -I/home/kdedev4/qt4.2/include/QtDBus -I/home/kdedev4/kde4/include -I/home/kdedev4/kde4/include/KDE -I/usr/local/include -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_GNU_SOURCE -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -DQT3_SUPPORT -DHAVE_CONFIG_H=1 -o workspace/kcontrol/input/CMakeFiles/kcm_input.dir/mouse.o -c /home/andreas/KDE-work/4.0/kdebase/workspace/kcontrol/input/mouse.cpp
In file included from /home/andreas/KDE-work/4.0/kdebase/workspace/kcontrol/input/mouse.h:49,
from /home/andreas/KDE-work/4.0/kdebase/workspace/kcontrol/input/mouse.cpp:69:
/home/andreas/KDE-work/4.0/kdebase/workspace/kcontrol/input/logitechmouse.h:37:17: error: usb.h: No such file or directory
/home/andreas/KDE-work/4.0/kdebase/workspace/kcontrol/input/mouse.cpp:730:2: warning: #warning was key == NULL how was this working? is key.isNull() what the coder meant?
/home/andreas/KDE-work/4.0/kdebase/workspace/kcontrol/input/mouse.cpp: In constructor ‘MouseConfig::MouseConfig(QWidget*, const QStringList&)’:
/home/andreas/KDE-work/4.0/kdebase/workspace/kcontrol/input/mouse.cpp:407: error: ‘usb_init’ was not declared in this scope
/home/andreas/KDE-work/4.0/kdebase/workspace/kcontrol/input/mouse.cpp:408: error: ‘usb_find_busses’ was not declared in this scope
/home/andreas/KDE-work/4.0/kdebase/workspace/kcontrol/input/mouse.cpp:409: error: ‘usb_find_devices’ was not declared in this scope
/home/andreas/KDE-work/4.0/kdebase/workspace/kcontrol/input/mouse.cpp:414: error: ‘usb_busses’ was not declared in this scope
/home/andreas/KDE-work/4.0/kdebase/workspace/kcontrol/input/mouse.cpp:414: error: invalid use of undefined type ‘struct usb_bus’
/home/andreas/KDE-work/4.0/kdebase/workspace/kcontrol/input/mouse.cpp:411: error: forward declaration of ‘struct usb_bus’
/home/andreas/KDE-work/4.0/kdebase/workspace/kcontrol/input/mouse.cpp:415: error: invalid use of undefined type ‘struct usb_bus’
/home/andreas/KDE-work/4.0/kdebase/workspace/kcontrol/input/mouse.cpp:411: error: forward declaration of ‘struct usb_bus’
/home/andreas/KDE-work/4.0/kdebase/workspace/kcontrol/input/mouse.cpp:415: error: invalid use of undefined type ‘struct usb_device’
/home/andreas/KDE-work/4.0/kdebase/workspace/kcontrol/input/logitechmouse.h:61: error: forward declaration of ‘struct usb_device’
/home/andreas/KDE-work/4.0/kdebase/workspace/kcontrol/input/mouse.cpp:417: error: invalid use of undefined type ‘struct usb_device’
/home/andreas/KDE-work/4.0/kdebase/workspace/kcontrol/input/logitechmouse.h:61: error: forward declaration of ‘struct usb_device’
/home/andreas/KDE-work/4.0/kdebase/workspace/kcontrol/input/mouse.cpp:418: error: invalid use of undefined type ‘struct usb_device’
/home/andreas/KDE-work/4.0/kdebase/workspace/kcontrol/input/logitechmouse.h:61: error: forward declaration of ‘struct usb_device’
make[2]: *** [workspace/kcontrol/input/CMakeFiles/kcm_input.dir/mouse.o] Error 1
make[2]: Leaving directory `/home/kdedev4/kdebase_build'
make[1]: *** [workspace/kcontrol/input/CMakeFiles/kcm_input.dir/all] Error 2
make[1]: Leaving directory `/home/kdedev4/kdebase_build'
make: *** [all] Error 2
> Use ccmake to find out which values LIBUSB_INCLUDE_DIR and LIBUSB_LIBRARY have
> (you can also grep CMakeCache.txt for that).
LIBUSB_INCLUDE_DIR is /usr/include
LIBUSB_LIBRARY is /usr/lib/libusb.so
> > Ok, as I have no idea how to fix that, I installed libusb-dev and reran
> > cmake. Next stop is in workspace/kcheckpass which thinks I have
> > pam-development packages installed. But I don't.
>
> Same as above, please post the complete error message.
There you go, although I'm not quite sure why you need that...
Building C object workspace/kcheckpass/CMakeFiles/kcheckpass.dir/checkpass_pam.o
/usr/bin/gcc -Wno-long-long -ansi -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common -g3 -fno-inline -I/home/kdedev4/kdebase_build/workspace/kcheckpass -I/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass -I/home/andreas/KDE-work/4.0/kdebase -I/home/kdedev4/kdebase_build -I/home/kdedev4/kdebase_build/workspace/kicker/libkicker -I/home/andreas/KDE-work/4.0/kdebase/workspace/kicker/libkicker -I/home/andreas/KDE-work/4.0/kdebase/workspace/lib -I/home/andreas/KDE-work/4.0/kdebase/libkonq -I/home/kdedev4/kdebase_build/workspace -I/home/kdedev4/qt4.2/include -I/home/kdedev4/qt4.2/include/Qt -I/home/kdedev4/qt4.2/mkspecs/default -I/home/kdedev4/qt4.2/include/QtCore -I/home/kdedev4/qt4.2/include/QtGui -I/home/kdedev4/qt4.2/include/Qt3Support -I/home/kdedev4/qt4.2/include/QtAssistant -I/home/kdedev4/qt4.2/include/QtDesigner -I/home/kdedev4/qt4.2/include/QtNetwork -I/home/kdedev4/qt4.2/include/QtOpenGL -I/home/kdedev4/qt4.2/include/QtSql -I/home/kdedev4/qt4.2/include/QtXml -I/home/kdedev4/qt4.2/include/QtSvg -I/home/kdedev4/qt4.2/include/QtUiTools -I/home/kdedev4/qt4.2/include/QtTest -I/home/kdedev4/qt4.2/include/QtDBus -I/home/kdedev4/kde4/include -I/home/kdedev4/kde4/include/KDE -I/usr/local/include -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_GNU_SOURCE -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -DQT3_SUPPORT -DHAVE_CONFIG_H=1 -U_REENTRANT -o workspace/kcheckpass/CMakeFiles/kcheckpass.dir/checkpass_pam.o -c /home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:31:31: error: security/pam_appl.h: No such file or directory
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:51: warning: ‘struct pam_response’ declared inside parameter list
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:51: warning: its scope is only this definition or declaration, which is probably not what you want
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c: In function ‘PAM_conv’:
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:57: error: invalid application of ‘sizeof’ to incomplete type ‘struct pam_response’
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:58: error: ‘PAM_CONV_ERR’ undeclared (first use in this function)
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:58: error: (Each undeclared identifier is reported only once
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:58: error: for each function it appears in.)
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:61: error: dereferencing pointer to incomplete type
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:62: error: ‘PAM_TEXT_INFO’ undeclared (first use in this function)
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:63: error: dereferencing pointer to incomplete type
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:65: error: ‘PAM_ERROR_MSG’ undeclared (first use in this function)
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:66: error: dereferencing pointer to incomplete type
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:69: error: dereferencing pointer to incomplete type
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:70: error: ‘PAM_PROMPT_ECHO_ON’ undeclared (first use in this function)
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:71: error: invalid use of undefined type ‘struct pam_response’
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:71: error: dereferencing pointer to incomplete type
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:71: error: dereferencing pointer to incomplete type
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:73: error: ‘PAM_PROMPT_ECHO_OFF’ undeclared (first use in this function)
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:74: error: invalid use of undefined type ‘struct pam_response’
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:74: error: dereferencing pointer to incomplete type
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:75: error: dereferencing pointer to incomplete type
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:86: error: invalid use of undefined type ‘struct pam_response’
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:86: error: dereferencing pointer to incomplete type
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:90: error: invalid use of undefined type ‘struct pam_response’
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:90: error: dereferencing pointer to incomplete type
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:90: error: ‘PAM_SUCCESS’ undeclared (first use in this function)
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:98: error: invalid use of undefined type ‘struct pam_response’
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:98: error: dereferencing pointer to incomplete type
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:99: error: dereferencing pointer to incomplete type
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:101: error: invalid use of undefined type ‘struct pam_response’
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:101: error: dereferencing pointer to incomplete type
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:107: error: invalid use of undefined type ‘struct pam_response’
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:107: error: dereferencing pointer to incomplete type
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:112: warning: control reaches end of non-void function
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c: At top level:
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:116: error: variable ‘PAM_conversation’ has initializer but incomplete type
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:117: warning: excess elements in struct initializer
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:117: warning: (near initialization for ‘PAM_conversation’)
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:119: warning: excess elements in struct initializer
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:119: warning: (near initialization for ‘PAM_conversation’)
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c: In function ‘Authenticate’:
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:133: error: ‘pam_handle_t’ undeclared (first use in this function)
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:133: error: ‘pamh’ undeclared (first use in this function)
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:147: error: implicit declaration of function ‘pam_start’
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:148: error: ‘PAM_SUCCESS’ undeclared (first use in this function)
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:155: error: implicit declaration of function ‘pam_set_item’
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:155: error: ‘PAM_TTY’ undeclared (first use in this function)
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:157: error: implicit declaration of function ‘pam_end’
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:165: error: implicit declaration of function ‘pam_authenticate’
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:169: error: ‘PAM_USER_UNKNOWN’ undeclared (first use in this function)
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:170: error: ‘PAM_AUTH_ERR’ undeclared (first use in this function)
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:171: error: ‘PAM_MAXTRIES’ undeclared (first use in this function)
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:172: error: ‘PAM_AUTHINFO_UNAVAIL’ undeclared (first use in this function)
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:180: error: implicit declaration of function ‘pam_get_item’
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:180: error: ‘PAM_USER’ undeclared (first use in this function)
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:190: error: implicit declaration of function ‘pam_setcred’
/home/andreas/KDE-work/4.0/kdebase/workspace/kcheckpass/checkpass_pam.c:190: error: ‘PAM_REFRESH_CRED’ undeclared (first use in this function)
make[2]: *** [workspace/kcheckpass/CMakeFiles/kcheckpass.dir/checkpass_pam.o] Error 1
make[2]: Leaving directory `/home/kdedev4/kdebase_build'
make[1]: *** [workspace/kcheckpass/CMakeFiles/kcheckpass.dir/all] Error 2
make[1]: Leaving directory `/home/kdedev4/kdebase_build'
make: *** [all] Error 2
> There are checks, but it seems the results are not used everywhere.
Same as above, /usr/include and /usr/lib/libpam.so.
Andreas
--
You may be gone tomorrow, but that doesn't mean that you weren't here today.
More information about the kde-core-devel
mailing list