Kann mir jemand heflen mal beim kompiliren bekomme das nicht nicht bekomme diese fehler meldung immer
Code: Alles auswählen
make
rm -f *.o
gcc -O2 -Wall -fPIC `pkg-config gtk+-2.0 --cflags` -c gkibm_acpi.c -DFAN
gkibm_acpi.c: In function 'update_plugin':
gkibm_acpi.c:95:2: warning: passing argument 1 of 'gdk_string_width' from incompatible pointer type [enabled by default]
decal_text1->x_off = (w - gdk_string_width(decal_text1->text_style.font, info)) / 2;
^
In file included from /usr/include/gtk-2.0/gdk/gdk.h:42:0,
from /usr/include/gtk-2.0/gtk/gtk.h:32,
from /usr/include/gkrellm2/gkrellm.h:47,
from gkibm_acpi.c:10:
/usr/include/gtk-2.0/gdk/gdkfont.h:79:7: note: expected 'struct GdkFont *' but argument is of type 'struct PangoFontDescription *'
gint gdk_string_width (GdkFont *font,
^
gkibm_acpi.c: In function 'create_plugin':
gkibm_acpi.c:109:25: warning: variable 'ts_alt' set but not used [-Wunused-but-set-variable]
GkrellmTextstyle *ts, *ts_alt;
^
gcc -Wall -O2 -c data.c -DFAN
gcc -shared -Wall -o gkibm_fan.so gkibm_acpi.o data.o
/usr/bin/ld: data.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
data.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [fan] Fehler 1
Grus unix1988