PDA

View Full Version : [Solved] kde4 errors on install (FreeBSD8)


wonslung
June 29th, 2009, 07:40
i was trying to install kde4 on FreeBSD 8. I know 8 isn't currently "supported" but i was wondering if anyone know what these errors are and how to fix them.
[ 67%] Built target kcm_usb_automoc
[ 67%] Building CXX object apps/kinfocenter/usbview/CMakeFiles/kcm_usb.dir/kcmusb.o
In file included from /usr/ports/x11/kdebase4/work/kdebase-4.2.4/apps/kinfocenter/usbview/usbdevices.h:20,
from /usr/ports/x11/kdebase4/work/kdebase-4.2.4/apps/kinfocenter/usbview/kcmusb.cpp:27:
/usr/include/dev/usb/usb_revision.h:33: error: multiple definition of 'enum usb_dev_speed'
/usr/include/dev/usb/usb.h:686: error: previous definition here
/usr/include/dev/usb/usb_revision.h:34: error: conflicting declaration 'USB_SPEED_VARIABLE'
/usr/include/dev/usb/usb.h:687: error: 'USB_SPEED_VARIABLE' has a previous declaration as 'usb_dev_speed USB_SPEED_VARIABLE'
/usr/include/dev/usb/usb_revision.h:35: error: conflicting declaration 'USB_SPEED_LOW'
/usr/include/dev/usb/usb.h:688: error: 'USB_SPEED_LOW' has a previous declaration as 'usb_dev_speed USB_SPEED_LOW'
/usr/include/dev/usb/usb_revision.h:36: error: conflicting declaration 'USB_SPEED_FULL'
/usr/include/dev/usb/usb.h:689: error: 'USB_SPEED_FULL' has a previous declaration as 'usb_dev_speed USB_SPEED_FULL'
/usr/include/dev/usb/usb_revision.h:37: error: conflicting declaration 'USB_SPEED_HIGH'
/usr/include/dev/usb/usb.h:690: error: 'USB_SPEED_HIGH' has a previous declaration as 'usb_dev_speed USB_SPEED_HIGH'
/usr/include/dev/usb/usb_revision.h:38: error: conflicting declaration 'USB_SPEED_SUPER'
/usr/include/dev/usb/usb.h:691: error: 'USB_SPEED_SUPER' has a previous declaration as 'usb_dev_speed USB_SPEED_SUPER'
/usr/include/dev/usb/usb_revision.h:45: error: multiple definition of 'enum usb_revision'
/usr/include/dev/usb/usb.h:698: error: previous definition here
/usr/include/dev/usb/usb_revision.h:46: error: conflicting declaration 'USB_REV_UNKNOWN'
/usr/include/dev/usb/usb.h:699: error: 'USB_REV_UNKNOWN' has a previous declaration as 'usb_revision USB_REV_UNKNOWN'
/usr/include/dev/usb/usb_revision.h:47: error: conflicting declaration 'USB_REV_PRE_1_0'
/usr/include/dev/usb/usb.h:700: error: 'USB_REV_PRE_1_0' has a previous declaration as 'usb_revision USB_REV_PRE_1_0'
/usr/include/dev/usb/usb_revision.h:48: error: conflicting declaration 'USB_REV_1_0'
/usr/include/dev/usb/usb.h:701: error: 'USB_REV_1_0' has a previous declaration as 'usb_revision USB_REV_1_0'
/usr/include/dev/usb/usb_revision.h:49: error: conflicting declaration 'USB_REV_1_1'
/usr/include/dev/usb/usb.h:702: error: 'USB_REV_1_1' has a previous declaration as 'usb_revision USB_REV_1_1'
/usr/include/dev/usb/usb_revision.h:50: error: conflicting declaration 'USB_REV_2_0'
/usr/include/dev/usb/usb.h:703: error: 'USB_REV_2_0' has a previous declaration as 'usb_revision USB_REV_2_0'
/usr/include/dev/usb/usb_revision.h:51: error: conflicting declaration 'USB_REV_2_5'
/usr/include/dev/usb/usb.h:704: error: 'USB_REV_2_5' has a previous declaration as 'usb_revision USB_REV_2_5'
/usr/include/dev/usb/usb_revision.h:52: error: conflicting declaration 'USB_REV_3_0'
/usr/include/dev/usb/usb.h:705: error: 'USB_REV_3_0' has a previous declaration as 'usb_revision USB_REV_3_0'
/usr/include/dev/usb/usb_revision.h:59: error: multiple definition of 'enum usb_hc_mode'
/usr/include/dev/usb/usb.h:712: error: previous definition here
/usr/include/dev/usb/usb_revision.h:60: error: conflicting declaration 'USB_MODE_HOST'
/usr/include/dev/usb/usb.h:713: error: 'USB_MODE_HOST' has a previous declaration as 'usb_hc_mode USB_MODE_HOST'
/usr/include/dev/usb/usb_revision.h:61: error: conflicting declaration 'USB_MODE_DEVICE'
/usr/include/dev/usb/usb.h:714: error: 'USB_MODE_DEVICE' has a previous declaration as 'usb_hc_mode USB_MODE_DEVICE'
/usr/include/dev/usb/usb_revision.h:62: error: conflicting declaration 'USB_MODE_DUAL'
/usr/include/dev/usb/usb.h:715: error: 'USB_MODE_DUAL' has a previous declaration as 'usb_hc_mode USB_MODE_DUAL'
/usr/include/dev/usb/usb_revision.h:69: error: multiple definition of 'enum usb_dev_state'
/usr/include/dev/usb/usb.h:722: error: previous definition here
/usr/include/dev/usb/usb_revision.h:70: error: conflicting declaration 'USB_STATE_DETACHED'
/usr/include/dev/usb/usb.h:723: error: 'USB_STATE_DETACHED' has a previous declaration as 'usb_dev_state USB_STATE_DETACHED'
/usr/include/dev/usb/usb_revision.h:71: error: conflicting declaration 'USB_STATE_ATTACHED'
/usr/include/dev/usb/usb.h:724: error: 'USB_STATE_ATTACHED' has a previous declaration as 'usb_dev_state USB_STATE_ATTACHED'
/usr/include/dev/usb/usb_revision.h:72: error: conflicting declaration 'USB_STATE_POWERED'
/usr/include/dev/usb/usb.h:725: error: 'USB_STATE_POWERED' has a previous declaration as 'usb_dev_state USB_STATE_POWERED'
/usr/include/dev/usb/usb_revision.h:73: error: conflicting declaration 'USB_STATE_ADDRESSED'
/usr/include/dev/usb/usb.h:726: error: 'USB_STATE_ADDRESSED' has a previous declaration as 'usb_dev_state USB_STATE_ADDRESSED'
/usr/include/dev/usb/usb_revision.h:74: error: conflicting declaration 'USB_STATE_CONFIGURED'
/usr/include/dev/usb/usb.h:727: error: 'USB_STATE_CONFIGURED' has a previous declaration as 'usb_dev_state USB_STATE_CONFIGURED'
*** Error code 1

Stop in /usr/ports/x11/kdebase4/work/kdebase-4.2.4/build.
*** Error code 1

Stop in /usr/ports/x11/kdebase4/work/kdebase-4.2.4/build.
*** Error code 1

Stop in /usr/ports/x11/kdebase4/work/kdebase-4.2.4/build.
*** Error code 1

Stop in /usr/ports/x11/kdebase4.
*** Error code 1

Stop in /usr/ports/x11/kde4.
*** Error code 1

Stop in /usr/ports/x11/kde4.

ericturgeon
June 29th, 2009, 07:54
why you don't try by pkg_add -r kde4.The last version FreeBSD 8.0 current have practically the same package then the port.

wonslung
June 29th, 2009, 09:11
why you don't try by pkg_add -r kde4.The last version FreeBSD 8.0 current have practically the same package then the port.

i tried that first, it didn't work. no pkg_add -r seems to work on my install of freebsd 8

For now, i'll try to build kde3 just in case noone knows what the issue is.

ericturgeon
June 29th, 2009, 16:21
I use FreeBSD 8.0 current. I install gnome 2.26.2 by pkg_add.
post this to freebsd kde mailing list or freebsd curent mailing list.
https://mail.kde.org/mailman/listinfo/kde-freebsd
http://lists.freebsd.org/mailman/listinfo/freebsd-current

BSDKaffee
July 10th, 2009, 04:01
Is your ports tree up to date? This is caused by the new usb stack in -CURRENT. The latest version of the kdebase4 port has patches for -CURRENT as of June 15, 2009.

wonslung
July 10th, 2009, 17:32
yah, it is.

It's the first thing i did, this problem has been solved. sorry for not reporting back

tankist02
July 10th, 2009, 21:29
Updated and rebuilt kernel/world today. Updated ports today. Still got the same error when building x11/kde4:


[ 67%] Building CXX object apps/kinfocenter/usbview/CMakeFiles/kcm_usb.dir/kcmusb.o
cd /home/ports/x11/kdebase4/work/kdebase-4.2.4/build/apps/kinfocenter/usbview && /usr/bin/c++ -D_GNU_SOURCE -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -DKDE_DEFAULT_DEBUG_AREA=1208 -Dkcm_usb_EXPORTS -O2 -pipe -g -fno-strict-aliasing -Woverloaded-virtual -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -DQT_NO_DEBUG -fPIC -I/home/ports/x11/kdebase4/work/kdebase-4.2.4/build/apps/kinfocenter/usbview -I/home/ports/x11/kdebase4/work/kdebase-4.2.4/apps/kinfocenter/usbview -I/home/ports/x11/kdebase4/work/kdebase-4.2.4/build/apps -I/home/ports/x11/kdebase4/work/kdebase-4.2.4/apps/lib/konq -I/home/ports/x11/kdebase4/work/kdebase-4.2.4/build -I/usr/local/kde4/include -I/usr/local/kde4/include/KDE -I/usr/local/include/qt4/QtXmlPatterns -I/usr/local/include/qt4/QtWebKit -I/usr/local/include/qt4/QtHelp -I/usr/local/include/qt4/QtAssistant -I/usr/local/include/qt4/QtDBus -I/usr/local/include/qt4/QtTest -I/usr/local/include/qt4/QtUiTools -I/usr/local/include/qt4/QtScript -I/usr/local/include/qt4/QtSvg -I/usr/local/include/qt4/QtXml -I/usr/local/include/qt4/QtSql -I/usr/local/include/qt4/QtOpenGL -I/usr/local/include/qt4/QtNetwork -I/usr/local/include/qt4/QtDesigner -I/usr/local/include/qt4/Qt3Support -I/usr/local/include/qt4/QtGui -I/usr/local/include/qt4/QtCore -I/usr/local/include/qt4/Qt -I/usr/local/share/qt4/mkspecs/default -I/usr/local/include/qt4 -I/usr/local/include -o CMakeFiles/kcm_usb.dir/kcmusb.o -c /home/ports/x11/kdebase4/work/kdebase-4.2.4/apps/kinfocenter/usbview/kcmusb.cpp
In file included from /home/ports/x11/kdebase4/work/kdebase-4.2.4/apps/kinfocenter/usbview/usbdevices.h:20,
from /home/ports/x11/kdebase4/work/kdebase-4.2.4/apps/kinfocenter/usbview/kcmusb.cpp:27:
/usr/include/dev/usb/usb_revision.h:33: error: multiple definition of 'enum usb_dev_speed'
/usr/include/dev/usb/usb.h:686: error: previous definition here
/usr/include/dev/usb/usb_revision.h:34: error: conflicting declaration 'USB_SPEED_VARIABLE'
/usr/include/dev/usb/usb.h:687: error: 'USB_SPEED_VARIABLE' has a previous declaration as 'usb_dev_speed USB_SPEED_VARIABLE'
/usr/include/dev/usb/usb_revision.h:35: error: conflicting declaration 'USB_SPEED_LOW'
/usr/include/dev/usb/usb.h:688: error: 'USB_SPEED_LOW' has a previous declaration as 'usb_dev_speed USB_SPEED_LOW'
/usr/include/dev/usb/usb_revision.h:36: error: conflicting declaration 'USB_SPEED_FULL'
/usr/include/dev/usb/usb.h:689: error: 'USB_SPEED_FULL' has a previous declaration as 'usb_dev_speed USB_SPEED_FULL'
/usr/include/dev/usb/usb_revision.h:37: error: conflicting declaration 'USB_SPEED_HIGH'
/usr/include/dev/usb/usb.h:690: error: 'USB_SPEED_HIGH' has a previous declaration as 'usb_dev_speed USB_SPEED_HIGH'
/usr/include/dev/usb/usb_revision.h:38: error: conflicting declaration 'USB_SPEED_SUPER'
/usr/include/dev/usb/usb.h:691: error: 'USB_SPEED_SUPER' has a previous declaration as 'usb_dev_speed USB_SPEED_SUPER'
/usr/include/dev/usb/usb_revision.h:45: error: multiple definition of 'enum usb_revision'
/usr/include/dev/usb/usb.h:698: error: previous definition here
/usr/include/dev/usb/usb_revision.h:46: error: conflicting declaration 'USB_REV_UNKNOWN'
/usr/include/dev/usb/usb.h:699: error: 'USB_REV_UNKNOWN' has a previous declaration as 'usb_revision USB_REV_UNKNOWN'
/usr/include/dev/usb/usb_revision.h:47: error: conflicting declaration 'USB_REV_PRE_1_0'
/usr/include/dev/usb/usb.h:700: error: 'USB_REV_PRE_1_0' has a previous declaration as 'usb_revision USB_REV_PRE_1_0'
/usr/include/dev/usb/usb_revision.h:48: error: conflicting declaration 'USB_REV_1_0'
/usr/include/dev/usb/usb.h:701: error: 'USB_REV_1_0' has a previous declaration as 'usb_revision USB_REV_1_0'
/usr/include/dev/usb/usb_revision.h:49: error: conflicting declaration 'USB_REV_1_1'
/usr/include/dev/usb/usb.h:702: error: 'USB_REV_1_1' has a previous declaration as 'usb_revision USB_REV_1_1'
/usr/include/dev/usb/usb_revision.h:50: error: conflicting declaration 'USB_REV_2_0'
/usr/include/dev/usb/usb.h:703: error: 'USB_REV_2_0' has a previous declaration as 'usb_revision USB_REV_2_0'
/usr/include/dev/usb/usb_revision.h:51: error: conflicting declaration 'USB_REV_2_5'
/usr/include/dev/usb/usb.h:704: error: 'USB_REV_2_5' has a previous declaration as 'usb_revision USB_REV_2_5'
/usr/include/dev/usb/usb_revision.h:52: error: conflicting declaration 'USB_REV_3_0'
/usr/include/dev/usb/usb.h:705: error: 'USB_REV_3_0' has a previous declaration as 'usb_revision USB_REV_3_0'
/usr/include/dev/usb/usb_revision.h:59: error: multiple definition of 'enum usb_hc_mode'
/usr/include/dev/usb/usb.h:712: error: previous definition here
/usr/include/dev/usb/usb_revision.h:60: error: conflicting declaration 'USB_MODE_HOST'
/usr/include/dev/usb/usb.h:713: error: 'USB_MODE_HOST' has a previous declaration as 'usb_hc_mode USB_MODE_HOST'
/usr/include/dev/usb/usb_revision.h:61: error: conflicting declaration 'USB_MODE_DEVICE'
/usr/include/dev/usb/usb.h:714: error: 'USB_MODE_DEVICE' has a previous declaration as 'usb_hc_mode USB_MODE_DEVICE'
/usr/include/dev/usb/usb_revision.h:62: error: conflicting declaration 'USB_MODE_DUAL'
/usr/include/dev/usb/usb.h:715: error: 'USB_MODE_DUAL' has a previous declaration as 'usb_hc_mode USB_MODE_DUAL'
/usr/include/dev/usb/usb_revision.h:69: error: multiple definition of 'enum usb_dev_state'
/usr/include/dev/usb/usb.h:722: error: previous definition here
/usr/include/dev/usb/usb_revision.h:70: error: conflicting declaration 'USB_STATE_DETACHED'
/usr/include/dev/usb/usb.h:723: error: 'USB_STATE_DETACHED' has a previous declaration as 'usb_dev_state USB_STATE_DETACHED'
/usr/include/dev/usb/usb_revision.h:71: error: conflicting declaration 'USB_STATE_ATTACHED'
/usr/include/dev/usb/usb.h:724: error: 'USB_STATE_ATTACHED' has a previous declaration as 'usb_dev_state USB_STATE_ATTACHED'
/usr/include/dev/usb/usb_revision.h:72: error: conflicting declaration 'USB_STATE_POWERED'
/usr/include/dev/usb/usb.h:725: error: 'USB_STATE_POWERED' has a previous declaration as 'usb_dev_state USB_STATE_POWERED'
/usr/include/dev/usb/usb_revision.h:73: error: conflicting declaration 'USB_STATE_ADDRESSED'
/usr/include/dev/usb/usb.h:726: error: 'USB_STATE_ADDRESSED' has a previous declaration as 'usb_dev_state USB_STATE_ADDRESSED'
/usr/include/dev/usb/usb_revision.h:74: error: conflicting declaration 'USB_STATE_CONFIGURED'
/usr/include/dev/usb/usb.h:727: error: 'USB_STATE_CONFIGURED' has a previous declaration as 'usb_dev_state USB_STATE_CONFIGURED'
*** Error code 1

Stop in /home/ports/x11/kdebase4/work/kdebase-4.2.4/build.
*** Error code 1

Stop in /home/ports/x11/kdebase4/work/kdebase-4.2.4/build.
*** Error code 1

Stop in /home/ports/x11/kdebase4/work/kdebase-4.2.4/build.
*** Error code 1

Stop in /home/ports/x11/kdebase4.
*** Error code 1

Stop in /home/ports/x11/kdebase4.
*** Error code 1

Stop in /home/ports/x11/kde4.
*** Error code 1

Stop in /home/ports/x11/kde4.



Would appreciate any help.

wonslung
July 11th, 2009, 12:17
i couldn't figure out what was causing this issue to be honest, but i did know that installs on other machines seemed to work so i just reinstalled and tried to be more careful....i'm not sure what went wrong but on the reinstall everything worked fine.


if it helps, the method i used was to install a minimal install, then download new sources from 7-stable, rebuild them (as explained in the handbook)

At that point i installed xorg. Then i put dbus and hald in my /etc/rc.conf like the handbook said to do. I used the xorg configure command, as listed in the handbook then i rebooted.

after that i installed kde4 from ports, it took awhile but when it was done i just added /usr/local/kde4/bin/kdm to /etc/ttys like it says to in the handbook and it worked.

The only thing that is weird, on a couple installs like that i ended up with a /var/run that was set to 700 which made it where no users but root could run anything, it was easy enough to fix with chmod though.

tankist02
July 16th, 2009, 00:00
I found that I missed running

make clean-old

when rebuilding/reinstalling world.

That fixed the error of having duplicate usb related headers.