Kaz Kojima
kkoji****@rr*****
2005年 1月 19日 (水) 08:16:39 JST
小島です。 Junichi Akita <akita****@is*****> wrote: > その前に、まずはlibgphoto2-2.1.5(いままでは-2.1.4でした)を > ./configure --with-drivers=ptp2,canon > make > したところ、別のエラーがでていました。 > ---- > (中略) > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../intl > -DIOLIBS=\"/usr/local/lib/gphoto2_port/0.5.1\" -DLOCALEDIR=\"/usr/local/share/locale\" -g -O2 -g -Wall -Wmissin > g-declarations -Wmissing-prototypes -MT gphoto2-port-info-list.lo -MD -MP -MF .deps/gphoto2-port-info-list.Tpo -c gphoto2-port-info-list.c -fPIC -DPIC -o .libs/gphoto2-port-info-list.o > In file included from gphoto2-port-info-list.c:35: > gphoto2-port-log.h:49: argument format specified for non-function `GPLogFunc' > make[2]: *** [gphoto2-port-info-list.lo] Error 1 > > これはいったい・・・ すでに解決しているような気がしますが typedef void (* GPLogFunc) (GPLogLevel level, const char *domain, const char *format, va_list args, void *data) #if (__GNUC__ >= 3) __attribute__((__format__(printf,3,0))) #endif というのが gcc-3.0 ではうまく扱えないので引っかかっているの だろうと思います。 (__GNUC__ >= 3) を (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)) とすると逃げられるのではないでしょうか。 # 手元の環境は gcc-3.4.3 です