config.status: creating Makefile config.status: executing depfiles commands i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"slmon\" -DVERSION=\"0.5.13\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETOPT_LONG=1 -DHAVE_STRFTIME=1 -DHAVE_UTMP=1 -DHAVE_UNAME=1 -I. -I. -O2 -march=i686 -pipe -c rc.c In file included from rc.h:20, from rc.c:17: defines.h:42:18: error: glib.h: No such file or directory defines.h:43:25: error: glibtop/cpu.h: No such file or directory defines.h:44:28: error: glibtop/uptime.h: No such file or directory defines.h:45:25: error: glibtop/mem.h: No such file or directory defines.h:46:26: error: glibtop/swap.h: No such file or directory defines.h:47:29: error: glibtop/loadavg.h: No such file or directory defines.h:48:29: error: glibtop/procmap.h: No such file or directory defines.h:49:31: error: glibtop/mountlist.h: No such file or directory defines.h:50:29: error: glibtop/fsusage.h: No such file or directory In file included from rc.h:20, from rc.c:17: defines.h:84: error: 'GLIBTOP_NCPU' undeclared here (not in a function) defines.h:104: error: expected specifier-qualifier-list before 'SLKeyMap_List_Type' In file included from rc.c:17: rc.h:25: error: expected ')' before '*' token In file included from rc.c:18: stat.h:20:30: error: glibtop/proclist.h: No such file or directory stat.h:21:31: error: glibtop/procstate.h: No such file or directory stat.h:22:29: error: glibtop/procmem.h: No such file or directory stat.h:23:30: error: glibtop/procargs.h: No such file or directory stat.h:24:30: error: glibtop/proctime.h: No such file or directory stat.h:25:29: error: glibtop/netload.h: No such file or directory rc.c: In function 'slmon_conf_parse': rc.c:159: error: 'struct config' has no member named 'iface' rc.c:159: error: 'struct config' has no member named 'iface' rc.c: In function 'slmon_read_conf': rc.c:184: warning: assignment makes pointer from integer without a cast rc.c:187: warning: assignment makes pointer from integer without a cast rc.c:192: warning: assignment makes pointer from integer without a cast make: *** [rc.o] Error 1 !!! ERROR: app-misc/slmon-0.5.13 failed. Portage 2.1.2_pre2-r9 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.16.16 i686) ================================================================= System uname: 2.6.16.16 i686 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.14 Last Sync: Fri, 13 Oct 2006 14:50:01 +0000 ccache version 2.3 [enabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: [Not Present] dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://212.219.56.134/sites/www.ibiblio.org/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync12.de.gentoo.org/gentoo-portage" USE="x86 X berkdb bitmap-fonts cli crypt cups dlloader dri elibc_glibc fortran gdbm gpm input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog kernel_linux libg++ ncurses nls nptl nptlonly pam pcre perl ppds pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts udev unicode userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo xorg zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 115834 [details, diff] slmon-0.5.13-invalid-free.patch The homepage says it needs glib-2 and we don't have it in DEPEND. Another problem is in function slmon_read_conf() in rc.c there is a wrong free() and glibc detects and invalid pointer. I wrote a patch to fix it. It seems to work fine here with the patch applied and glib-2 installed.
Fixed, thanks Ali.