Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 182283 - nemiver-0.4 doesn't compile: invalid conversion from ‘unsigned int*’ to ‘pid_t*’
Summary: nemiver-0.4 doesn't compile: invalid conversion from ‘unsigned int*’ to ‘pid_t*’
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Rémi Cardona (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-17 01:54 UTC by Muelli
Modified: 2008-01-11 03:01 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Muelli 2007-06-17 01:54:41 UTC
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.
Comment 1 Muelli 2007-06-17 01:58:31 UTC
Seems to be fixed upstream:

http://svn.gnome.org/viewcvs/nemiver/trunk/src/common/nmv-proc-mgr.cc?view=markup
Comment 2 Mart Raudsepp gentoo-dev 2007-06-17 02:00:17 UTC
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
Comment 3 Muelli 2007-06-17 02:08:38 UTC
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.
Comment 4 Jean Bréfort 2007-06-17 06:58:46 UTC
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.
Comment 5 Rémi Cardona (RETIRED) gentoo-dev 2007-06-17 08:37:39 UTC
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
Comment 6 Rémi Cardona (RETIRED) gentoo-dev 2007-06-17 08:44:10 UTC
Fixed for now. Sorry again
Comment 7 Rémi Cardona (RETIRED) gentoo-dev 2007-09-02 13:05:01 UTC
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