[Anthy-dev 1055] uim-helper.hのinclude path

Back to archive index

YamaKen yamak****@bp*****
2004年 9月 19日 (日) 07:17:33 JST


ヤマケンです。

しばらくぶりにuimをコンパイルしたらエラーに出くわしたので報告し
ます。どうやって修正するのが正しいのか自分ではちょっと判断できな
かったもので。

uim-helper.cにある以下の#includeを処理するためにinclude pathが使
われますが、

#include <uim/uim-helper.h>

本来最優先で検索されるべき ../uim/uim-helper.h よりもCPPFLAGSで
指定された/usr/local/includeの方が優先度が高くなってしまっていま
す。このためuim-helper.hに変更があった時には正常にコンパイルでき
ません。

 gcc -DSCM_FILES=\"/usr/X11R6/share/uim\" -I. -I. -I. -I/usr/local/include -I/usr/X11R6/include -I.. -g -O2 -Wall -std=gnu89 -pedantic -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -MT libuim_la-uim-helper.lo -MD -MP -MF .deps/libuim_la-uim-helper.Tpo -c uim-helper.c  -fPIC -DPIC -o .libs/libuim_la-uim-helper.o
uim-helper.c:82: error: conflicting types for 'uim_helper_send_message'
/usr/X11R6/include/uim/uim-helper.h:49: error: previous declaration of 'uim_helper_send_message' was here

これを修正するには以下のlibuim_la_CFLAGSに指定されている
$(top_srcdir)が$(DEFAULT_INCLUDES)より前に来るようにする必要があ
りますが、どう修正するのが正しい流儀なのか判断がつきません。詳し
い方お願いします。

uim/Makefile.am
libuim_la_CFLAGS = -I$(top_srcdir)

uim/Makefile:
libuim_la-uim-helper.lo: uim-helper.c
        if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libuim_la_CFLAGS) $(CFLAGS) -MT libuim_la-uim-helper.lo -MD -MP -MF "$(DEPDIR)/libuim_la-uim-helper.Tpo" \

-------------------------------
ヤマケン yamak****@bp*****



Anthy-dev メーリングリストの案内
Back to archive index