OS X - GkrellM confuses HD for CD-ROM; build chokes using -DSYSTEM_PLUGINS_DIR=

"Mark Duling" <[email protected]>
Newsgroups gmane.comp.gnome.apps.gkrellm
Message-ID <[email protected]>
So on OS X (darwin) it looks like GkrellM is monitoring my CD-ROM drive
but thinks it is monitoring my hard disk.  But I don't understand the
syntax of the user-config.  Is there something I could change in this info
to see if it would fix it based on my 'diskutil list' info following?

disk assign_method 2
disk device Disk 0 0 0 0 1 0 0
disk chart_config Disk 40 2000 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500
disk device FUJITSU_MHT2080AT_Media 0 0 -1 1 1 -1 0
disk chart_config FUJITSU_MHT2080AT_Media 40 10 0 1 0 0 : 0 0 0 0 500 : 0
0 0 0 500
disk text_format $T   


diskutil list
/dev/disk0
   #:                   type name               size      identifier
   0: Apple_partition_scheme                    *74.5 GB  disk0
   1:    Apple_partition_map                    31.5 KB   disk0s1
   2:              Apple_HFS Mac HD             74.4 GB   disk0s3


Also, when I try to set the SYSTEM_PLUGINS_DIR using a CFLAG:

CFLAGS=-DSYSTEM_PLUGINS_DIR=\"${prefix}/libexec/gkrellm2/plugins\"

the build chokes at plugins.c

cc -Wall -O2 -I.. `pkg-config --cflags gtk+-2.0 gthread-2.0`  
-DENABLE_NLS -DLOCALEDIR=\"/opt/local/share/locale\" -DHAVE_GETADDRINFO
-DSYSTEM_PLUGINS_DIR=/opt/local/libexec/gkrellm2/plugins -L/opt/local/lib
-I/opt/local/include  -c -o gui.o gui.c
cc -Wall -O2 -I.. `pkg-config --cflags gtk+-2.0 gthread-2.0`  
-DENABLE_NLS -DLOCALEDIR=\"/opt/local/share/locale\" -DHAVE_GETADDRINFO
-DSYSTEM_PLUGINS_DIR=/opt/local/libexec/gkrellm2/plugins -L/opt/local/lib
-I/opt/local/include  -c -o krell.o krell.c
cc -Wall -O2 -I.. `pkg-config --cflags gtk+-2.0 gthread-2.0`  
-DENABLE_NLS -DLOCALEDIR=\"/opt/local/share/locale\" -DHAVE_GETADDRINFO
-DSYSTEM_PLUGINS_DIR=/opt/local/libexec/gkrellm2/plugins -L/opt/local/lib
-I/opt/local/include  -c -o plugins.o plugins.c
plugins.c: In function 'gkrellm_plugins_load':
plugins.c:1160: error: parse error before '/' token
make[1]: *** [plugins.o] Error 1
make: *** [darwin] Error 2


I ended up just patching src/gkrellm.h to have the paths I want.  Any
ideas on why the build chokes when using CFLAGS=-DSYSTEM_PLUGINS_DIR=?

Mark


_______________________________________________
Gkrellm mailing list
[email protected]
http://ninja.linux-phreak.biz/mailman/listinfo/gkrellm
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.