Quoth Gerard Henry on Thu, Mar 08, 2007 at 03:40:59AM -0800:
> since installing b56 on my dell laptop, i can't use gkrellm, as it worked in 
> b40
> here is the error:
> yakari-henry% gkrellm
> ld.so.1: gkrellm-2.2.7-battery: fatal: libssl.so.0.9.7: open failed: No such 
> file or directory
> Killed
> 
> is there a chance to have an upgrade of gkrellm? why it needs ssl?

I think it uses SSL for monitoring remote servers.  I use

        gmake solaris without-ssl=yes

to avoid linking against it.

Quoth Gerard Henry on Thu, Mar 08, 2007 at 09:53:41AM -0800:
> ok, i'm trying to recompile from sources, applying diff file pointed
> at http://www.opensolaris.org/os/community/laptop/power/
> 
> got sources gkrellm-2.2.7.tar.bz2
> patched with:
> yakari-henry% gpatch -p 1 < /tmp/gkrellm-2.2.7-battery.diff
> patching file src/sysdeps/solaris.c
> 
> then did:
> gmake solaris
> and it failed, because it doen't find acpidrv.h
> but this file is here: /usr/include/sys/acpidrv.h
> so i modified src/Makefile to add "-I/usr/include/sys/"
> and failing again when compiling sysdeps-unix.c

Right, I put acpidrv.h in src/sysdeps.  If /usr/include/sys/acpidrv.h
has the battery-reading stuff, then you can change

#include "acpidrv.h"

to

#icnlude <sys/acpidrv.h>

> yakari-henry% make solaris
> (cd po && make MSGFMT_OPT="-v -o" \
>         LOCALEDIR=/usr/local/share/locale all)
> make[1]: Entering directory `/home/henry/gkrellm-2.2.7/po'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/henry/gkrellm-2.2.7/po'
> (cd src && make CC=gcc \
>         CFLAGS="-Wno-implicit-int" \
>         SYS_LIBS="-lkstat -lkvm -ldevinfo -lresolv -lsocket -lX11" 
> LINK_FLAGS="" gkrellm )
> ./configure: test: argument expected

You should change the first line of configure to use /bin/bash instead
of /bin/sh .

> make[1]: Entering directory `/home/henry/gkrellm-2.2.7/src'
> gcc -Wall -O2 -I/usr/include/sys -I.. `pkg-config --cflags gtk+-2.0 
> gthread-2.0`   -DENABLE_NLS -DLOCALEDIR=\"/usr/local/share/locale\" 
> -Wno-implicit-int   -c -o sysdeps-unix.o sysdeps-unix.c
> In file included from gkrellm.h:35,
>                  from sysdeps-unix.c:22:
...
> In file included from gkrellm.h:36,
>                  from sysdeps-unix.c:22:
> /usr/include/sys/fcntl.h:42: warning: ignoring #pragma ident 
> In file included from sysdeps/solaris.c:24,
>                  from sysdeps-unix.c:59:
> /usr/include/sys/kstat.h:29: warning: ignoring #pragma ident 
> In file included from sysdeps-unix.c:59:
> sysdeps/solaris.c:28: error: syntax error before '*' token

What is the token on line 28?

> sysdeps/solaris.c:28: warning: data definition has no type or storage class
> sysdeps/solaris.c: In function `gkrellm_sys_main_init':
> sysdeps/solaris.c:46: warning: implicit declaration of function `kstat_open'

My guess is that these errors are because the configure script didn't
work.


David

Reply via email to