Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102497 - KTrafficAnalyzer (new package)
Summary: KTrafficAnalyzer (new package)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://www.kde-apps.org/content/show....
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2005-08-14 07:55 UTC by Christian Hartmann (RETIRED)
Modified: 2006-06-21 22:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
net-analyzer/ktrafficanalyzer-0.3.1.ebuild (ktrafficanalyzer-0.3.1.ebuild,837 bytes, text/plain)
2005-08-14 07:57 UTC, Christian Hartmann (RETIRED)
Details
net-analyzer/ktrafficanalyzer-0.3.3.ebuild (ktrafficanalyzer-0.3.3.ebuild,756 bytes, text/plain)
2006-05-16 09:43 UTC, Christian Lemke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Hartmann (RETIRED) gentoo-dev 2005-08-14 07:55:17 UTC
Ebuild for KTrafficAnalyzer.
Comment 1 Christian Hartmann (RETIRED) gentoo-dev 2005-08-14 07:57:25 UTC
Created attachment 65931 [details]
net-analyzer/ktrafficanalyzer-0.3.1.ebuild

Attached net-analyzer/ktrafficanalyzer-0.3.1.ebuild
Comment 2 Ciaran McCreesh 2005-08-18 11:46:43 UTC
Please fix the following and reopen:

* DESCRIPTION is pretty long.
* Is the RESTRICT needed? If so, please add a comment explaining why.
* Quoting on MY_P, S, paths to sed and mkdir would be good.
* No need for the semicolons.
* A proper die message would help.
* Is einstall needed? If so, please include a comment explaining why. Otherwise,
use make DESTDIR="${D}" install || die "install failed".
Comment 3 Kamil Winczek 2006-04-16 23:59:25 UTC
Hello. I still have some errors while trying compile that app.

# emerge ktrafficanalyzer
Calculating dependencies... done!
>>> Emerging (1 of 1) net-analyzer/ktrafficanalyzer-0.3.1 to /
>>> checking ebuild checksums
>>> checking auxfile checksums
>>> checking miscfile checksums
>>> checking distfiles checksums
>>> Unpacking source...
>>> Unpacking KTrafficAnalyzer_0.3.1.tar.bz2 to /var/tmp/portage/ktrafficanalyzer-0.3.1/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/ktrafficanalyzer-0.3.1/work/KTrafficAnalyzer_0.3.1 ...
if test "/usr/kde/3.5" = ""; then echo KDEDIR not set!; exit 1; fi;
if test "/usr/qt/3" = ""; then echo QTDIR not set!; exit 1; fi;
for i in settings stats lib; do make -C $i SRC_ROOT=`pwd` "CFLAGS= -I/usr/qt/3/include/ -I/usr/kde/3.5/include/ -I`pwd`"; done
make[1]: Entering directory `/var/tmp/portage/ktrafficanalyzer-0.3.1/work/KTrafficAnalyzer_0.3.1/settings'
kconfig_compiler KTASettings.kcfg KTASettings.kcfgc
gcc -c KTASettings.cpp -I/usr/qt/3/include/ -I/usr/kde/3.5/include/ -I/var/tmp/portage/ktrafficanalyzer-0.3.1/work/KTrafficAnalyzer_0.3.1
moc -o ColorWidget.moc ColorWidget.h
gcc -c ColorWidget.cpp -I/usr/qt/3/include/ -I/usr/kde/3.5/include/ -I/var/tmp/portage/ktrafficanalyzer-0.3.1/work/KTrafficAnalyzer_0.3.1
In file included from ColorWidget.cpp:11:
ColorWidget.moc:12:2: #error "The header file 'ColorWidget.h' doesn't include <QObject>."
In file included from ColorWidget.cpp:11:
ColorWidget.moc:39: error: `const QMetaObject ColorWidget::staticMetaObject' is not a static member of `class ColorWidget'
ColorWidget.moc:39: error: variable `const QMetaObject ColorWidget::staticMetaObject' has initializer but incomplete type
ColorWidget.moc:45: error: prototype for `const QMetaObject* ColorWidget::metaObject() const' does not match any in class `ColorWidget'
ColorWidget.h:25: error: candidate is: virtual QMetaObject* ColorWidget::metaObject() const
ColorWidget.moc:45: error: `const QMetaObject* ColorWidget::metaObject() const' and `virtual QMetaObject* ColorWidget::metaObject() const' cannot be overloaded
ColorWidget.moc: In member function `const QMetaObject* ColorWidget::metaObject() const':
ColorWidget.moc:46: error: cannot convert `QMetaObject*(*)()' to `const QMetaObject*' in return
ColorWidget.moc: At global scope:
ColorWidget.moc:50: error: no `void* ColorWidget::qt_metacast(const char*)' member function declared in class `ColorWidget'
ColorWidget.moc: In member function `void* ColorWidget::qt_metacast(const char*)':
ColorWidget.moc:54: error: `qt_metacast' is not a member of `QWidget'
ColorWidget.moc: At global scope:
ColorWidget.moc:57: error: `int ColorWidget::qt_metacall' is not a static member of `class ColorWidget'
ColorWidget.moc:57: error: incomplete type `QMetaObject' used in nested name specifier
ColorWidget.moc:57: error: expected primary-expression before "int"
ColorWidget.moc:57: error: expected primary-expression before "void"
ColorWidget.moc:58: error: initializer expression list treated as compound expression
ColorWidget.moc:58: error: expected `,' or `;' before '{' token
make[1]: *** [ColorWidget.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/ktrafficanalyzer-0.3.1/work/KTrafficAnalyzer_0.3.1/settings'
make[1]: Entering directory `/var/tmp/portage/ktrafficanalyzer-0.3.1/work/KTrafficAnalyzer_0.3.1/stats'
gcc -c KTAStats.cpp -I/usr/qt/3/include/ -I/usr/kde/3.5/include/ -I/var/tmp/portage/ktrafficanalyzer-0.3.1/work/KTrafficAnalyzer_0.3.1
moc -o TrafficStatsWidget.moc TrafficStatsWidget.h
gcc -c TrafficStatsWidget.cpp -I/usr/qt/3/include/ -I/usr/kde/3.5/include/ -I/var/tmp/portage/ktrafficanalyzer-0.3.1/work/KTrafficAnalyzer_0.3.1
In file included from TrafficStatsWidget.cpp:11:
TrafficStatsWidget.moc:12:2: #error "The header file 'TrafficStatsWidget.h' doesn't include <QObject>."
In file included from TrafficStatsWidget.cpp:11:
TrafficStatsWidget.moc:41: error: `const QMetaObject TrafficStatsWidget::staticMetaObject' is not a static member of `class TrafficStatsWidget'
TrafficStatsWidget.moc:41: error: variable `const QMetaObject TrafficStatsWidget::staticMetaObject' has initializer but incomplete type
TrafficStatsWidget.moc:47: error: prototype for `const QMetaObject* TrafficStatsWidget::metaObject() const' does not match any in class `TrafficStatsWidget'
TrafficStatsWidget.h:30: error: candidate is: virtual QMetaObject* TrafficStatsWidget::metaObject() const
TrafficStatsWidget.moc:47: error: `const QMetaObject* TrafficStatsWidget::metaObject() const' and `virtual QMetaObject* TrafficStatsWidget::metaObject() const' cannot be overloaded
TrafficStatsWidget.moc: In member function `const QMetaObject* TrafficStatsWidget::metaObject() const':
TrafficStatsWidget.moc:48: error: cannot convert `QMetaObject*(*)()' to `const QMetaObject*' in return
TrafficStatsWidget.moc: At global scope:
TrafficStatsWidget.moc:52: error: no `void* TrafficStatsWidget::qt_metacast(const char*)' member function declared in class `TrafficStatsWidget'
TrafficStatsWidget.moc: In member function `void* TrafficStatsWidget::qt_metacast(const char*)':
TrafficStatsWidget.moc:56: error: `qt_metacast' is not a member of `QWidget'
TrafficStatsWidget.moc: At global scope:
TrafficStatsWidget.moc:59: error: `int TrafficStatsWidget::qt_metacall' is not a static member of `class TrafficStatsWidget'
TrafficStatsWidget.moc:59: error: incomplete type `QMetaObject' used in nested name specifier
TrafficStatsWidget.moc:59: error: expected primary-expression before "int"
TrafficStatsWidget.moc:59: error: expected primary-expression before "void"
TrafficStatsWidget.moc:60: error: initializer expression list treated as compound expression
TrafficStatsWidget.moc:60: error: expected `,' or `;' before '{' token
make[1]: *** [TrafficStatsWidget.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/ktrafficanalyzer-0.3.1/work/KTrafficAnalyzer_0.3.1/stats'
make[1]: Entering directory `/var/tmp/portage/ktrafficanalyzer-0.3.1/work/KTrafficAnalyzer_0.3.1/lib'
gcc -c dataPoint.cpp -I/usr/qt/3/include/ -I/usr/kde/3.5/include/ -I/var/tmp/portage/ktrafficanalyzer-0.3.1/work/KTrafficAnalyzer_0.3.1
gcc -c ringMemory.cpp -I/usr/qt/3/include/ -I/usr/kde/3.5/include/ -I/var/tmp/portage/ktrafficanalyzer-0.3.1/work/KTrafficAnalyzer_0.3.1
moc -o TrafficWindow.moc TrafficWindow.h
gcc -c TrafficWindow.cpp -I/usr/qt/3/include/ -I/usr/kde/3.5/include/ -I/var/tmp/portage/ktrafficanalyzer-0.3.1/work/KTrafficAnalyzer_0.3.1
In file included from TrafficWindow.cpp:20:
TrafficWindow.moc:12:2: #error "The header file 'TrafficWindow.h' doesn't include <QObject>."
In file included from TrafficWindow.cpp:20:
TrafficWindow.moc:44: error: `const QMetaObject TrafficWindow::staticMetaObject' is not a static member of `class TrafficWindow'
TrafficWindow.moc:44: error: variable `const QMetaObject TrafficWindow::staticMetaObject' has initializer but incomplete type
TrafficWindow.moc:50: error: prototype for `const QMetaObject* TrafficWindow::metaObject() const' does not match any in class `TrafficWindow'
TrafficWindow.h:52: error: candidate is: virtual QMetaObject* TrafficWindow::metaObject() const
TrafficWindow.moc:50: error: `const QMetaObject* TrafficWindow::metaObject() const' and `virtual QMetaObject* TrafficWindow::metaObject() const' cannot be overloaded
TrafficWindow.moc: In member function `const QMetaObject* TrafficWindow::metaObject() const':
TrafficWindow.moc:51: error: cannot convert `QMetaObject*(*)()' to `const QMetaObject*' in return
TrafficWindow.moc: At global scope:
TrafficWindow.moc:55: error: no `void* TrafficWindow::qt_metacast(const char*)' member function declared in class `TrafficWindow'
TrafficWindow.moc: In member function `void* TrafficWindow::qt_metacast(const char*)':
TrafficWindow.moc:59: error: `qt_metacast' is not a member of `QWidget'
TrafficWindow.moc: At global scope:
TrafficWindow.moc:62: error: `int TrafficWindow::qt_metacall' is not a static member of `class TrafficWindow'
TrafficWindow.moc:62: error: incomplete type `QMetaObject' used in nested name specifier
TrafficWindow.moc:62: error: expected primary-expression before "int"
TrafficWindow.moc:62: error: expected primary-expression before "void"
TrafficWindow.moc:63: error: initializer expression list treated as compound expression
TrafficWindow.moc:63: error: expected `,' or `;' before '{' token
TrafficWindow.moc: In member function `void TrafficWindow::updateStatsDialog(int)':
TrafficWindow.moc:82: error: incomplete type `QMetaObject' used in nested name specifier
make[1]: *** [TrafficWindow.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/ktrafficanalyzer-0.3.1/work/KTrafficAnalyzer_0.3.1/lib'
make: *** [do-it-always] Error 2

!!! ERROR: net-analyzer/ktrafficanalyzer-0.3.1 failed.
Call stack:
  ebuild.sh, line 1533:   Called dyn_compile
  ebuild.sh, line 930:   Called src_compile
  ktrafficanalyzer-0.3.1.ebuild, line 28:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.


My emerge --info:

Portage 2.1_pre8-r5 (default-linux/x86/2005.0, gcc-3.4.6, glibc-2.4-r2, 2.6.15-gentoo-r5-crs i686)
=================================================================
System uname: 2.6.15-gentoo-r5-crs i686 AMD Duron(tm) processor
Gentoo Base System version 1.12.0_pre17
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -w"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -w"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.zie.pg.gda.pl http://mir.zyrianes.net/gentoo/ http://212.219.56.131/sites/www.ibiblio.org/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LC_ALL="en_GB.UTF-8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-r"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X aac acpi alsa apm arts avi berkdb bitmap-fonts bzip bzip2 cairo crypt cups dga dvd dvdr dvdread eds emboss encode ffmpeg flac foomaticdb fortran gb gdbm gif glx gtk2 hal imlib isdnlog java jpeg jpeg2k kde kipi libg++ libwww mad maildir mmx mp3 mpeg mplayer musicbrainz nas ncurses nls nptl nptlonly nvidia ogg oggvorbis opengl oss pam pdflib perl png ppds pppd python qt quicktime readline sdl spell sqlite sse sse2 ssl stroke svga tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales vcd vorbis win32codecs xcomposite xine xml xml2 xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, MAKEOPTS

Please, if someone know what i should do to compile this, tell me. i really need that apps. ;-)

g.
Comment 4 Christian Lemke 2006-05-16 09:43:46 UTC
Created attachment 86862 [details]
net-analyzer/ktrafficanalyzer-0.3.3.ebuild

I have adjusted the ebuild and for me it works now.
I use KDE 3.5.2.