Re: Installing empathy-2.32.2_3...warning: undefined reference
On 13-3-2013 13:07, Chris Torek wrote: On Sun, Mar 10, 2013 at 3:34 PM, Koop Mast k...@rainbow-runner.nl wrote: Thanks for the report, this is already known. Sadly I haven't managed to find a solution for this :/ -Koop The Makefile in net-im/empathy tries to build its included header files using glib-mkenums, but it assumes they're in the current directory and depend on Makefile.in. When they are in /usr/local/include/* (and Makefile.in is newer) it goes badly awry. This somewhat crude patch fixes the problem... Chris Thanks to information from BSD Dreamer in ports/176768, I came to the same patch. And committed it as as revision 314040. I also bumped gstreamer-plugins revision so it can fix the header for those people where empathy messed it up. -Koop --- src/Makefile.in.orig +++ src/Makefile.in @@ -1689,22 +1689,4 @@ $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $ $*-marshal.c -# rules for making the glib enum objects -%-enumtypes.h: %.h Makefile.in - $(AM_V_GEN)glib-mkenums \ - --fhead #ifndef __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__\n#define __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__\n\n#include glib-object.h\n\nG_BEGIN_DECLS\n \ - --fprod /* enumerations from \@filename@\ */\n \ - --vhead GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n \ - --ftail G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */ \ - $ $@ - -%-enumtypes.c: %.h Makefile.in - $(AM_V_GEN)glib-mkenums \ - --fhead #include $*.h\n#include $*-enumtypes.h \ - --fprod \n/* enumerations from \@filename@\ */ \ - --vhead GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\nstatic const G@Type@Value values[] = { \ - --vprod { @VALUENAME@, \@VALUENAME@\, \@VALUENAME@\ }, \ - --vtail { 0, NULL, NULL }\n};\netype = g_@type@_register_static (\@EnumName@\, values);\n }\n return etype;\n}\n \ - $ $@ - # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Installing empathy-2.32.2_3...warning: undefined reference
FreeBSD FBSD10 10.0-CURRENT FreeBSD 10.0-CURRENT #36 r248127: Sun Mar 10 00:13:59 CST 2013 root@FBSD10:/usr/obj/usr/src/sys/MYKERNEL amd64 Making install in src gmake[1]: Entering directory `/usr/ports/net-im/empathy/work/empathy-2.34.0/src' gmake install-am gmake[2]: Entering directory `/usr/ports/net-im/empathy/work/empathy-2.34.0/src' GEN/usr/local/include/gstreamer-0.10/gst/audio/audio-enumtypes.h CC empathy_av-empathy-audio-sink.o In file included from empathy-audio-sink.c:25: In file included from /usr/local/include/gstreamer-0.10/gst/audio/audio.h:26: In file included from /usr/local/include/gstreamer-0.10/gst/audio/multichannel.h:21: /usr/local/include/gstreamer-0.10/gst/audio/audio-enumtypes.h:4:11: warning: extra tokens at end of #ifndef directive [-Wextra-tokens] #ifndef __/USR/LOCAL/INCLUDE/GSTREAMER_0.10/GST/AUDIO/AUDIO_ENUM_TYPES_H__ ^ // /usr/local/include/gstreamer-0.10/gst/audio/audio-enumtypes.h:5:11: warning: ISO C99 requires whitespace after the macro name [-Wc99-extensions] #define __/USR/LOCAL/INCLUDE/GSTREAMER_0.10/GST/AUDIO/AUDIO_ENUM_TYPES_H__ ^ /usr/local/include/gstreamer-0.10/gst/audio/audio-enumtypes.h:12:9: error: macro names must be identifiers #define /USR/LOCAL/INCLUDE/GSTREAMER_TYPE_AUDIO_FORMAT (gst_audio_format_get_type()) ^ /usr/local/include/gstreamer-0.10/gst/audio/audio-enumtypes.h:14:9: error: macro names must be identifiers #define /USR/LOCAL/INCLUDE/GSTREAMER_TYPE_AUDIO_FORMAT_FLAGS (gst_audio_format_flags_get_type()) ^ /usr/local/include/gstreamer-0.10/gst/audio/audio-enumtypes.h:16:9: error: macro names must be identifiers #define /USR/LOCAL/INCLUDE/GSTREAMER_TYPE_AUDIO_FLAGS (gst_audio_flags_get_type()) ^ /usr/local/include/gstreamer-0.10/gst/audio/audio-enumtypes.h:18:9: error: macro names must be identifiers #define /USR/LOCAL/INCLUDE/GSTREAMER_TYPE_AUDIO_FIELD_FLAG (gst_audio_field_flag_get_type()) ^ empathy-audio-sink.c:160:27: warning: 'g_mutex_new' is deprecated [-Wdeprecated-declarations] priv-audio_bins_lock = g_mutex_new (); ^ /usr/local/include/glib-2.0/glib/deprecated/gthread.h:272:17: note: 'g_mutex_new' declared here GMutex *g_mutex_new (void); ^ empathy-audio-sink.c:257:5: warning: 'g_mutex_free' is deprecated [-Wdeprecated-declarations] g_mutex_free (priv-audio_bins_lock); ^ /usr/local/include/glib-2.0/glib/deprecated/gthread.h:274:17: note: 'g_mutex_free' declared here voidg_mutex_free(GMutex *mutex); ^ 4 warnings and 4 errors generated. gmake[2]: *** [empathy_av-empathy-audio-sink.o] Error 1 gmake[2]: Leaving directory `/usr/ports/net-im/empathy/work/empathy-2.34.0/src' gmake[1]: *** [install] Error 2 gmake[1]: Leaving directory `/usr/ports/net-im/empathy/work/empathy-2.34.0/src' gmake: *** [install-recursive] Error 1 *** [do-install] Error code 2 Stop in /usr/ports/net-im/empathy. *** [install] Error code 1 Stop in /usr/ports/net-im/empathy. *** [reinstall] Error code 1 Stop in /usr/ports/net-im/empathy. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20130310-63309-ggpcwf-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=empathy-2.32.2_3 UPGRADE_PORT_VER=2.32.2_3 make -DINSTALLS_DEPENDS reinstall --- Updating dependency info --- Restoring the old version Installing empathy-2.32.2_3...warning: undefined reference to schema id='org.gnome.desktop.default-applications.at'/ warning: undefined reference to schema id='org.gnome.Empathy.accounts'/ done --- Removing old package' ** Fix the installation problem and try again. --- Installation of net-im/empathy ended at: Sun, 10 Mar 2013 16:17:01 -0500 (consumed 00:00:08) --- Upgrade of net-im/empathy ended at: Sun, 10 Mar 2013 16:17:01 -0500 (consumed 00:03:55) --- ** Upgrade tasks 2: 1 done, 0 ignored, 0 skipped and 1 failed ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Installing empathy-2.32.2_3...warning: undefined reference
On 10-3-2013 22:29, AN wrote: FreeBSD FBSD10 10.0-CURRENT FreeBSD 10.0-CURRENT #36 r248127: Sun Mar 10 00:13:59 CST 2013 root@FBSD10:/usr/obj/usr/src/sys/MYKERNEL amd64 Thanks for the report, this is already known. Sadly I haven't managed to find a solution for this :/ -Koop Making install in src gmake[1]: Entering directory `/usr/ports/net-im/empathy/work/empathy-2.34.0/src' gmake install-am gmake[2]: Entering directory `/usr/ports/net-im/empathy/work/empathy-2.34.0/src' GEN /usr/local/include/gstreamer-0.10/gst/audio/audio-enumtypes.h CC empathy_av-empathy-audio-sink.o In file included from empathy-audio-sink.c:25: In file included from /usr/local/include/gstreamer-0.10/gst/audio/audio.h:26: In file included from /usr/local/include/gstreamer-0.10/gst/audio/multichannel.h:21: /usr/local/include/gstreamer-0.10/gst/audio/audio-enumtypes.h:4:11: warning: extra tokens at end of #ifndef directive [-Wextra-tokens] #ifndef __/USR/LOCAL/INCLUDE/GSTREAMER_0.10/GST/AUDIO/AUDIO_ENUM_TYPES_H__ ^ // /usr/local/include/gstreamer-0.10/gst/audio/audio-enumtypes.h:5:11: warning: ISO C99 requires whitespace after the macro name [-Wc99-extensions] #define __/USR/LOCAL/INCLUDE/GSTREAMER_0.10/GST/AUDIO/AUDIO_ENUM_TYPES_H__ ^ /usr/local/include/gstreamer-0.10/gst/audio/audio-enumtypes.h:12:9: error: macro names must be identifiers #define /USR/LOCAL/INCLUDE/GSTREAMER_TYPE_AUDIO_FORMAT (gst_audio_format_get_type()) ^ /usr/local/include/gstreamer-0.10/gst/audio/audio-enumtypes.h:14:9: error: macro names must be identifiers #define /USR/LOCAL/INCLUDE/GSTREAMER_TYPE_AUDIO_FORMAT_FLAGS (gst_audio_format_flags_get_type()) ^ /usr/local/include/gstreamer-0.10/gst/audio/audio-enumtypes.h:16:9: error: macro names must be identifiers #define /USR/LOCAL/INCLUDE/GSTREAMER_TYPE_AUDIO_FLAGS (gst_audio_flags_get_type()) ^ /usr/local/include/gstreamer-0.10/gst/audio/audio-enumtypes.h:18:9: error: macro names must be identifiers #define /USR/LOCAL/INCLUDE/GSTREAMER_TYPE_AUDIO_FIELD_FLAG (gst_audio_field_flag_get_type()) ^ empathy-audio-sink.c:160:27: warning: 'g_mutex_new' is deprecated [-Wdeprecated-declarations] priv-audio_bins_lock = g_mutex_new (); ^ /usr/local/include/glib-2.0/glib/deprecated/gthread.h:272:17: note: 'g_mutex_new' declared here GMutex *g_mutex_new (void); ^ empathy-audio-sink.c:257:5: warning: 'g_mutex_free' is deprecated [-Wdeprecated-declarations] g_mutex_free (priv-audio_bins_lock); ^ /usr/local/include/glib-2.0/glib/deprecated/gthread.h:274:17: note: 'g_mutex_free' declared here voidg_mutex_free(GMutex *mutex); ^ 4 warnings and 4 errors generated. gmake[2]: *** [empathy_av-empathy-audio-sink.o] Error 1 gmake[2]: Leaving directory `/usr/ports/net-im/empathy/work/empathy-2.34.0/src' gmake[1]: *** [install] Error 2 gmake[1]: Leaving directory `/usr/ports/net-im/empathy/work/empathy-2.34.0/src' gmake: *** [install-recursive] Error 1 *** [do-install] Error code 2 Stop in /usr/ports/net-im/empathy. *** [install] Error code 1 Stop in /usr/ports/net-im/empathy. *** [reinstall] Error code 1 Stop in /usr/ports/net-im/empathy. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20130310-63309-ggpcwf-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=empathy-2.32.2_3 UPGRADE_PORT_VER=2.32.2_3 make -DINSTALLS_DEPENDS reinstall --- Updating dependency info --- Restoring the old version Installing empathy-2.32.2_3...warning: undefined reference to schema id='org.gnome.desktop.default-applications.at'/ warning: undefined reference to schema id='org.gnome.Empathy.accounts'/ done --- Removing old package' ** Fix the installation problem and try again. --- Installation of net-im/empathy ended at: Sun, 10 Mar 2013 16:17:01 -0500 (consumed 00:00:08) --- Upgrade of net-im/empathy ended at: Sun, 10 Mar 2013 16:17:01 -0500 (consumed 00:03:55) --- ** Upgrade tasks 2: 1 done, 0 ignored, 0 skipped and 1 failed ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org