administrator@ubuntu:/tmp/gsopcast-0.4.0$ ./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... no checking for mawk... mawk 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
administrator@ubuntu:/tmp/gsopcast-0.4.0/src$ make g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I. -D_REENTRANT -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/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -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: *** [fork.o] 错误 1
怎么回事?望高手指点,谢谢!
|