From: "S.Kimura" <rikim...@a011.broada.jp>
To: freebsd-users-jp@jp.freebsd.org
Cc: rikim...@a011.broada.jp
Subject: warning ports/emacs
Date: Mon, 2 Aug 2010 10:11:10 +0900
Organization: si:siba
X-Mailer: Sylpheed 3.0.3 (GTK+ 2.20.1; i386-xnote-freebsd8.1)

椎柴の木村です。

ports の emacs ですが、コンパイルの途中で warning が出ます。
ビルドは出来て、インストールも可能ですが、私は emacs を常用していないので、詳細は
よく分らない状態です。
(長い行に改行を施して引用)。

> gmake[1]: Entering directory 
> `/y2/tmp/y2/ports/editors/emacs/work/emacs-23.2/src'
> cc -c -I/usr/X11R6/include -I/usr/local/include -L/usr/local/lib  
> -I/usr/local/include -Demacs 
-DHAVE_CONFIG_H  -I. -I/y2/tmp/y2/ports/editors/emacs/work/emacs-23.2/src 
-I/usr/X11R6/include 
-I/usr/local/include -L/usr/local/lib -I/usr/local/include -D_THREAD_SAFE 
-D_REENTRANT 
-I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include 
-I/usr/local/include/atk-1.0 
-I/usr/local/include/cairo -I/usr/local/include/pango-1.0 
-I/usr/local/include/gio-1 -2.0/ 
-I/usr/local/include -I/usr/local/include/glib-2.0 
-I/usr/local/lib/glib-2.0/include 
-I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -D_THREAD_SAFE 
-I/usr/local/include 
-I/usr/local/include/freetype2  -D_REENTRANT -D_THREAD_SAFE 
-I/usr/local/include/librsvg-2 
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include 
-I/usr/local/include/gtk-2.0 
-I/usr/local/include/cairo -I/usr/local/include/pixman-1 
-I/usr/local/include/freetype2 
-I/usr/local/include -I/usr/local/include/dbus-1.0 
-I/usr/local/include/dbus-1.0/include -DORBIT2=1 
-D_REENTRANT -I/usr/local/include/gconf/2 -I/usr/local/include/orbit-2.0 
-I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include 
-I/usr/local/include/glib-2.0 
-I/usr/local/lib/glib-2.0/include -O2 -fno-strict-aliasing -pipe 
-I/usr/local/include/freetype2 
-I/usr/local/include -I/usr/local/include  pre-crt0.c
> cc: unrecognized option '-2.0/'

作業ディレクトリを覗くと、関係あるとおぼしいファィルは次の通り。

src/Makefile.in
| ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I${srcdir} 
C_SWITCH_MACHINE C_SWITCH_SYSTEM 
C_SWITCH_X_SITE C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM C_SWITCH_SYSTEM_TEMACS 
${CFLAGS_SOUND} 
${RSVG_CFLAGS} ${DBUS_CFLAGS} ${GCONF_CFLAGS} ${CFLAGS} @FREETYPE_CFLAGS@ 
@FONTCONFIG_CFLAGS@ 
@LIBOTF_CFLAGS@ @M17N_FLT_CFLAGS@ ${DEPFLAGS}

src/Makefile
| ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I${srcdir} 
-I/usr/X11R6/include 
-I/usr/local/include -L/usr/local/lib -I/usr/local/include -D_THREAD_SAFE 
-D_REENTRANT 
-I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include 
-I/usr/local/include/atk-1.0 
-I/usr/local/include/cairo -I/usr/local/include/pango-1.0 
-I/usr/local/include/gio-1 -2.0/ 
-I/usr/local/include -I/usr/local/include/glib-2.0 
-I/usr/local/lib/glib-2.0/include 
-I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -D_THREAD_SAFE 
-I/usr/local/include 
-I/usr/local/include/freetype2 ${CFLAGS_SOUND} ${RSVG_CFLAGS} ${DBUS_CFLAGS} 
${GCONF_CFLAGS} 
${CFLAGS} -I/usr/local/include/freetype2 -I/usr/local/include 
-I/usr/local/include ${DEPFLAGS}

-I/usr/local/include/gio-1 -2.0/
の箇所で warning が出ているようです。'unix' が '1 ' に置換されています。(cpp の出力か)。
どこを、どう変更すべきか、対処法が私かたでは解らないので、どなたか修正して send-pr なり、
何なり、対応して頂けないでしょうか。

--
木村成一 @千葉県銚子市小長町

メールによる返信