Bug 182283 - nemiver-0.4 doesn't compile: invalid conversion from ‘unsigned int*’ to ‘pid_t*’
|
Bug#:
182283
|
Product: Gentoo Linux
|
Version: 2007.0
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: remi@gentoo.org
|
Reported By: gentoo-bugs@Auftrags-Killer.org
|
|
Component: GNOME
|
|
|
URL:
|
|
Summary: nemiver-0.4 doesn't compile: invalid conversion from ‘unsigned int*’ to ‘pid_t*’
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2007-06-17 01:54 0000
|
Emerging nemiver-0.4 fails
Reproducible: Always
Steps to Reproduce:
1. emerge -v "~dev-util/nemiver-0.4.0"
Actual Results:
compilation fails with:
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -pthread -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgtop-2.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/glibmm-2.4
-I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0
-I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DENABLE_NLS=1 -DDATADIR=\"/usr/share\"
-DNEMIVER_INSTALL_PREFIX=\"/usr\"
-DNEMIVER_SYSTEM_CONFIG_DIR=\"/usr/lib/nemiver/config\"
-DNEMIVER_MODULES_DIR=\"/usr/lib/nemiver/modules\"
-DNEMIVER_PLUGINS_DIR=\"/usr/lib/nemiver/plugins\" -DNEMIVER_VERSION=\"0.4.0\"
-DGDB_PROG=\"/usr/bin/gdb\" -O3 -march=athlon-xp -fomit-frame-pointer -pipe
-m3dnow -msse -mmmx -fprefetch-loop-arrays -fuse-cxa-atexit -MT
nmv-proc-utils.lo -MD -MP -MF .deps/nmv-proc-utils.Tpo -c nmv-proc-utils.cc -o
nmv-proc-utils.o >/dev/null 2>&1
nmv-proc-mgr.cc: In member function ‘virtual const
std::list<nemiver::common::IProcMgr::Process,
std::allocator<nemiver::common::IProcMgr::Process> >&
nemiver::common::ProcMgr::get_all_process_list() const’:
nmv-proc-mgr.cc:94: error: invalid conversion from ‘unsigned int*’ to
‘pid_t*’
make[3]: *** [nmv-proc-mgr.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
`/mnt/ramdisk/portage/dev-util/nemiver-0.4.0/work/nemiver-0.4.0/src/common'
Expected Results:
I expected nemiver to compile fine
After editing nmv-proc-mgr.cc and changing
--- src/common/nmv-proc-mgr.cc.old 2007-06-17 03:02:46.762030470 +0200
+++ src/common/nmv-proc-mgr.cc 2007-06-17 03:02:28.865010576 +0200
@@ -91,7 +91,7 @@
try {
//get the list of pids
- pids = glibtop_get_proclist (&buf_desc, GLIBTOP_KERN_PROC_ALL, 0) ;
+ pids = (pid_t *) glibtop_get_proclist (&buf_desc,
GLIBTOP_KERN_PROC_ALL, 0) ;
//get a couple of info about each pocess
for (unsigned i=0 ; i < buf_desc.number ; ++i) {
it compiles fine.
Please check the metadata before assigning bugs to other than bug-wrangles. Not
gnome herd maintained. Reassigning to remi, who is the maintainer of this as
per metadata.xml
Excuse me, but I just followed the guided page and there was no remi
whats-o-ever.
As the ebuild description states "integrates well in to GNOME environment" and
it's hosted in GNOMEs SVN, to click the "GNOME" label in this bugtracker seemed
to be the smartest to me.
nemiver-0.4.0 compiles fine but does not emerge because of
nemiver-0.4.0-libgtop.patch which needs a more recent libgtop (2.19.X) than
present in gentoo (2.14.9). libgtop version should be tested before applying
the patch.
Yes, I apologize this is my fault. I discovered this yesterday evening and I
thought it would go unnoticed until I got around to fixing it. Again, my bad.
I'll come up with a better patch for gnome 2.19 and I'll remove this unneeded
patch meanwhile.
Thanks for understanding
Fixed for now. Sorry again
The version in portage doesn't have the patch, the one in the overlay does.
Next version of nemiver will depend on Gnome 2.20. Closing