libxfcegui4 compile error part 2 :->
edscott
edscott at prodigy.net.mx
Sat Jul 24 15:34:02 CEST 2004
El sáb, 24-07-2004 a las 04:57, Danny Milosavljevic escribió:
> Hi,
>
> now its that:
>
> gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../..
> -I../../xfce4-modules/headers -DXTH
> READS -DXUSE_MTSAFE_API -D_REENTRANT -I/usr/include/gtk-2.0
> -I/usr/lib/gtk-2.0/i
> nclude -I/opt/fdo//include -I/usr/X11R6/include -I/usr/include/atk-1.0
> -I/usr/in
> clude/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0
> -I/usr/lib/glib
> -2.0/include -I/usr/include/xfce4 -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/in
> clude -DPACKAGE_DATA_DIR=\"/usr/share\"
> -DPACKAGE_LOCALE_DIR=\"/usr/share/locale
> \" -I/usr/include/libxml2 -march=athlon-xp -O2 -pipe
> -fomit-frame-pointer -MT libxfce4_mime_la-mime.lo -MD -MP
> -MF .deps/libxfce4_mime_la-mime.Tpo -c mime.c -fPIC -DPIC
> -o .libs/libxfce4_mime_la-mime.o
> mime.c:70: error: conflicting types for `mime_add'
> /usr/include/xfce4/xfce4-modules/mime.h:149: error: previous declaration
> of `mime_add'
> mime.c: In function `g_module_check_init':
> mime.c:104: warning: assignment from incompatible pointer type
> make[3]: *** [libxfce4_mime_la-mime.lo] Fehler 1
> make[3]: Leaving directory
> `/var/tmp/portage/libxfcegui4-4.0.99/work/xfce4/libxfcegui4/xfce4-modules/mime-applications'
> make[2]: *** [all-recursive] Fehler 1
>
> Seems like a chicken-egg problem ;)
> (xfce4-modules headers are taken from /usr/include before they are even
> put there, which I think this subdirectory libxfcegui4/xfce4-modules
> would do?) [and so it takes too old version and fails]
>
> Then again, I might be wrong.
You are absolutely right. The fix suggested by Edward works, because of
the -I$(top_srcdir) in Makefile.am. I've committed the fix to CVS.
Compilation should proceed OK now (I hope ;)
regards,
Edscott
>
> cheers,
> Danny
>
>
> ______________________________________________________________________
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://lunar-linux.org/mailman/listinfo/xfce4-dev
More information about the Xfce4-dev
mailing list