pkgsrc-Users archive

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

Fwd: nbpatch on Linux fails



Forwarding to pkgsrc-users.

-------- Original Message --------
Subject: Re: nbpatch on Linux fails
Date: Fri, 26 Jul 2013 14:25:10 +0200
From: Christoph Egger <Christoph_Egger%gmx.de@localhost>
To: joerg%netbsd.org@localhost

On 26.07.13 13:53, Christoph Egger wrote:
> Hi Joerg,
> 
> trying to build lang/python27 it builds devel/nbpatch
> as a dependency.
> nbpatch fails with not finding its nbcompat headers.
> 
> This is the build output:
> 
> => Tool dependency nbpatch-[0-9]*: NOT found
> => Verifying package-install for ../../devel/nbpatch
> ===> Checking for vulnerabilities in nbpatch-20100124
> ===> Configuring for nbpatch-20100124
> => Configuring and building libnbcompat
> configure: WARNING: if you wanted to set the --build type, don't use --host.
>     If a cross compiler is detected then cross compile mode will be used
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... x86_64-unknown-linux-gnu
> checking whether make sets $(MAKE)... yes
> checking for x86_64-unknown-linux-gcc... gcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> 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 for a BSD-compatible install...
> /local/home/chegger/sw/pkgsrc/devel/nbpatch/work/.tools/bin/install -c
> checking whether ln -s works... yes
> checking for x86_64-unknown-linux-ranlib... no
> checking for ranlib... ranlib
> checking for gawk... /bin/awk
> checking for ar... ar
> checking for fparseln in -lutil... no
> checking how to run the C preprocessor... gcc -E
> checking for grep that handles long lines and -e...
> /local/home/chegger/sw/pkgsrc/devel/nbpatch/work/.tools/bin/grep
> checking for egrep...
> /local/home/chegger/sw/pkgsrc/devel/nbpatch/work/.tools/bin/grep -E
> checking for ANSI C header files... yes
> checking whether time.h and sys/time.h may both be included... 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 for stdbool.h that conforms to C99... yes
> checking for _Bool... yes
> checking alloca.h usability... yes
> checking alloca.h presence... yes
> checking for alloca.h... yes
> checking assert.h usability... yes
> checking assert.h presence... yes
> checking for assert.h... yes
> checking ctype.h usability... yes
> checking ctype.h presence... yes
> checking for ctype.h... yes
> checking dirent.h usability... yes
> checking dirent.h presence... yes
> checking for dirent.h... yes
> checking endian.h usability... yes
> checking endian.h presence... yes
> checking for endian.h... yes
> checking err.h usability... yes
> checking err.h presence... yes
> checking for err.h... yes
> checking errno.h usability... yes
> checking errno.h presence... yes
> checking for errno.h... yes
> checking fcntl.h usability... yes
> checking fcntl.h presence... yes
> checking for fcntl.h... yes
> checking fnmatch.h usability... yes
> checking fnmatch.h presence... yes
> checking for fnmatch.h... yes
> checking fts.h usability... yes
> checking fts.h presence... yes
> checking for fts.h... yes
> checking grp.h usability... yes
> checking grp.h presence... yes
> checking for grp.h... yes
> checking for inttypes.h... (cached) yes
> checking libutil.h usability... no
> checking libutil.h presence... no
> checking for libutil.h... no
> checking limits.h usability... yes
> checking limits.h presence... yes
> checking for limits.h... yes
> checking machine/endian.h usability... no
> checking machine/endian.h presence... no
> checking for machine/endian.h... no
> checking ndir.h usability... no
> checking ndir.h presence... no
> checking for ndir.h... no
> checking netdb.h usability... yes
> checking netdb.h presence... yes
> checking for netdb.h... yes
> checking paths.h usability... yes
> checking paths.h presence... yes
> checking for paths.h... yes
> checking pwd.h usability... yes
> checking pwd.h presence... yes
> checking for pwd.h... yes
> checking signal.h usability... yes
> checking signal.h presence... yes
> checking for signal.h... yes
> checking stdarg.h usability... yes
> checking stdarg.h presence... yes
> checking for stdarg.h... yes
> checking stddef.h usability... yes
> checking stddef.h presence... yes
> checking for stddef.h... yes
> checking for stdint.h... (cached) yes
> checking stdio.h usability... yes
> checking stdio.h presence... yes
> checking for stdio.h... yes
> checking for stdlib.h... (cached) yes
> checking for string.h... (cached) yes
> checking sys/byteorder.h usability... no
> checking sys/byteorder.h presence... no
> checking for sys/byteorder.h... no
> checking sys/cdefs.h usability... yes
> checking sys/cdefs.h presence... yes
> checking for sys/cdefs.h... yes
> checking sys/dir.h usability... yes
> checking sys/dir.h presence... yes
> checking for sys/dir.h... yes
> checking sys/endian.h usability... no
> checking sys/endian.h presence... no
> checking for sys/endian.h... no
> checking sys/file.h usability... yes
> checking sys/file.h presence... yes
> checking for sys/file.h... yes
> checking sys/mkdev.h usability... no
> checking sys/mkdev.h presence... no
> checking for sys/mkdev.h... no
> checking sys/ndir.h usability... no
> checking sys/ndir.h presence... no
> checking for sys/ndir.h... no
> checking sys/param.h usability... yes
> checking sys/param.h presence... yes
> checking for sys/param.h... yes
> checking sys/socket.h usability... yes
> checking sys/socket.h presence... yes
> checking for sys/socket.h... yes
> checking for sys/stat.h... (cached) yes
> checking sys/statfs.h usability... yes
> checking sys/statfs.h presence... yes
> checking for sys/statfs.h... yes
> checking sys/statvfs.h usability... yes
> checking sys/statvfs.h presence... yes
> checking for sys/statvfs.h... yes
> checking sys/time.h usability... yes
> checking sys/time.h presence... yes
> checking for sys/time.h... yes
> checking sys/ttycom.h usability... no
> checking sys/ttycom.h presence... no
> checking for sys/ttycom.h... no
> checking for sys/types.h... (cached) yes
> checking sys/uio.h usability... yes
> checking sys/uio.h presence... yes
> checking for sys/uio.h... yes
> checking sys/vfs.h usability... yes
> checking sys/vfs.h presence... yes
> checking for sys/vfs.h... yes
> checking sysexits.h usability... yes
> checking sysexits.h presence... yes
> checking for sysexits.h... yes
> checking termcap.h usability... yes
> checking termcap.h presence... yes
> checking for termcap.h... yes
> checking time.h usability... yes
> checking time.h presence... yes
> checking for time.h... yes
> checking tzfile.h usability... no
> checking tzfile.h presence... no
> checking for tzfile.h... no
> checking for unistd.h... (cached) yes
> checking util.h usability... no
> checking util.h presence... no
> checking for util.h... no
> checking utime.h usability... yes
> checking utime.h presence... yes
> checking for utime.h... yes
> checking for sys/mount.h... yes
> checking glob.h usability... yes
> checking glob.h presence... yes
> checking for glob.h... yes
> checking sys/queue.h usability... yes
> checking sys/queue.h presence... yes
> checking for sys/queue.h... yes
> checking regex.h usability... yes
> checking regex.h presence... yes
> checking for regex.h... yes
> checking for regexec... yes
> checking for va_copy... yes
> checking for __builtin_va_copy... yes
> checking md5.h usability... no
> checking md5.h presence... no
> checking for md5.h... no
> checking for md5.h... (cached) no
> checking rmd160.h usability... no
> checking rmd160.h presence... no
> checking for rmd160.h... no
> checking sha1.h usability... no
> checking sha1.h presence... no
> checking for sha1.h... no
> checking sha2.h usability... no
> checking sha2.h presence... no
> checking for sha2.h... no
> checking for MD5File... no
> checking for RMD160File... no
> checking for SHA1File... no
> checking for SHA512_File... no
> checking for issetugid... no
> checking whether optarg is declared... yes
> checking whether optind is declared... yes
> checking whether optreset is declared... no
> checking getopt.h usability... yes
> checking getopt.h presence... yes
> checking for getopt.h... yes
> checking for struct option... yes
> configure: Using included getopt and getopt_long
> checking vis.h usability... no
> checking vis.h presence... no
> checking for vis.h... no
> checking for __attribute__... yes
> checking for size_t... yes
> checking for uintptr_t... yes
> checking for int8_t... yes
> checking for int16_t... yes
> checking for int32_t... yes
> checking for int64_t... yes
> checking for uint8_t... yes
> checking for uint16_t... yes
> checking for uint32_t... yes
> checking for uint64_t... yes
> checking for long long... yes
> checking for long double... yes
> checking for fsid_t... yes
> checking whether byte ordering is bigendian... no
> checking size of off_t... 8
> checking for stdlib.h... (cached) yes
> checking for GNU libc compatible malloc... yes
> checking whether strerror_r is declared... yes
> checking for strerror_r... yes
> checking whether strerror_r returns char *... no
> checking for pid_t... yes
> 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 for vprintf... yes
> checking for _doprnt... no
> checking whether snprintf is declared... yes
> checking whether vasprintf is declared... no
> checking for asprintf... yes
> checking for err... yes
> checking for fgetln... no
> checking for fnmatch... yes
> checking for fparseln... no
> checking for getenv... yes
> checking for isblank... yes
> checking for lchflags... no
> checking for lchmod... no
> checking for lchown... yes
> checking for lutimes... no
> checking for mkdtemp... yes
> checking for mkstemp... yes
> checking for setenv... yes
> checking for setgroupent... no
> checking for setpassent... no
> checking for setprogname... no
> checking for shquote... no
> checking for snprintf... yes
> checking for statvfs... yes
> checking for strdup... yes
> checking for strerror... yes
> checking for strlcat... no
> checking for strlcpy... no
> checking for strmode... no
> checking for strsep... yes
> checking for strtoll... yes
> checking for unsetenv... yes
> checking for usleep... yes
> checking for utimes... yes
> checking for warn... yes
> checking for library containing socket... none required
> checking for gethostbyname in -lnsl... yes
> checking for socklen_t... yes
> checking for struct addrinfo... yes
> checking for struct in6_addr... yes
> checking for struct sockaddr_in6... yes
> checking for struct sockaddr_storage... yes
> checking for getnameinfo... yes
> checking for gai_strerror... yes
> checking for getaddrinfo... yes
> checking for getenv... (cached) yes
> checking for setenv... (cached) yes
> checking for unsetenv... (cached) yes
> checking for mkdtemp... (cached) yes
> checking for mkstemp... (cached) yes
> checking for bcopy... yes
> checking for bzero... yes
> checking for memset... yes
> checking for memcpy... yes
> checking for setlocale... yes
> checking for getmode... no
> checking for setmode... no
> checking whether endgrent is declared... no
> checking whether endpwent is declared... no
> checking whether setpassent is declared... no
> checking for gid_from_group... no
> checking for group_from_gid... no
> checking for pwcache_groupdb... no
> checking for pwcache_userdb... no
> checking for uid_from_user... no
> checking for user_from_uid... no
> checking for fts_open... yes
> checking for timegm... yes
> checking poll.h usability... yes
> checking poll.h presence... yes
> checking for poll.h... yes
> checking sys/poll.h usability... yes
> checking sys/poll.h presence... yes
> checking for sys/poll.h... yes
> checking for poll.h... (cached) yes
> checking for sys/poll.h... (cached) yes
> checking for poll... yes
> checking if poll() is implemented natively... yes
> checking for getpassphrase... no
> checking for getpgrp... yes
> checking for memmove... yes
> checking for select... yes
> checking for getpgrp... (cached) yes
> checking whether getpgrp requires zero arguments... yes
> checking for struct statfs.f_flags... no
> checking for struct statfs.f_fsize... no
> checking for struct statfs.f_iosize... no
> checking for struct dirent.d_namlen... no
> checking for DIR.dd_fd... no
> checking for dirfd... yes
> checking *printf() support for %lld... yes
> checking for strtoll... (cached) yes
> checking if vsnprintf is standards compliant... yes
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating nbcompat/config.h
> /bin/awk -f nbcompat.awk nbcompat/config.h > nbcompat/nbconfig.h
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c glob.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c md5c.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c md5hl.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c rmd160.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c rmd160hl.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c sha1.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c sha1hl.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c sha2.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c sha2hl.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c getopt.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c getopt_long.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c vis.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c unvis.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c fgetln.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c fparseln.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c lchflags.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c lchmod.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c lutimes.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c setgroupent.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c setpassent.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c setprogname.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c shquote.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c strlcat.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c strlcpy.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c strmode.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c setmode.c
> gcc -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -I. -I.
> -O2 -Wno-error -DHAVE_CONFIG_H -c pwcache.c
> ar cr libnbcompat.a glob.o md5c.o md5hl.o rmd160.o rmd160hl.o sha1.o
> sha1hl.o sha2.o sha2hl.o getopt.o getopt_long.o vis.o unvis.o fgetln.o
> fparseln.o lchflags.o lchmod.o lutimes.o setgroupent.o setpassent.o
> setprogname.o shquote.o strlcat.o strlcpy.o strmode.o setmode.o pwcache.o
> ranlib libnbcompat.a
> ===> Building for nbpatch-20100124
> gcc -O2 -Wno-error -Wno-error  -Werror  -DHAVE_NBCOMPAT_H=1
> -I/local/home/chegger/sw/pkgsrc/devel/nbpatch/work/libnbcompat -c patch.c
> patch.c:36:22: error: nbcompat.h: No such file or directory
> patch.c:42:29: error: nbcompat/getopt.h: No such file or directory
> In file included from patch.c:49:
> common.h:35:30: error: nbcompat/stdbool.h: No such file or directory
> In file included from patch.c:49:
> common.h:82: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'using_plan_a'
> common.h:83: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'out_of_mem'
> common.h:88: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'ok_to_create_file'
> common.h:96: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'toutkeep'
> common.h:97: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'trejkeep'
> common.h:103: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'force'
> common.h:104: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'batch'
> common.h:105: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'verbose'
> common.h:106: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'reverse'
> common.h:107: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'noreverse'
> common.h:108: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'skip_rest_of_patch'
> common.h:110: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'canonicalize'
> common.h:112: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'check_only'
> common.h:113: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'warn_on_invalid_line'
> common.h:114: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'last_line_missing_eol'
> In file included from patch.c:50:
> util.h:33: error: expected declaration specifiers or '...' before 'bool'
> util.h:45: error: expected declaration specifiers or '...' before 'bool'
> In file included from patch.c:51:
> pch.h:40: error: expected specifier-qualifier-list before 'bool'
> pch.h:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before
> 'there_is_another_patch'
> pch.h:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before
> 'another_hunk'
> pch.h:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before
> 'pch_swap'
> In file included from patch.c:54:
> pathnames.h:12:28: error: nbcompat/paths.h: No such file or directory
> patch.c:61: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'using_plan_a'
> patch.c:62: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'out_of_mem'
> patch.c:67: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'ok_to_create_file'
> patch.c:74: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'toutkeep'
> patch.c:75: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'trejkeep'
> patch.c:76: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'warn_on_invalid_line'
> patch.c:77: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'last_line_missing_eol'
> patch.c:83: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'force'
> patch.c:84: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'batch'
> patch.c:85: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'verbose'
> patch.c:86: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'reverse'
> patch.c:87: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'noreverse'
> patch.c:88: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'skip_rest_of_patch'
> patch.c:90: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'canonicalize'
> patch.c:91: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'check_only'
> patch.c:106: error: expected declaration specifiers or '...' before 'bool'
> patch.c:107: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'spew_output'
> patch.c:108: error: expected declaration specifiers or '...' before 'bool'
> patch.c:109: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'patch_match'
> patch.c:110: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'similar'
> patch.c:114: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'remove_empty_files'
> patch.c:117: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'reverse_flag_specified'
> patch.c:147: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'do_defines'
> patch.c: In function 'main':
> patch.c:174: error: '_PATH_TMP' undeclared (first use in this function)
> patch.c:174: error: (Each undeclared identifier is reported only once
> patch.c:174: error: for each function it appears in.)
> patch.c:227: error: 'warn_on_invalid_line' undeclared (first use in this
> function)
> patch.c:227: error: 'true' undeclared (first use in this function)
> patch.c:238: error: 'skip_rest_of_patch' undeclared (first use in this
> function)
> patch.c:254: error: 'out_of_mem' undeclared (first use in this function)
> patch.c:254: error: 'false' undeclared (first use in this function)
> patch.c:264: error: 'force' undeclared (first use in this function)
> patch.c:271: error: 'reverse' undeclared (first use in this function)
> patch.c:280: error: 'noreverse' undeclared (first use in this function)
> patch.c:287: error: 'batch' undeclared (first use in this function)
> patch.c:288: error: 'verbose' undeclared (first use in this function)
> patch.c:349: error: 'using_plan_a' undeclared (first use in this function)
> patch.c:376: error: 'check_only' undeclared (first use in this function)
> patch.c:378: error: 'toutkeep' undeclared (first use in this function)
> patch.c:384: error: 'remove_empty_files' undeclared (first use in this
> function)
> patch.c:417: error: 'trejkeep' undeclared (first use in this function)
> patch.c: In function 'reinitialize_almost_everything':
> patch.c:437: error: 'out_of_mem' undeclared (first use in this function)
> patch.c:451: error: 'reverse' undeclared (first use in this function)
> patch.c:451: error: 'reverse_flag_specified' undeclared (first use in
> this function)
> patch.c:452: error: 'skip_rest_of_patch' undeclared (first use in this
> function)
> patch.c:452: error: 'false' undeclared (first use in this function)
> patch.c: In function 'get_some_switches':
> patch.c:463: error: array type has incomplete element type
> patch.c:464: error: 'no_argument' undeclared (first use in this function)
> patch.c:468: error: 'required_argument' undeclared (first use in this
> function)
> patch.c:500: error: 'optreset' undeclared (first use in this function)
> patch.c:508: error: 'verbose' undeclared (first use in this function)
> patch.c:523: error: 'check_only' undeclared (first use in this function)
> patch.c:523: error: 'true' undeclared (first use in this function)
> patch.c:530: error: 'do_defines' undeclared (first use in this function)
> patch.c:544: error: 'remove_empty_files' undeclared (first use in this
> function)
> patch.c:547: error: 'force' undeclared (first use in this function)
> patch.c:558: error: 'canonicalize' undeclared (first use in this function)
> patch.c:564: error: 'noreverse' undeclared (first use in this function)
> patch.c:578: error: 'reverse' undeclared (first use in this function)
> patch.c:579: error: 'reverse_flag_specified' undeclared (first use in
> this function)
> patch.c:582: error: 'false' undeclared (first use in this function)
> patch.c:585: error: 'batch' undeclared (first use in this function)
> patch.c: In function 'locate_hunk':
> patch.c:650: error: 'verbose' undeclared (first use in this function)
> patch.c:662: error: 'bool' undeclared (first use in this function)
> patch.c:662: error: expected ';' before 'check_after'
> patch.c:663: error: expected ';' before 'check_before'
> patch.c:665: error: 'check_after' undeclared (first use in this function)
> patch.c:673: error: 'check_before' undeclared (first use in this function)
> patch.c: In function 'apply_hunk':
> patch.c:839: error: 'false' undeclared (first use in this function)
> patch.c:839: error: too many arguments to function 'copy_till'
> patch.c:840: error: 'do_defines' undeclared (first use in this function)
> patch.c:855: error: too many arguments to function 'copy_till'
> patch.c:877: error: too many arguments to function 'copy_till'
> patch.c:909: error: too many arguments to function 'copy_till'
> patch.c: At top level:
> patch.c:957: error: expected declaration specifiers or '...' before 'bool'
> patch.c: In function 'copy_till':
> patch.c:962: error: 'endoffile' undeclared (first use in this function)
> patch.c:963: error: 'last_line_missing_eol' undeclared (first use in
> this function)
> patch.c:963: error: too many arguments to function 'dump_line'
> patch.c:965: error: 'true' undeclared (first use in this function)
> patch.c:965: error: too many arguments to function 'dump_line'
> patch.c: At top level:
> patch.c:973: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'spew_output'
> patch.c:992: error: expected declaration specifiers or '...' before 'bool'
> patch.c: In function 'dump_line':
> patch.c:1002: error: 'write_newline' undeclared (first use in this function)
> patch.c: At top level:
> patch.c:1010: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'patch_match'
> patch.c:1053: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'similar'
> *** Error code 1
> 
> Stop.
> bmake: stopped in
> /local/home/chegger/sw/pkgsrc/devel/nbpatch/work/nbpatch-20100124
> *** Error code 1
> 
> Stop.
> bmake: stopped in /home/chegger/sw/pkgsrc/devel/nbpatch
> *** Error code 1


In case you question the configuration:

# Example /home/chegger/sw/etc/mk.conf file produced by bootstrap-pkgsrc
# Fri Jul 26 11:06:28 UTC 2013

.ifdef BSD_PKG_MK       # begin pkgsrc settings


UNPRIVILEGED=           yes
PKG_DBDIR=              /home/chegger/sw/var/db/pkg
LOCALBASE=              /home/chegger/sw
VARBASE=                /home/chegger/sw/var
PKG_TOOLS_BIN=          /home/chegger/sw/sbin
PKGMANDIR=              man


.endif                  # end pkgsrc settings


Christoph





Home | Main Index | Thread Index | Old Index