分页: 1 / 1

我刚编译 gsopcast 出现了 一些问题 想问

发表于 : 2009-03-15 17:08
lvtea
我刚编译 gsopcast 出现了 一些问题
$./configure

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for intltool >= 0.35.0... 0.36.2 found
checking for perl... /usr/bin/perl
checking for XML::Parser... ok
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for DEPS... yes
checking for ALSA CFLAGS...
checking for ALSA LDFLAGS... -lasound -lm -ldl -lpthread
checking for libasound headers version >= 0.9.0... found.
checking for snd_ctl_open in -lasound... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking for size_t... yes
checking whether closedir returns void... no
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether gcc needs -traditional... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking return type of signal handlers... void
checking for dup2... yes
checking for gethostbyname... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for regcomp... yes
checking for setlocale... yes
checking for socket... yes
checking for strdup... yes
checking for strstr... yes
checking for strtol... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for locale.h... (cached) yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
configure: creating ./config.status
config.status: creating Makefile
config.status: creating data/gsopcast.desktop.in
config.status: creating data/Makefile
config.status: creating po/Makefile.in
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing intltool commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands



$make


make all-recursive
make[1]: 正在进入目录 `/home/ralph/桌面/gsopcast-0.4.0'
Making all in po
make[2]: 正在进入目录 `/home/ralph/桌面/gsopcast-0.4.0/po'
file=`echo es | sed 's,.*/,,'`.gmo \
&& rm -f $file && /usr/bin/msgfmt -o $file es.po
file=`echo sv | sed 's,.*/,,'`.gmo \
&& rm -f $file && /usr/bin/msgfmt -o $file sv.po
file=`echo zh_CN | sed 's,.*/,,'`.gmo \
&& rm -f $file && /usr/bin/msgfmt -o $file zh_CN.po
make[2]:正在离开目录 `/home/ralph/桌面/gsopcast-0.4.0/po'
Making all in src
make[2]: 正在进入目录 `/home/ralph/桌面/gsopcast-0.4.0/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DGSOPCAST_LOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -MT callbacks.o -MD -MP -MF .deps/callbacks.Tpo -c -o callbacks.o callbacks.cc
callbacks.cc: In function ‘gboolean vKeyPressReleaseCallback(GtkWidget*, GdkEventKey*)’:
callbacks.cc:615: 警告: 忽略声明有 warn_unused_result 属性的‘ssize_t write(int, const void*, size_t)’的返回值
mv -f .deps/callbacks.Tpo .deps/callbacks.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DGSOPCAST_LOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -MT fork.o -MD -MP -MF .deps/fork.Tpo -c -o fork.o fork.cc
fork.cc: In function ‘gboolean handle_stdout_pipe(GIOChannel*, GIOCondition, void*)’:
fork.cc:62: 错误: ‘strstr’在此作用域中尚未声明
fork.cc: In function ‘void fork_sop(char*)’:
fork.cc:118: 错误: ‘strdup’在此作用域中尚未声明
fork.cc:125: 警告: 不建议使用从字符串常量到‘char*’的转换
fork.cc:141: 警告: 不建议使用从字符串常量到‘char*’的转换
fork.cc: In function ‘void fork_player()’:
fork.cc:182: 错误: ‘strdup’在此作用域中尚未声明
fork.cc:186: 错误: ‘strtok_r’在此作用域中尚未声明
fork.cc:189: 错误: ‘strcat’在此作用域中尚未声明
fork.cc: In function ‘void kill_player()’:
fork.cc:254: 错误: ‘strcat’在此作用域中尚未声明
fork.cc:257: 错误: ‘strcmp’在此作用域中尚未声明
fork.cc:276: 错误: ‘memchr’在此作用域中尚未声明
fork.cc:279: 错误: ‘strstr’在此作用域中尚未声明
make[2]: *** [fork.o] 错误 1
make[2]:正在离开目录 `/home/ralph/桌面/gsopcast-0.4.0/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/ralph/桌面/gsopcast-0.4.0'
make: *** [all] 错误 2
$

Re: 我刚编译 gsopcast 出现了 一些问题 想问

发表于 : 2009-03-15 17:46
lvtea
在header.h里加上string.h后


$ ./configure

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for intltool >= 0.35.0... 0.36.2 found
checking for perl... /usr/bin/perl
checking for XML::Parser... ok
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for DEPS... yes
checking for ALSA CFLAGS...
checking for ALSA LDFLAGS... -lasound -lm -ldl -lpthread
checking for libasound headers version >= 0.9.0... found.
checking for snd_ctl_open in -lasound... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking for size_t... yes
checking whether closedir returns void... no
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether gcc needs -traditional... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking return type of signal handlers... void
checking for dup2... yes
checking for gethostbyname... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for regcomp... yes
checking for setlocale... yes
checking for socket... yes
checking for strdup... yes
checking for strstr... yes
checking for strtol... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for locale.h... (cached) yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
configure: creating ./config.status
config.status: creating Makefile
config.status: creating data/gsopcast.desktop.in
config.status: creating data/Makefile
config.status: creating po/Makefile.in
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing intltool commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands


$ make


make all-recursive
make[1]: 正在进入目录 `/home/ralph/桌面/gsopcast-0.4.0'
Making all in po
make[2]: 正在进入目录 `/home/ralph/桌面/gsopcast-0.4.0/po'
make[2]: 没有什么可以做的为 `all'。
make[2]:正在离开目录 `/home/ralph/桌面/gsopcast-0.4.0/po'
Making all in src
make[2]: 正在进入目录 `/home/ralph/桌面/gsopcast-0.4.0/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DGSOPCAST_LOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -MT callbacks.o -MD -MP -MF .deps/callbacks.Tpo -c -o callbacks.o callbacks.cc
In file included from callbacks.cc:21:
header.h:29:21: warning: extra tokens at end of #include directive
callbacks.cc: In function ‘gboolean vKeyPressReleaseCallback(GtkWidget*, GdkEventKey*)’:
callbacks.cc:615: 警告: 忽略声明有 warn_unused_result 属性的‘ssize_t write(int, const void*, size_t)’的返回值
mv -f .deps/callbacks.Tpo .deps/callbacks.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DGSOPCAST_LOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -MT fork.o -MD -MP -MF .deps/fork.Tpo -c -o fork.o fork.cc
In file included from fork.cc:22:
header.h:29:21: warning: extra tokens at end of #include directive
fork.cc: In function ‘void fork_sop(char*)’:
fork.cc:125: 警告: 不建议使用从字符串常量到‘char*’的转换
fork.cc:141: 警告: 不建议使用从字符串常量到‘char*’的转换
mv -f .deps/fork.Tpo .deps/fork.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DGSOPCAST_LOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -MT iorecord.o -MD -MP -MF .deps/iorecord.Tpo -c -o iorecord.o iorecord.cc
In file included from iorecord.cc:21:
header.h:29:21: warning: extra tokens at end of #include directive
iorecord.cc: In function ‘gboolean launch_record(void*)’:
iorecord.cc:40: 警告: 不建议使用从字符串常量到‘char*’的转换
iorecord.cc:44: 警告: 忽略声明有 warn_unused_result 属性的‘ssize_t write(int, const void*, size_t)’的返回值
iorecord.cc: In function ‘gboolean io_socket_record(GIOChannel*, GIOCondition, void*)’:
iorecord.cc:143: 警告: 忽略声明有 warn_unused_result 属性的‘size_t fwrite(const void*, size_t, size_t, FILE*)’的返回值
mv -f .deps/iorecord.Tpo .deps/iorecord.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DGSOPCAST_LOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -MT iostatistics.o -MD -MP -MF .deps/iostatistics.Tpo -c -o iostatistics.o iostatistics.cc
In file included from iostatistics.cc:21:
header.h:29:21: warning: extra tokens at end of #include directive
iostatistics.cc: In function ‘gboolean statistics_monitor(void*)’:
iostatistics.cc:43: 警告: 不建议使用从字符串常量到‘char*’的转换
iostatistics.cc:63: 警告: 忽略声明有 warn_unused_result 属性的‘ssize_t write(int, const void*, size_t)’的返回值
iostatistics.cc: In function ‘gboolean echo(void*)’:
iostatistics.cc:159: 警告: 忽略声明有 warn_unused_result 属性的‘ssize_t write(int, const void*, size_t)’的返回值
mv -f .deps/iostatistics.Tpo .deps/iostatistics.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DGSOPCAST_LOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cc
In file included from main.cc:27:
header.h:29:21: warning: extra tokens at end of #include directive
mv -f .deps/main.Tpo .deps/main.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DGSOPCAST_LOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -MT sound.o -MD -MP -MF .deps/sound.Tpo -c -o sound.o sound.cc
In file included from sound.cc:21:
header.h:29:21: warning: extra tokens at end of #include directive
mv -f .deps/sound.Tpo .deps/sound.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DGSOPCAST_LOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -MT channel.o -MD -MP -MF .deps/channel.Tpo -c -o channel.o channel.cc
In file included from channel.cc:24:
header.h:29:21: warning: extra tokens at end of #include directive
mv -f .deps/channel.Tpo .deps/channel.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DGSOPCAST_LOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -MT iochannel.o -MD -MP -MF .deps/iochannel.Tpo -c -o iochannel.o iochannel.cc
In file included from iochannel.cc:1:
header.h:29:21: warning: extra tokens at end of #include directive
mv -f .deps/iochannel.Tpo .deps/iochannel.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DGSOPCAST_LOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -MT iosignal.o -MD -MP -MF .deps/iosignal.Tpo -c -o iosignal.o iosignal.cc
In file included from iosignal.cc:1:
header.h:29:21: warning: extra tokens at end of #include directive
mv -f .deps/iosignal.Tpo .deps/iosignal.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DGSOPCAST_LOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -MT loadsave.o -MD -MP -MF .deps/loadsave.Tpo -c -o loadsave.o loadsave.cc
In file included from loadsave.cc:21:
header.h:29:21: warning: extra tokens at end of #include directive
loadsave.cc: In function ‘void save_config()’:
loadsave.cc:143: 警告: 忽略声明有 warn_unused_result 属性的‘size_t fwrite(const void*, size_t, size_t, FILE*)’的返回值
loadsave.cc:149: 警告: 忽略声明有 warn_unused_result 属性的‘size_t fwrite(const void*, size_t, size_t, FILE*)’的返回值
loadsave.cc:155: 警告: 忽略声明有 warn_unused_result 属性的‘size_t fwrite(const void*, size_t, size_t, FILE*)’的返回值
loadsave.cc:161: 警告: 忽略声明有 warn_unused_result 属性的‘size_t fwrite(const void*, size_t, size_t, FILE*)’的返回值
loadsave.cc:166: 警告: 忽略声明有 warn_unused_result 属性的‘size_t fwrite(const void*, size_t, size_t, FILE*)’的返回值
loadsave.cc:171: 警告: 忽略声明有 warn_unused_result 属性的‘size_t fwrite(const void*, size_t, size_t, FILE*)’的返回值
loadsave.cc: In function ‘void load_tree_state()’:
loadsave.cc:195: 警告: 忽略声明有 warn_unused_result 属性的‘size_t fread(void*, size_t, size_t, FILE*)’的返回值
loadsave.cc: In function ‘void save_tree_state()’:
loadsave.cc:220: 警告: 忽略声明有 warn_unused_result 属性的‘size_t fwrite(const void*, size_t, size_t, FILE*)’的返回值
mv -f .deps/loadsave.Tpo .deps/loadsave.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DGSOPCAST_LOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -MT unique.o -MD -MP -MF .deps/unique.Tpo -c -o unique.o unique.cc
mv -f .deps/unique.Tpo .deps/unique.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DGSOPCAST_LOCALEDIR=\""/usr/local/share/locale"\" -g -O2 -MT socket.o -MD -MP -MF .deps/socket.Tpo -c -o socket.o socket.cc
In file included from socket.cc:21:
header.h:29:21: warning: extra tokens at end of #include directive
mv -f .deps/socket.Tpo .deps/socket.Po
g++ -g -O2 -o gsopcast callbacks.o fork.o iorecord.o iostatistics.o main.o sound.o channel.o iochannel.o iosignal.o loadsave.o unique.o socket.o -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lgio-2.0 -lcairo -lpango-1.0 -lfreetype -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lasound -lm -ldl -lpthread
make[2]:正在离开目录 `/home/ralph/桌面/gsopcast-0.4.0/src'
Making all in data
make[2]: 正在进入目录 `/home/ralph/桌面/gsopcast-0.4.0/data'
LC_ALL=C ../intltool-merge -d -u -c ../po/.intltool-merge-cache ../po gsopcast.desktop.in gsopcast.desktop
Generating and caching the translation database
NOTICE: ../po/sv.po is not in UTF-8 but iso-8859-1, converting...
Merging translations into gsopcast.desktop.
make[2]:正在离开目录 `/home/ralph/桌面/gsopcast-0.4.0/data'
make[2]: 正在进入目录 `/home/ralph/桌面/gsopcast-0.4.0'
make[2]:正在离开目录 `/home/ralph/桌面/gsopcast-0.4.0'
make[1]:正在离开目录 `/home/ralph/桌面/gsopcast-0.4.0'

$ sudo make install
[sudo] password for ralph:
Making install in po
make[1]: 正在进入目录 `/home/ralph/桌面/gsopcast-0.4.0/po'
/bin/sh /home/ralph/桌面/gsopcast-0.4.0/install-sh -d /usr/local/share/locale
linguas="es sv zh_CN "; \
for lang in $linguas; do \
dir=/usr/local/share/locale/$lang/LC_MESSAGES; \
/bin/sh /home/ralph/桌面/gsopcast-0.4.0/install-sh -d $dir; \
if test -r $lang.gmo; then \
/usr/bin/install -c -m 644 $lang.gmo $dir/gsopcast.mo; \
echo "installing $lang.gmo as $dir/gsopcast.mo"; \
else \
/usr/bin/install -c -m 644 ./$lang.gmo $dir/gsopcast.mo; \
echo "installing ./$lang.gmo as" \
"$dir/gsopcast.mo"; \
fi; \
if test -r $lang.gmo.m; then \
/usr/bin/install -c -m 644 $lang.gmo.m $dir/gsopcast.mo.m; \
echo "installing $lang.gmo.m as $dir/gsopcast.mo.m"; \
else \
if test -r ./$lang.gmo.m ; then \
/usr/bin/install -c -m 644 ./$lang.gmo.m \
$dir/gsopcast.mo.m; \
echo "installing ./$lang.gmo.m as" \
"$dir/gsopcast.mo.m"; \
else \
true; \
fi; \
fi; \
done
installing es.gmo as /usr/local/share/locale/es/LC_MESSAGES/gsopcast.mo
installing sv.gmo as /usr/local/share/locale/sv/LC_MESSAGES/gsopcast.mo
installing zh_CN.gmo as /usr/local/share/locale/zh_CN/LC_MESSAGES/gsopcast.mo
make[1]:正在离开目录 `/home/ralph/桌面/gsopcast-0.4.0/po'
Making install in src
make[1]: 正在进入目录 `/home/ralph/桌面/gsopcast-0.4.0/src'
make[2]: 正在进入目录 `/home/ralph/桌面/gsopcast-0.4.0/src'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
/usr/bin/install -c 'gsopcast' '/usr/local/bin/gsopcast'
make[2]: 没有什么可以做的为 `install-data-am'。
make[2]:正在离开目录 `/home/ralph/桌面/gsopcast-0.4.0/src'
make[1]:正在离开目录 `/home/ralph/桌面/gsopcast-0.4.0/src'
Making install in data
make[1]: 正在进入目录 `/home/ralph/桌面/gsopcast-0.4.0/data'
make[2]: 正在进入目录 `/home/ralph/桌面/gsopcast-0.4.0/data'
make[2]: 没有什么可以做的为 `install-exec-am'。
test -z "/usr/local/share/pixmaps" || /bin/mkdir -p "/usr/local/share/pixmaps"
/usr/bin/install -c -m 644 'gsopcast.png' '/usr/local/share/pixmaps/gsopcast.png'
test -z "/usr/local/share/applications" || /bin/mkdir -p "/usr/local/share/applications"
/usr/bin/install -c -m 644 'gsopcast.desktop' '/usr/local/share/applications/gsopcast.desktop'
make[2]:正在离开目录 `/home/ralph/桌面/gsopcast-0.4.0/data'
make[1]:正在离开目录 `/home/ralph/桌面/gsopcast-0.4.0/data'
make[1]: 正在进入目录 `/home/ralph/桌面/gsopcast-0.4.0'
make[2]: 正在进入目录 `/home/ralph/桌面/gsopcast-0.4.0'
make[2]: 没有什么可以做的为 `install-exec-am'。
make[2]: 没有什么可以做的为 `install-data-am'。
make[2]:正在离开目录 `/home/ralph/桌面/gsopcast-0.4.0'
make[1]:正在离开目录 `/home/ralph/桌面/gsopcast-0.4.0'
$

Re: 我刚编译 gsopcast 出现了 一些问题 想问

发表于 : 2009-03-15 18:06
lvtea
还不能用呀 ????????? :em20 :em20 :em20

Re: 我刚编译 gsopcast 出现了 一些问题 想问

发表于 : 2009-03-20 14:29
darasion
我这也出现这些问题了哦。

Re: 我刚编译 gsopcast 出现了 一些问题 想问

发表于 : 2009-03-20 14:41
darasion
不过,我加上了string.h就好用了。呵呵。

用sudo checkinstall比较好一点。

Re: 我刚编译 gsopcast 出现了 一些问题 想问

发表于 : 2009-03-20 14:57
lerosua
源码没维护啊?没修正gcc4.3编译的问题

Re: 我刚编译 gsopcast 出现了 一些问题 想问

发表于 : 2009-03-28 11:26
benico
ake all-recursive
make[1]: Entering directory `/home/benico/公共的/gsopcast-0.4.0'
Making all in po
make[2]: Entering directory `/home/benico/公共的/gsopcast-0.4.0/po'
file=`echo es | sed 's,.*/,,'`.gmo \
&& rm -f $file && -o $file es.po
/bin/sh: -o: not found
make[2]: *** [es.gmo] Error 127
make[2]: Leaving directory `/home/benico/公共的/gsopcast-0.4.0/po'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/benico/公共的/gsopcast-0.4.0'
make: *** [all] Error 2

Re: 我刚编译 gsopcast 出现了 一些问题 想问

发表于 : 2009-07-11 11:42
vahaha
在header.h中增加#include <string.h>
不要删除原来已经有的#include <string>