Xfce Forum

Sub domains
 

You are not logged in.

#1 2011-05-21 21:03:26

Mank
Member
Registered: 2011-05-21
Posts: 1

My Namedays Plugins [solved]

first say Hello from Czech rep..
I have a problem with me nameday plugin .
if i change line 84 in nameday-plugin.c
from XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL (nameday_construct);
to XFCE_PANEL_PLUGIN_REGISTER (nameday_construct);
i got on me Xfce 4.8 PCLOS instalion (and similar error with Xubuntu 11.04 in Virtualbox)

[mank@localhost xfce4-nm-plugin]$ make
make  all-recursive
make[1]: Entering directory `/home/mank/Apps/xfsvatky/xfce4-nm-plugin'
Making all in icons
make[2]: Entering directory `/home/mank/Apps/xfsvatky/xfce4-nm-plugin/icons'
Making all in 48x48
make[3]: Entering directory `/home/mank/Apps/xfsvatky/xfce4-nm-plugin/icons/48x48'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/mank/Apps/xfsvatky/xfce4-nm-plugin/icons/48x48'
Making all in scalable
make[3]: Entering directory `/home/mank/Apps/xfsvatky/xfce4-nm-plugin/icons/scalable'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/mank/Apps/xfsvatky/xfce4-nm-plugin/icons/scalable'
make[3]: Entering directory `/home/mank/Apps/xfsvatky/xfce4-nm-plugin/icons'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/mank/Apps/xfsvatky/xfce4-nm-plugin/icons'
make[2]: Leaving directory `/home/mank/Apps/xfsvatky/xfce4-nm-plugin/icons'
Making all in panel-plugin
make[2]: Entering directory `/home/mank/Apps/xfsvatky/xfce4-nm-plugin/panel-plugin'
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -DG_LOG_DOMAIN=\"xfce4-nameday-plugin\" -DPACKAGE_LOCALE_DIR=\"/usr/local/share/locale\"   -DNDEBUG -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread -I/usr/include/xfce4/libxfce4ui-1 -I/usr/include/gtk-2.0 -I/usr/include/xfce4 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -pthread -I/usr/include/xfce4/libxfce4panel-1.0 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/xfce4 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12                                -g -O2 -MT xfce4_nameday_plugin-nameday-plugin.o -MD -MP -MF .deps/xfce4_nameday_plugin-nameday-plugin.Tpo -c -o xfce4_nameday_plugin-nameday-plugin.o `test -f 'nameday-plugin.c' || echo './'`nameday-plugin.c
mv -f .deps/xfce4_nameday_plugin-nameday-plugin.Tpo .deps/xfce4_nameday_plugin-nameday-plugin.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -DG_LOG_DOMAIN=\"xfce4-nameday-plugin\" -DPACKAGE_LOCALE_DIR=\"/usr/local/share/locale\"   -DNDEBUG -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread -I/usr/include/xfce4/libxfce4ui-1 -I/usr/include/gtk-2.0 -I/usr/include/xfce4 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -pthread -I/usr/include/xfce4/libxfce4panel-1.0 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/xfce4 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12                                -g -O2 -MT xfce4_nameday_plugin-nameday-plugin-dialogs.o -MD -MP -MF .deps/xfce4_nameday_plugin-nameday-plugin-dialogs.Tpo -c -o xfce4_nameday_plugin-nameday-plugin-dialogs.o `test -f 'nameday-plugin-dialogs.c' || echo './'`nameday-plugin-dialogs.c
mv -f .deps/xfce4_nameday_plugin-nameday-plugin-dialogs.Tpo .deps/xfce4_nameday_plugin-nameday-plugin-dialogs.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread -I/usr/include/xfce4/libxfce4ui-1 -I/usr/include/gtk-2.0 -I/usr/include/xfce4 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -pthread -I/usr/include/xfce4/libxfce4panel-1.0 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/xfce4 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12                                -g -O2   -o xfce4-nameday-plugin xfce4_nameday_plugin-nameday-plugin.o xfce4_nameday_plugin-nameday-plugin-dialogs.o -lxfce4util -lglib-2.0   -pthread -lxfce4ui-1 -lgtk-x11-2.0 -lxfce4util -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpng12 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0   -Wl,--export-dynamic -pthread -lxfce4panel-1.0 -lgtk-x11-2.0 -lxfce4util -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpng12 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0       
libtool: link: gcc -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/xfce4/libxfce4ui-1 -I/usr/include/gtk-2.0 -I/usr/include/xfce4 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -pthread -I/usr/include/xfce4/libxfce4panel-1.0 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/xfce4 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -o xfce4-nameday-plugin xfce4_nameday_plugin-nameday-plugin.o xfce4_nameday_plugin-nameday-plugin-dialogs.o -pthread -Wl,--export-dynamic -pthread  -lxfce4ui-1 -lxfce4panel-1.0 /usr/lib/libgtk-x11-2.0.so -lxfce4util /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libpangocairo-1.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libgio-2.0.so -lresolv /usr/lib/libcairo.so /usr/lib/libpixman-1.so /usr/lib/libXrender.so /usr/lib/libX11.so /usr/lib/libxcb.so /usr/lib/libXau.so /usr/lib/libXdmcp.so -lpng12 /usr/lib/libpango-1.0.so /usr/lib/libfontconfig.so /usr/lib/libfreetype.so /usr/lib/libxml2.so -lz -lm /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libgthread-2.0.so -lpthread /usr/lib/libglib-2.0.so /usr/lib/libpcre.so -lrt -pthread
/usr/lib/gcc/i586-mandriva-linux-gnu/4.5.2/../../../crt1.o: In function `_start':
/usr/src/rpm/BUILD/glibc-2.12.1/csu/../sysdeps/i386/elf/start.S:115: undefined reference to `main'
collect2: ld returned 1 exit status
make[2]: *** [xfce4-nameday-plugin] Error 1
make[2]: Leaving directory `/home/mank/Apps/xfsvatky/xfce4-nm-plugin/panel-plugin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mank/Apps/xfsvatky/xfce4-nm-plugin'
make: *** [all] Error 2

and code of plugin is here https://code.launchpad.net/~freedcpp/xf … ugin/trunk
any one know why i got this error with Xfce4.8 and Xfce4.8-like registering plugins ?
i browsing bugs and nothink similar not find , google too.
any one know why ? or where i have do mistake ? or what i forgot ?

Last edited by Mank (2011-08-16 17:01:53)

Offline

#2 2011-05-22 07:51:14

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: My Namedays Plugins [solved]

XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL works fine in 4.8 too, so I see no reason for you to change this. If you do start using the new API, the plugin needs to be compiled as a library.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 536.96 KiB (Peak: 548.68 KiB) ]