[pkg-gnupg-maint] Bug#789684: libgpg-error: cross compilation error gpgrt_lock_t not found

Deepak dgaur at cdot.in
Tue Jun 23 11:20:57 UTC 2015


Package: libgpg-error
Version: 1.19
Severity: normal

Dear Maintainer,

While trying to cross compile libgpg-error 1.19 for powerpc target GCC 4.7.4 glibc 2.19 got following error 

Any idea how to resolve this issue

checking for a BSD-compatible install... /usr/bin/install -c --strip-program=powerpc-83xx-linux-gnu-strip
checking whether build environment is sane... yes
/home/temp/libgpg-error-1.19/build-aux/missing: Unknown `--is-lightweight' option
Try `/home/temp/libgpg-error-1.19/build-aux/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for powerpc-83xx-linux-gnu-strip... powerpc-83xx-linux-gnu-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... (cached) yes
checking build system type... i686-pc-linux-gnu
checking host system type... powerpc-83xx-linux-gnu
configure: autobuild project... libgpg-error
configure: autobuild revision... 1.19
configure: autobuild hostname... rajul-Pegatron
configure: autobuild timestamp... 20150623-163313
checking for powerpc-83xx-linux-gnu-gcc... powerpc-83xx-linux-gnu-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... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether powerpc-83xx-linux-gnu-gcc accepts -g... yes
checking for powerpc-83xx-linux-gnu-gcc option to accept ISO C89... none needed
checking whether powerpc-83xx-linux-gnu-gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of powerpc-83xx-linux-gnu-gcc... gcc3
checking how to run the C preprocessor... powerpc-83xx-linux-gnu-cpp
checking for gawk... (cached) gawk
checking for powerpc-83xx-linux-gnu-ar... powerpc-83xx-linux-gnu-ar
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/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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by powerpc-83xx-linux-gnu-gcc... powerpc-83xx-linux-gnu-gcc
checking if the linker (powerpc-83xx-linux-gnu-gcc) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /home/temp/toolchain/i386/powerpc-83xx-linux-gnu/bin//powerpc-83xx-linux-gnu-nm -B
checking the name lister (/home/temp/toolchain/i386/powerpc-83xx-linux-gnu/bin//powerpc-83xx-linux-gnu-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-linux-gnu file names to powerpc-83xx-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for powerpc-83xx-linux-gnu-gcc option to reload object files... -r
checking for powerpc-83xx-linux-gnu-objdump... powerpc-83xx-linux-gnu-objdump
checking how to recognize dependent libraries... pass_all
checking for powerpc-83xx-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for powerpc-83xx-linux-gnu-ar... (cached) powerpc-83xx-linux-gnu-ar
checking for archiver @FILE support... @
checking for powerpc-83xx-linux-gnu-strip... (cached) powerpc-83xx-linux-gnu-strip
checking for powerpc-83xx-linux-gnu-ranlib... powerpc-83xx-linux-gnu-ranlib
checking command to parse /home/temp/toolchain/i386/powerpc-83xx-linux-gnu/bin//powerpc-83xx-linux-gnu-nm -B output from powerpc-83xx-linux-gnu-gcc object... ok
checking for sysroot... /home/temp/filesystem/sysroot
checking for powerpc-83xx-linux-gnu-mt... no
checking for mt... mt
configure: WARNING: using cross tools not prefixed with host triplet
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if powerpc-83xx-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for powerpc-83xx-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if powerpc-83xx-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if powerpc-83xx-linux-gnu-gcc static flag -static works... yes
checking if powerpc-83xx-linux-gnu-gcc supports -c -o file.o... yes
checking if powerpc-83xx-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the powerpc-83xx-linux-gnu-gcc linker (powerpc-83xx-linux-gnu-gcc) supports shared libraries... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... unsupported
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for powerpc-83xx-linux-gnu-windres... no
checking for windres... no
checking for cc for build... cc
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by powerpc-83xx-linux-gnu-gcc... powerpc-83xx-linux-gnu-gcc
checking if the linker (powerpc-83xx-linux-gnu-gcc) is GNU ld... no
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for ANSI C header files... (cached) yes
checking for stdlib.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for stdint.h... (cached) yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... yes
checking for strerror_r... (cached) yes
checking for flockfile... yes
checking for vasprintf... yes
checking for an ANSI C-conforming const... yes
checking size of int... 4
checking size of long... 4
checking size of long long... 8
configure: checking for cc features
checking if gcc ignores unknown -Wno-* options... yes
checking if gcc supports -Wpointer-arith... yes
checking whether the GCC style aligned attribute is supported... yes
checking whether the visibility attribute is supported... yes
checking for broken visibility attribute... no
checking for broken alias attribute... no
checking if gcc supports -fvisibility=hidden... yes
checking whether imported symbols can be declared weak... guessing yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_kill in -lpthread... yes
checking for multithread API to use... posix
checking for pthread_rwlock_t... yes
checking size of pthread_mutex_t... 24
checking for unsigned long long int... yes
configure: checking system features for estream-printf
checking for stdint.h... (cached) yes
checking for long long int... yes
checking for long double... yes
checking for intmax_t... yes
checking for uintmax_t... yes
checking for ptrdiff_t... yes
checking size of unsigned long... 4
checking size of void *... 4
checking for nl_langinfo and THOUSANDS_SEP... yes
configure: checking system features for estream
checking for memrchr... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating po/Makefile.in
config.status: creating m4/Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating lang/Makefile
config.status: creating lang/cl/Makefile
config.status: creating lang/cl/gpg-error.asd
config.status: creating src/versioninfo.rc
config.status: creating src/gpg-error.w32-manifest
config.status: creating src/gpg-error-config
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile

        libgpg-error-1.19 prepared for make

        Revision: d77c33a  (55164)
        Platform: powerpc-83xx-linux-gnu

make  all-recursive
make[1]: Entering directory `/home/temp/libgpg-error-1.19'
Making all in m4
make[2]: Entering directory `/home/temp/libgpg-error-1.19/m4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/temp/libgpg-error-1.19/m4'
Making all in src
make[2]: Entering directory `/home/temp/libgpg-error-1.19/src'
gawk -f ./mkstrtable.awk -v textidx=3 \
		./err-sources.h.in >err-sources.h
gawk -f ./mkstrtable.awk -v textidx=3 \
		./err-codes.h.in >err-codes.h
gawk -f ./mkerrnos.awk ./errnos.in >code-to-errno.h
gawk -f ./mkerrcodes1.awk ./errnos.in >_mkerrcodes.h
powerpc-83xx-linux-gnu-cpp -I/home/temp/filesystem/sysroot/include -I/home/temp/filesystem/sysroot/usr/include  -P _mkerrcodes.h | grep GPG_ERR_ | \
               gawk -f ./mkerrcodes.awk >mkerrcodes.h
rm _mkerrcodes.h
cc -I. -I. -o mkerrcodes ./mkerrcodes.c
../mkerrcodes | gawk -f ./mkerrcodes2.awk >code-from-errno.h
gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
		./err-sources.h.in >err-sources-sym.h
gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
		./err-codes.h.in >err-codes-sym.h
gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
		-v prefix=GPG_ERR_ -v namespace=errnos_ \
		./errnos.in >errnos-sym.h
cc -g -O0 -I. -I. -o mkheader ./mkheader.c
if test -f lock-obj-pub.native.h; then rm lock-obj-pub.native.h; fi
../mkheader linux-gnu powerpc-83xx-linux-gnu  ./gpg-error.h.in \
                   ../config.h 1.19 0x011300 >gpg-error.h
../gpg-error.h.in:320: error including `./syscfg/lock-obj-pub.linux-gnu.h': No such file or directory
make[2]: *** [gpg-error.h] Error 1
make[2]: Leaving directory `/home/temp/libgpg-error-1.19/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/temp/libgpg-error-1.19'
make: *** [all] Error 2
Making install in m4
make[1]: Entering directory `/home/temp/libgpg-error-1.19/m4'
make[2]: Entering directory `/home/temp/libgpg-error-1.19/m4'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/temp/libgpg-error-1.19/m4'
make[1]: Leaving directory `/home/temp/libgpg-error-1.19/m4'
Making install in src
make[1]: Entering directory `/home/temp/libgpg-error-1.19/src'
cat ./gpg-error.def.in >_gpg-error.def.h
powerpc-83xx-linux-gnu-cpp -I. -I..   _gpg-error.def.h | \
	  grep -v '^#' >gpg-error.def
rm _gpg-error.def.h
echo "/*dummy*/" > mkw32errmap.map.c
make  install-am
make[2]: Entering directory `/home/temp/libgpg-error-1.19/src'
/bin/bash ../libtool  --tag=CC   --mode=compile powerpc-83xx-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\"  -I/home/temp/filesystem/sysroot/include -I/home/temp/filesystem/sysroot/usr/include  --sysroot=/home/temp/filesystem/sysroot -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-posix-lock.lo -MD -MP -MF .deps/libgpg_error_la-posix-lock.Tpo -c -o libgpg_error_la-posix-lock.lo `test -f 'posix-lock.c' || echo './'`posix-lock.c
libtool: compile:  powerpc-83xx-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -I/home/temp/filesystem/sysroot/include -I/home/temp/filesystem/sysroot/usr/include --sysroot=/home/temp/filesystem/sysroot -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT libgpg_error_la-posix-lock.lo -MD -MP -MF .deps/libgpg_error_la-posix-lock.Tpo -c posix-lock.c -o libgpg_error_la-posix-lock.o
In file included from posix-lock.c:42:0:
gpg-error.h:24:0: error: unterminated #ifndef
posix-lock.c:108:18: error: unknown type name 'gpgrt_lock_t'
posix-lock.c:128:19: error: unknown type name 'gpgrt_lock_t'
posix-lock.c:166:19: error: unknown type name 'gpgrt_lock_t'
posix-lock.c:189:22: error: unknown type name 'gpgrt_lock_t'
posix-lock.c:212:21: error: unknown type name 'gpgrt_lock_t'
posix-lock.c:237:22: error: unknown type name 'gpgrt_lock_t'
make[2]: *** [libgpg_error_la-posix-lock.lo] Error 1
make[2]: Leaving directory `/home/temp/libgpg-error-1.19/src'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/temp/libgpg-error-1.19/src'
make: *** [install-recursive] Error 1



-- System Information:
Debian Release: wheezy/sid
  APT prefers precise-updates
  APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 'precise')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-70-generic (SMP w/4 CPU cores)
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



More information about the pkg-gnupg-maint mailing list