[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[gopher] gophervr compilation trouble



(I apologize if this hits the list twice, but my posts haven't been
showing up on the list so I resubscribed.)

I'm trying to build the latest gophervr source from Floodgap
(gopher://gopher.floodgap.com/9/gophervr/gophervr-src.zip) on my Ubuntu
10.04 LTS box but am getting errors related to /usr/include/string.h (!)
from the compile step for gopherto3d.

I'm attaching a log of output from from 'make linux'. Any suggestions on
how to proceed?

-- 
David Meyer
Takarazuka, Japan
papa@freeshell.org
*** WARNING: THIS TARGET IS NOT TESTED ***
sleep 5
(cd gopher ; ./configure )
loading cache ./config.cache
----------------------------------------------------------------------
You are about to build the Gopher system for Unix
Please read the file doc/INSTALL for full information on
building Gopher
 
Gopher is copyrighted software, see the file Copyright in
the distribution for more information and limitations.
----------------------------------------------------------------------
 
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln -s works... (cached) yes
checking for ranlib... (cached) ranlib
checking whether make sets ${MAKE}... (cached) yes
checking for main in -lm... (cached) yes
checking for connect... yes
checking for gethostname... (cached) yes
checking for re_comp in -lcompat... (cached) no
checking for main in -lmalloc... (cached) no
checking for main in -lcurses... (cached) yes
checking for main in -ltermcap... (cached) yes
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for term.h... (cached) yes
checking for re_comp.h... (cached) yes
checking for regex.h... (cached) yes
checking for crypt.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for time.h... (cached) yes
checking for ctype.h... (cached) yes
checking for limits.h... (cached) yes
checking for locale.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for syslog.h... (cached) yes
checking for unistd.h... (cached) yes
checking for malloc.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for libgen.h... (cached) yes
checking for regexp.h... (cached) yes
checking for working const... (cached) yes
checking for uid_t in sys/types.h... (cached) yes
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking whether gcc needs -traditional... (cached) no
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking return type of signal handlers... (cached) void
checking for working strcoll... (cached) yes
checking for vfork.h... (cached) no
checking for working vfork... (cached) yes
checking for vprintf... (cached) yes
checking for getloadavg... (cached) yes
checking for getloadavg... (cached) yes
checking whether getloadavg requires setgid... (cached) no
checking for main in -lcurses... (cached) yes
checking for main in -ltermcap... (cached) yes
checking for bzero... (cached) yes
checking for gethostname... (cached) yes
checking for fgetpwent... (cached) yes
checking for get_current_dir_name... (cached) yes
checking for getcwd... (cached) yes
checking for getwd... (cached) yes
checking for madvise... (cached) yes
checking for mkdir... (cached) yes
checking for mkstemp... (cached) yes
checking for mktime... (cached) yes
checking for putenv... (cached) yes
checking for re_comp... (cached) yes
checking for select... (cached) yes
checking for seteuid... (cached) yes
checking for setsid... (cached) yes
checking for socket... (cached) yes
checking for strcasecmp... (cached) yes
checking for strcspn... (cached) yes
checking for strdup... (cached) yes
checking for strerror... (cached) yes
checking for strftime... (cached) yes
checking for strspn... (cached) yes
checking for strstr... (cached) yes
checking for strtol... (cached) yes
checking for sysconf... (cached) yes
checking for tempnam... (cached) yes
checking for tzset... (cached) yes
checking for wait3... (cached) yes
checking for waitpid... (cached) yes
checking for strcasestr... (cached) yes
checking for regcomp... (cached) yes
checking for regfree... (cached) yes
checking for wattron... (cached) yes
checking for wattroff... (cached) yes
checking for wstandout... (cached) yes
checking for wstandend... (cached) yes
creating ./config.status
creating Makefile
creating Makefile.config
creating object/Makefile
creating gopher/Makefile
creating gopher/locales/Makefile
creating doc/Makefile
creating gophfilt/Makefile
creating config.h
config.h is unchanged
(cd gopher/object ; make all )
make[1]: Entering directory `/home/papa/gophervr/gopher/object'
make[1]: Leaving directory `/home/papa/gophervr/gopher/object'
(cd libtracker; make  MACHINE=linux)
make[1]: Entering directory `/home/papa/gophervr/libtracker'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/papa/gophervr/libtracker'
(cd libvogl; 	make  linux)
make[1]: Entering directory `/home/papa/gophervr/libvogl'
cd src; make -w -f Makefile \
	CC="gcc -ansi -pedantic -Wall -Wstrict-prototypes" DEVICES="-DX11 -DUNIX" DOBJS="../drivers/X11.o" \
	MCFLAGS="-ffast-math -g -O3 -fomit-frame-pointer -finline-functions -fexpensive-optimizations -DNO_MULTIBUF" 
make[2]: Entering directory `/home/papa/gophervr/libvogl/src'
make[2]: `../../lib/libvogl.a' is up to date.
make[2]: Leaving directory `/home/papa/gophervr/libvogl/src'
cd hershey/src; make -w -f Makefile \
			CC="gcc -ansi -pedantic -Wall -Wstrict-prototypes" LIBS="-lX11 -lm" \
			FONTLIB="/usr/local/lib/hershey/" \
			MCFLAGS="-ffast-math -g -O3 -fomit-frame-pointer -finline-functions -fexpensive-optimizations -DNO_MULTIBUF"
make[2]: Entering directory `/home/papa/gophervr/libvogl/hershey/src'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/papa/gophervr/libvogl/hershey/src'
make[1]: Leaving directory `/home/papa/gophervr/libvogl'
(cd gophervr; 	cp Imakefile.linux Imakefile ; xmkmf; make )
mv -f Makefile Makefile.bak
imake -DUseInstalled -I/usr/lib/X11/config
make[1]: Entering directory `/home/papa/gophervr/gophervr'
gcc -m32 -g -O    -I../gopher -I../gopher/object -I../libvogl/src     -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 				  				  -DFUNCPROTO=15 -DNARROWPROTO       -c -o gopherto3d.o gopherto3d.c
In file included from ../gopher/object/STRstring.h:76,
                 from ../gopher/object/GSgopherobj.h:120,
                 from ../gopher/object/GDgopherdir.h:50,
                 from gopherto3d.c:4:
/usr/include/string.h:546: error: expected declaration specifiers or â??...â?? before â??__locale_tâ??
/usr/include/string.h:547: error: nonnull argument with out-of-range operand number (argument 1, operand 3)
/usr/include/string.h:550: error: expected declaration specifiers or â??...â?? before â??__locale_tâ??
/usr/include/string.h:551: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
gopherto3d.c: In function â??GDrenderSceneâ??:
gopherto3d.c:178: warning: initialization from incompatible pointer type
gopherto3d.c:179: warning: passing argument 1 of â??strlenâ?? from incompatible pointer type
/usr/include/string.h:397: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:179: warning: passing argument 1 of â??strlenâ?? from incompatible pointer type
/usr/include/string.h:397: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:179: warning: passing argument 1 of â??__builtin_strcmpâ?? from incompatible pointer type
gopherto3d.c:179: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:179: warning: passing argument 1 of â??strlenâ?? from incompatible pointer type
/usr/include/string.h:397: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:179: warning: passing argument 1 of â??__builtin_strcmpâ?? from incompatible pointer type
gopherto3d.c:179: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:179: warning: passing argument 1 of â??__builtin_strcmpâ?? from incompatible pointer type
gopherto3d.c:179: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:179: warning: passing argument 1 of â??__builtin_strcmpâ?? from incompatible pointer type
gopherto3d.c:179: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:179: warning: passing argument 1 of â??strncmpâ?? from incompatible pointer type
/usr/include/string.h:145: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:180: warning: passing argument 1 of â??strlenâ?? from incompatible pointer type
/usr/include/string.h:397: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:180: warning: passing argument 1 of â??strlenâ?? from incompatible pointer type
/usr/include/string.h:397: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:180: warning: passing argument 1 of â??__builtin_strcmpâ?? from incompatible pointer type
gopherto3d.c:180: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:180: warning: passing argument 1 of â??strlenâ?? from incompatible pointer type
/usr/include/string.h:397: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:180: warning: passing argument 1 of â??__builtin_strcmpâ?? from incompatible pointer type
gopherto3d.c:180: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:180: warning: passing argument 1 of â??__builtin_strcmpâ?? from incompatible pointer type
gopherto3d.c:180: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:180: warning: passing argument 1 of â??__builtin_strcmpâ?? from incompatible pointer type
gopherto3d.c:180: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:180: warning: passing argument 1 of â??strncmpâ?? from incompatible pointer type
/usr/include/string.h:145: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c: In function â??SelectGopherDirâ??:
gopherto3d.c:716: warning: initialization from incompatible pointer type
gopherto3d.c:719: warning: passing argument 1 of â??strlenâ?? from incompatible pointer type
/usr/include/string.h:397: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:719: warning: passing argument 1 of â??strlenâ?? from incompatible pointer type
/usr/include/string.h:397: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:719: warning: passing argument 1 of â??__builtin_strcmpâ?? from incompatible pointer type
gopherto3d.c:719: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:719: warning: passing argument 1 of â??strlenâ?? from incompatible pointer type
/usr/include/string.h:397: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:719: warning: passing argument 1 of â??__builtin_strcmpâ?? from incompatible pointer type
gopherto3d.c:719: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:719: warning: passing argument 1 of â??__builtin_strcmpâ?? from incompatible pointer type
gopherto3d.c:719: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:719: warning: passing argument 1 of â??__builtin_strcmpâ?? from incompatible pointer type
gopherto3d.c:719: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:719: warning: passing argument 1 of â??strncmpâ?? from incompatible pointer type
/usr/include/string.h:145: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:719: warning: passing argument 1 of â??strlenâ?? from incompatible pointer type
/usr/include/string.h:397: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:719: warning: passing argument 1 of â??strlenâ?? from incompatible pointer type
/usr/include/string.h:397: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:719: warning: passing argument 1 of â??__builtin_strcmpâ?? from incompatible pointer type
gopherto3d.c:719: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:719: warning: passing argument 1 of â??strlenâ?? from incompatible pointer type
/usr/include/string.h:397: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:719: warning: passing argument 1 of â??__builtin_strcmpâ?? from incompatible pointer type
gopherto3d.c:719: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:719: warning: passing argument 1 of â??__builtin_strcmpâ?? from incompatible pointer type
gopherto3d.c:719: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:719: warning: passing argument 1 of â??__builtin_strcmpâ?? from incompatible pointer type
gopherto3d.c:719: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:719: warning: passing argument 1 of â??strncmpâ?? from incompatible pointer type
/usr/include/string.h:145: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:720: warning: passing argument 1 of â??__builtin_strchrâ?? from incompatible pointer type
gopherto3d.c:720: note: expected â??const char *â?? but argument is of type â??struct String *â??
gopherto3d.c:622: warning: ignoring return value of â??systemâ??, declared with attribute warn_unused_result
gopherto3d.c:631: warning: ignoring return value of â??systemâ??, declared with attribute warn_unused_result
gopherto3d.c:676: warning: ignoring return value of â??systemâ??, declared with attribute warn_unused_result
gopherto3d.c:707: warning: ignoring return value of â??systemâ??, declared with attribute warn_unused_result
gopherto3d.c:727: warning: ignoring return value of â??systemâ??, declared with attribute warn_unused_result
make[1]: *** [gopherto3d.o] Error 1
make[1]: Leaving directory `/home/papa/gophervr/gophervr'
make: *** [linux] Error 2
_______________________________________________
Gopher-Project mailing list
Gopher-Project@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/gopher-project

Reply to: