autoconf/automake/libtool - how to undefine PACKAGE_NAME, PACKAGE_TARNAME, PACKAGE_VERSION and so on - autoconf

Build log:
20:10:36 make[3]: Entering directory `/home/ubuntu/build/ColossusCoinXT/distsrc-i686-pc-linux-gnu/src/minizip'
20:10:36 /bin/bash ./libtool --tag=CC --mode=compile gcc -m32 -DPACKAGE_NAME=\"minizip\" -DPACKAGE_TARNAME=\"minizip\" -DPACKAGE_VERSION=\"1.2.8\" -DPACKAGE_STRING=\"minizip\ 1.2.8\" -DPACKAGE_BUGREPORT=\"bugzilla.redhat.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"minizip\" -DVERSION=\"1.2.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I./../.. -I/home/ubuntu/build/ColossusCoinXT/depends/i686-pc-linux-gnu/share/../include/ -pipe -O2 -O2 -g -c -o ioapi.lo ioapi.c
20:10:36 libtool: compile: gcc -m32 -DPACKAGE_NAME=\"minizip\" -DPACKAGE_TARNAME=\"minizip\" -DPACKAGE_VERSION=\"1.2.8\" "-DPACKAGE_STRING=\"minizip 1.2.8\"" -DPACKAGE_BUGREPORT=\"bugzilla.redhat.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"minizip\" -DVERSION=\"1.2.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I./../.. -I/home/ubuntu/build/ColossusCoinXT/depends/i686-pc-linux-gnu/share/../include/ -pipe -O2 -O2 -g -c ioapi.c -fPIC -DPIC -o ioapi.o
20:10:36 gcc: error: 1.2.8": No such file or directory
Problem is on the 3rd line: "-DPACKAGE_STRING=\"minizip 1.2.8\"", compiler interprets this define as two different arguments, due to space. I'm looking for workaround, the easiest way seems undefine these AC_INIT preprocessor symbols, but I didn't find a way to do this.
configure.ac:
AC_INIT([minizip], [1.2.8], [bugzilla.redhat.com])
AC_CONFIG_SRCDIR([minizip.c])
AM_INIT_AUTOMAKE([no-define foreign])
LT_INIT
...
Looking for quick workaround, thank you!

For now I use next workaround:
AC_CONFIG_COMMANDS([quickfix], [sed -i 's/minizip\\\ 1.2.8/minizip-1.2.8/g' Makefile])
AC_OUTPUT
Please post better solution if you know.

Taking a look at your build output:
As make prints it, the libtool command line as called by make contains -DPACKAGE_STRING=\"minizip\ 1.2.8\" which is a good way to pass an argument containg a space character on the shell.
As libtool prints it, the gcc compile command as called by libtool contains "-DPACKAGE_STRING=\"minizip 1.2.8\"" which is another good way to pass an argument containing a space character on the command line.
No mistakes to be found there yet.
However, the error message gcc prints suggests that the gcc command eventually called actually differs from what libtool prints as the command.
This leaves two possibilities:
The libtool script your build uses is broken and calls gcc in a different way than the way it prints. You could try running make distclean and re-running autoreconf and configure to rebuild the minizip buildsystem from scratch, which includes the libtool script.
The libtool script calls gcc command properly, but the gcc command is a wrapper around the actual gcc, and that wrapper passes its arguments to the actual gcc improperly, which in turn chokes on the improper arguments. One example of a software package wrapping gcc is ccache, but there are others.
One way to examine this would be running which gcc in a shell and then analyzing the result: which package it belongs to, whether it is redirected using alternatives, etc. There might be an updated version of this software with the quoting bug fixed.
The minizip source tree itself is fine (tested on Debian 10):
[user#host ~]$ git clone https://github.com/madler/zlib.git
[…]
[user#host ~]$ cd zlib/contrib/minizip
[user#host minizip]$ git checkout -b minizip-1.2.8 v1.2.8
[…]
[user#host minizip]$ autoreconf -vis .
[…]
[user#host minizip]$ ./configure --prefix=$PWD/_i
[…]
[user#host minizip]$ make
/bin/bash ./libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"minizip\" -DPACKAGE_TARNAME=\"minizip\" -DPACKAGE_VERSION=\"1.2.8\" -DPACKAGE_STRING=\"minizip\ 1.2.8\" -DPACKAGE_BUGREPORT=\"bugzilla.redhat.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"minizip\" -DVERSION=\"1.2.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I./../.. -g -O2 -MT ioapi.lo -MD -MP -MF .deps/ioapi.Tpo -c -o ioapi.lo ioapi.c
libtool: compile: gcc -DPACKAGE_NAME=\"minizip\" -DPACKAGE_TARNAME=\"minizip\" -DPACKAGE_VERSION=\"1.2.8\" "-DPACKAGE_STRING=\"minizip 1.2.8\"" -DPACKAGE_BUGREPORT=\"bugzilla.redhat.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"minizip\" -DVERSION=\"1.2.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I./../.. -g -O2 -MT ioapi.lo -MD -MP -MF .deps/ioapi.Tpo -c ioapi.c -fPIC -DPIC -o .libs/ioapi.o
libtool: compile: gcc -DPACKAGE_NAME=\"minizip\" -DPACKAGE_TARNAME=\"minizip\" -DPACKAGE_VERSION=\"1.2.8\" "-DPACKAGE_STRING=\"minizip 1.2.8\"" -DPACKAGE_BUGREPORT=\"bugzilla.redhat.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"minizip\" -DVERSION=\"1.2.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I./../.. -g -O2 -MT ioapi.lo -MD -MP -MF .deps/ioapi.Tpo -c ioapi.c -o ioapi.o >/dev/null 2>&1
mv -f .deps/ioapi.Tpo .deps/ioapi.Plo
[…]
libtool: link: gcc -shared -fPIC -DPIC .libs/ioapi.o .libs/mztools.o .libs/unzip.o .libs/zip.o -L./../.. -lz -g -O2 -Wl,-soname -Wl,libminizip.so.1 -o .libs/libminizip.so.1.0.0
libtool: link: (cd ".libs" && rm -f "libminizip.so.1" && ln -s "libminizip.so.1.0.0" "libminizip.so.1")
libtool: link: (cd ".libs" && rm -f "libminizip.so" && ln -s "libminizip.so.1.0.0" "libminizip.so")
libtool: link: ar cru .libs/libminizip.a ioapi.o mztools.o unzip.o zip.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib .libs/libminizip.a
libtool: link: ( cd ".libs" && rm -f "libminizip.la" && ln -s "../libminizip.la" "libminizip.la" )
[user#host minizip]$ _

Related

Passing CFLAGS to Makefile at a command line

I am trying to monitor coverage on a Makefile project.
CFLAGS=" -fprofile-arcs -ftest-coverage -g" make test
But the command above does not seem to work, producing the following:
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -g -O2 -MT test.o -MD -MP -MF .deps/test.Tpo -c -o test.o test.c
mv -f .deps/test.Tpo .deps/test.Po
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I.. -g -O2 -MT gaussian.lo -MD -MP -MF .deps/gaussian.Tpo -c -o gaussian.lo gaussian.c
It can be seen, from the first line, that CFLAGS are not well added when gcc is invoked. How can I include the cflags in gcc's build options while launching "make"?
I am using Bash at an Ubuntu 14, if that matters.
Variables obtained from the environment, which is how you're doing it, have a lower precedence than variables set in a makefile. So if your makefile sets the CFLAGS variable directly, like:
CFLAGS = -g -O2
then setting it in the environment won't override this setting.
You can add variable assignments to the command line instead: these take precedence over almost anything set in the makefile. So use:
make test CFLAGS=" -fprofile-arcs -ftest-coverage -g"
instead.
See https://www.gnu.org/software/make/manual/html_node/Values.html

How to fix this error when installing bcftools on MAC? Problem with C: [ploidy.o] Error 1

I am trying to install bcftools on the Mac for the handling of VCF files, but I have some problems when performing a correct installation of this, specifically when doing 'make'.
The instructions for the installation of bfctools appear in the following link, I try to follow the steps but doing 'make' is where the problem arises.
Also installing samstools and HTSlib the same problems arise.
Other links for installation are the following:
https://samtools.github.io/bcftools/howtos/install.html
http://www.htslib.org/download/
This is what happens when trying to install
MacBook-Pro-de-Carlos:bcftools carlosvasquezguerra$ make
echo '#define BCFTOOLS_VERSION "1.9-117-g9e81e92"' > version.h
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o main.o main.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o vcfindex.o vcfindex.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o tabix.o tabix.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o vcfstats.o vcfstats.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o vcfisec.o vcfisec.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o vcfmerge.o vcfmerge.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o vcfquery.o vcfquery.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o vcffilter.o vcffilter.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o filter.o filter.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o vcfsom.o vcfsom.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o vcfnorm.o vcfnorm.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o vcfgtcheck.o vcfgtcheck.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o vcfview.o vcfview.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o vcfannotate.o vcfannotate.c
vcfannotate.c: In function ‘setter_info_str’:
vcfannotate.c:854:59: warning: request for implicit conversion from ‘void *’ to ‘struct kh_str2int_t *’ not permitted in C++ [-Wc++-compat]
if ( !col->mm_str_hash ) col->mm_str_hash = khash_str2int_init();
^
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o vcfroh.o vcfroh.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o vcfconcat.o vcfconcat.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o vcfcall.o vcfcall.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o mcall.o mcall.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o vcmp.o vcmp.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o gvcf.o gvcf.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o reheader.o reheader.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o convert.o convert.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o vcfconvert.o vcfconvert.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o tsv2vcf.o tsv2vcf.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o vcfcnv.o vcfcnv.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o HMM.o HMM.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -DPLUGINPATH='"/usr/local/libexec/bcftools"' -c -o vcfplugin.o vcfplugin.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o consensus.o consensus.c
gcc -g -Wall -Wc++-compat -O2 -I. -I../htslib -c -o ploidy.o ploidy.c
In file included from /usr/include/Availability.h:232:0,
from /usr/include/stdlib.h:61,
from ../htslib/htslib/khash.h:128,
from ../htslib/htslib/khash_str2int.h:28,
from ploidy.c:25:
/usr/include/AvailabilityInternal.h:33:18: error: missing binary operator before token "("
#if __has_include(<AvailabilityInternalPrivate.h>)
^
In file included from /usr/include/stdlib.h:61:0,
from ../htslib/htslib/khash.h:128,
from ../htslib/htslib/khash_str2int.h:28,
from ploidy.c:25:
/usr/include/Availability.h:493:18: error: missing binary operator before token "("
#if __has_include(<AvailabilityProhibitedInternal.h>)
^
make: *** [ploidy.o] Error 1
I attach the dependencies that I have installed with brew:
MacBook-Pro-de-Carlos:bcftools carlosvasquezguerra$ brew list
atk icu4c
autoconf isl
automake jpeg
cairo libepoxy
fontconfig libffi
freetype libmpc
fribidi libpng
gdbm libtiff
gdk-pixbuf mpfr
gettext ncurses
git-flow-avh openssl
glib pango
gmp pcre
gnu-getopt pixman
graphite2 pkg-config
gsettings-desktop-schemas python
gtk+ readline
gtk+3 sqlite
harfbuzz xz
hicolor-icon-theme zlib
I was already consulting with some friends and do not have this problem with the same version of MAC: Mojave: 10.14.3.
Note: Xcode version: Xcode-select version 2354
My last option is to install a virtual machine but, I repeat, some users with similar characteristics have already installed bcftools
Try reinstalling the latest macOS, as it looks like this is a problem in one of the Apple headers, not htslib (Availability.h is an Apple header)

How does this Makefile work?

This is the makefile:
GOOGLE_APPLICATION_CREDENTIALS=/home/roman/Documents/Google_Cloud/SpeechRec.json
GOOGLEAPIS_GENS_PATH=/home/roman/Downloads/GoogleAPIs/googleapis/gens
GOOGLEAPIS_GENS_PATH ?= $(HOME)/gitrepos/googleapis/gens
GOOGLEAPIS_API_CCS = $(shell find $(GOOGLEAPIS_GENS_PATH)/google/api \
-name '*.pb.cc')
GOOGLEAPIS_RPC_CCS = $(shell find $(GOOGLEAPIS_GENS_PATH)/google/rpc \
-name '*.pb.cc')
GOOGLEAPIS_SPEECH_CCS = $(shell find \
$(GOOGLEAPIS_GENS_PATH)/google/cloud/speech -name '*.pb.cc')
GOOGLEAPIS_LONGRUNNING_CCS = $(shell find \
$(GOOGLEAPIS_GENS_PATH)/google/longrunning -name '*.pb.cc')
GOOGLEAPIS_CCS = $(GOOGLEAPIS_API_CCS) $(GOOGLEAPIS_RPC_CCS) \
$(GOOGLEAPIS_LONGRUNNING_CCS) $(GOOGLEAPIS_SPEECH_CCS)
HOST_SYSTEM = $(shell uname | cut -f 1 -d_)
SYSTEM ?= $(HOST_SYSTEM)
CXX = g++
CPPFLAGS += -I/usr/local/include -pthread -I$(GOOGLEAPIS_GENS_PATH) -g -O0
CXXFLAGS += -std=c++11 -g -O0
ifeq ($(SYSTEM),Darwin)
LDFLAGS += -L/usr/local/lib `pkg-config --libs grpc++ grpc` \
-lgrpc++_reflection \
-lprotobuf -lpthread -ldl
else
LDFLAGS += -L/usr/local/lib `pkg-config --libs grpc++ grpc` \
-Wl,--no-as-needed -lgrpc++_reflection -Wl,--as-needed \
-lprotobuf -lpthread -ldl
endif
.PHONY: all
#all: transcribe async_transcribe streaming_transcribe streaming_transcribe_singlethread
all: streaming_transcribe
googleapis.ar: $(GOOGLEAPIS_CCS:.cc=.o)
ar r $# $?
streaming_transcribe: streaming_transcribe.o parse_arguments.o googleapis.ar
$(CXX) $^ $(LDFLAGS) -o $#
It produces log result:
23:20:19 **** Build of configuration Build (GNU) for project GoogleSpeechApi ****
make all
g++ -std=c++11 -g -O0 -I/usr/local/include -pthread -I/home/roman/Downloads/GoogleAPIs/googleapis/gens -g -O0 -c -o streaming_transcribe.o streaming_transcribe.cc
g++ -std=c++11 -g -O0 -I/usr/local/include -pthread -I/home/roman/Downloads/GoogleAPIs/googleapis/gens -g -O0 -c -o parse_arguments.o parse_arguments.cc
g++ -std=c++11 -g -O0 -I/usr/local/include -pthread -I/home/roman/Downloads/GoogleAPIs/googleapis/gens -g -O0 -c -o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/log.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/log.grpc.pb.cc
g++ -std=c++11 -g -O0 -I/usr/local/include -pthread -I/home/roman/Downloads/GoogleAPIs/googleapis/gens -g -O0 -c -o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/experimental/authorization_config.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/experimental/authorization_config.pb.cc
g++ -std=c++11 -g -O0 -I/usr/local/include -pthread -I/home/roman/Downloads/GoogleAPIs/googleapis/gens -g -O0 -c -o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/experimental/authorization_config.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/experimental/authorization_config.grpc.pb.cc
g++ -std=c++11 -g -O0 -I/usr/local/include -pthread -I/home/roman/Downloads/GoogleAPIs/googleapis/gens -g -O0 -c -o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/experimental/experimental.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/experimental/experimental.grpc.pb.cc
g++ -std=c++11 -g -O0 -I/usr/local/include -pthread -I/home/roman/Downloads/GoogleAPIs/googleapis/gens -g -O0 -c -o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/experimental/experimental.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/experimental/experimental.pb.cc
g++ -std=c++11 -g -O0 -I/usr/local/include -pthread -I/home/roman/Downloads/GoogleAPIs/googleapis/gens -g -O0 -c -o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicemanagement/v1/resources.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicemanagement/v1/resources.grpc.pb.cc
g++ -std=c++11 -g -O0 -I/usr/local/include -pthread -I/home/roman/Downloads/GoogleAPIs/googleapis/gens -g -O0 -c -o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicemanagement/v1/servicemanager.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicemanagement/v1/servicemanager.grpc.pb.cc
g++ -std=c++11 -g -O0 -I/usr/local/include -pthread -I/home/roman/Downloads/GoogleAPIs/googleapis/gens -g -O0 -c -o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicemanagement/v1/servicemanager.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicemanagement/v1/servicemanager.pb.cc
g++ -std=c++11 -g -O0 -I/usr/local/include -pthread -I/home/roman/Downloads/GoogleAPIs/googleapis/gens -g -O0 -c -o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicemanagement/v1/resources.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicemanagement/v1/resources.pb.cc
g++ -std=c++11 -g -O0 -I/usr/local/include -pthread -I/home/roman/Downloads/GoogleAPIs/googleapis/gens -g -O0 -c -o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/httpbody.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/httpbody.grpc.pb.cc
ar r googleapis.ar /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/log.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/experimental/authorization_config.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/experimental/authorization_config.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/experimental/experimental.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/experimental/experimental.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicemanagement/v1/resources.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicemanagement/v1/servicemanager.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicemanagement/v1/servicemanager.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicemanagement/v1/resources.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/httpbody.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/label.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/billing.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicecontrol/v1/quota_controller.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicecontrol/v1/service_controller.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicecontrol/v1/log_entry.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicecontrol/v1/metric_value.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicecontrol/v1/operation.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicecontrol/v1/operation.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicecontrol/v1/check_error.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicecontrol/v1/quota_controller.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicecontrol/v1/log_entry.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicecontrol/v1/check_error.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicecontrol/v1/metric_value.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicecontrol/v1/distribution.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicecontrol/v1/distribution.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/servicecontrol/v1/service_controller.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/httpbody.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/consumer.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/billing.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/config_change.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/monitored_resource.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/http.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/backend.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/documentation.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/metric.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/system_parameter.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/consumer.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/control.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/documentation.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/monitored_resource.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/logging.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/http.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/backend.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/annotations.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/auth.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/usage.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/metric.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/service.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/usage.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/log.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/service.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/auth.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/source_info.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/endpoint.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/endpoint.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/quota.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/system_parameter.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/annotations.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/context.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/logging.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/distribution.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/config_change.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/source_info.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/distribution.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/monitoring.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/control.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/quota.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/monitoring.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/label.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/api/context.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/rpc/error_details.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/rpc/status.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/rpc/code.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/rpc/code.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/rpc/status.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/rpc/error_details.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/longrunning/operations.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/longrunning/operations.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/cloud/speech/v1beta1/cloud_speech.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/cloud/speech/v1beta1/cloud_speech.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/cloud/speech/v1/cloud_speech.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/cloud/speech/v1/cloud_speech.grpc.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/cloud/speech/v1_1beta1/cloud_speech.pb.o /home/roman/Downloads/GoogleAPIs/googleapis/gens/google/cloud/speech/v1_1beta1/cloud_speech.grpc.pb.o
ar: creating googleapis.ar
g++ streaming_transcribe.o parse_arguments.o googleapis.ar -L/usr/local/lib `pkg-config --libs grpc++ grpc` -Wl,--no-as-needed -lgrpc++_reflection -Wl,--as-needed -lprotobuf -lpthread -ldl -o streaming_transcribe
23:23:26 Build Finished (took 3m:7s.68ms)
I can only understand first two lines in the log. How all this files:
/home/roman/Downloads/GoogleAPIs/googleapis/gens/google
files get to compiling? They are contained in
GOOGLEAPIS_CCS
variable and it is only used in makefile in
ar r $# $?
string. Can you explain step by step how this actually work?
The following rule makes a static library that depends on the object files that will result from compiling all of the discovered source files:
googleapis.ar: $(GOOGLEAPIS_CCS:.cc=.o)
ar r $# $?
The way this works is that $(GOOGLEAPIS_CCS:.cc=.o) means "take the variable GOOGLEAPIS_CCS, and within it, replace every occurance of .cc with .o". That is, convert the discovered lists of sources into a list of the object files that will be generated from them. Because this is on the prerequisite line, make will try to find a rule for how to produce these objects.
There are no explicit rules in the Makefile for building the .o files, so make will use one of the built-in implicitly defined pattern rules. Specifically:
%.o: %.cc
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $# $^
So that causes all of the compilation you see in your output. Once these are built, the rule we were looking at above archives them into a static library. That static library is one of the prerequisites for the main build target, which is what triggers all of the above to be evaluated.
It may be obvious, but for completeness, all of the initial variable declartions use $(shell find ...). This literally runs the find command via the shell to recursively traverse the specified directory, and list the files that match the given pattern (e.g., *.cc). The result is that these variables are defined as the list of matching filenames.

Watir Installation error

I computer that i was working on for the last week just died, so now i had to install ruby ruby gem and Watir again. However this time Watir will not install. I get this msg:
I do not understand what the error means. Please help
C:\Users\kai.knutson\Desktop\Install\Dev Kti>ruby dk.rb init
[INFO] found RubyInstaller v1.9.3 at C:/Ruby193
[INFO] found RubyInstaller v1.9.3 at C:/Ruby193
Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.
C:\Users\kai.knutson\Desktop\Install\Dev Kti>gem install watir
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing watir:
ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe extconf.rb
checking for ffi.h... no
checking for ffi.h in /usr/local/include... no
checking for rb_thread_blocking_region()... yes
checking for ruby_native_thread_p()... yes
checking for rb_thread_call_with_gvl()... yes
creating extconf.h
creating Makefile
make
generating ffi_c-i386-mingw32.def
Configuring libffi
make -C "/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi"
make[1]: Entering directory `/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/
ffi_c/libffi'
make "AR_FLAGS=" "CC_FOR_BUILD=" "CFLAGS=" "CXXFLAGS=" "CFLAGS_FOR_BUILD=" "CFLA
GS_FOR_TARGET=" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c
-m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -
c" "JC1FLAGS=" "LDFLAGS=" "LIBCFLAGS=" "LIBCFLAGS_FOR_TARGET=" "MAKE=make" "MAKE
INFO=/bin/sh /c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi/mis
sing --run makeinfo " "PICFLAG=" "PICFLAG_FOR_TARGET=" "RUNTESTFLAGS=" "SHELL=/b
in/sh" "exec_prefix=/usr/local" "infodir=/usr/local/share/info" "libdir=/usr/loc
al/lib" "prefix=/usr/local" "AR=ar" "AS=as" "CC=gcc" "CXX=g++" "LD=c:/users/kai.
knutson/desktop/install/dev kti/mingw/mingw32/bin/ld.exe" "NM=/usr/mingw/bin/nm"
"RANLIB=ranlib" "DESTDIR=" all-recursive
make[2]: Entering directory `/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/
ffi_c/libffi'
Making all in include
make[3]: Entering directory `/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/
ffi_c/libffi/include'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/f
fi_c/libffi/include'
Making all in testsuite
make[3]: Entering directory `/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/
ffi_c/libffi/testsuite'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/f
fi_c/libffi/testsuite'
Making all in man
make[3]: Entering directory `/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/
ffi_c/libffi/man'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/f
fi_c/libffi/man'
make[3]: Entering directory `/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/
ffi_c/libffi'
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./inc
lude -Iinclude -I./src -Wall -g -fexceptions -c -o src/debug.lo src/debug.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wa
ll -g -fexceptions -c src/debug.c -DDLL_EXPORT -DPIC -o src/.libs/debug.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./inc
lude -Iinclude -I./src -Wall -g -fexceptions -c -o src/prep_cif.lo src/prep_ci
f.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wa
ll -g -fexceptions -c src/prep_cif.c -DDLL_EXPORT -DPIC -o src/.libs/prep_cif.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./inc
lude -Iinclude -I./src -Wall -g -fexceptions -c -o src/types.lo src/types.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wa
ll -g -fexceptions -c src/types.c -DDLL_EXPORT -DPIC -o src/.libs/types.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./inc
lude -Iinclude -I./src -Wall -g -fexceptions -c -o src/raw_api.lo src/raw_api.
c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wa
ll -g -fexceptions -c src/raw_api.c -DDLL_EXPORT -DPIC -o src/.libs/raw_api.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./inc
lude -Iinclude -I./src -Wall -g -fexceptions -c -o src/java_raw_api.lo src/jav
a_raw_api.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wa
ll -g -fexceptions -c src/java_raw_api.c -DDLL_EXPORT -DPIC -o src/.libs/java_r
aw_api.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./inc
lude -Iinclude -I./src -Wall -g -fexceptions -c -o src/closures.lo src/closure
s.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wa
ll -g -fexceptions -c src/closures.c -DDLL_EXPORT -DPIC -o src/.libs/closures.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./inc
lude -Iinclude -I./src -Wall -g -fexceptions -c -o src/x86/ffi.lo src/x86/ffi.
c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wa
ll -g -fexceptions -c src/x86/ffi.c -DDLL_EXPORT -DPIC -o src/x86/.libs/ffi.o
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iin
clude -I./src -I. -I./include -Iinclude -I./src -c -o src/x86/win32.lo src/x86
/win32.S
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -I.
-I./include -Iinclude -I./src -c src/x86/win32.S -DDLL_EXPORT -DPIC -o src/x86
/.libs/win32.o
/bin/sh ./libtool --tag=CC --mode=link gcc -Wall -g -fexceptions -version-inf
o `grep -v '^#' ./libtool-version` -no-undefined -o libffi.la -rpath /usr/local
/lib src/debug.lo src/prep_cif.lo src/types.lo src/raw_api.lo src/java_raw_api.l
o src/closures.lo src/x86/ffi.lo src/x86/win32.lo
libtool: link: gcc -o .libs/libffi.dll.a src/.libs/debug.o src/.libs/prep_cif.o
src/.libs/types.o src/.libs/raw_api.o src/.libs/java_raw_api.o src/.libs/closur
es.o src/x86/.libs/ffi.o src/x86/.libs/win32.o `echo "X" | /usr/bin/sed -e 1
s/^X// -e 's/ -lc$//'` -link -dll
c:/users/kai.knutson/desktop/install/dev kti/mingw/bin/../lib/gcc/mingw32/4.5.2/
../../../../mingw32/bin/ld.exe: cannot find -link
collect2: ld returned 1 exit status
make[3]: *** [libffi.la] Error 1
make[3]: Leaving directory `/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/f
fi_c/libffi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/f
fi_c/libffi'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/f
fi_c/libffi'
make: *** ["/c/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi"/.li
bs/libffi_convenience.a] Error 2
Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.1
1 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/ext/ffi_c/gem_m
ake.out
Please follow windows installation instructions.
Please notice:
The documentation says spaces in path could cause trouble, as is often
the case. Install it to C:\devkit
(You have installed devkit to C:\Users\kai.knutson\Desktop\Install\Dev Kti.)
Also, after ruby dk.rb init you have forgot to execute ruby dk.rb install.
Did you finish installing the devkit?
Based on what you gave, you only initialized the devkit. You still need to install it (https://github.com/oneclick/rubyinstaller/wiki/Development-Kit). Run:
ruby dk.rb install

installation of pyqt4 fails using python3

I am facing the same problem as here: Installing PyQt 4.9 on CentOS 6.0 Fails .
I am trying to install (make) pyqt v4.9 using python v3.1 on a linux machine running Ubuntu 10.04.
From the "riverbank" website I downloaded and installed SIP, which seemed to go well.Then I downloaded PyQt-x11-gpl-4.9.tar.gz, extracted the files, and entered the directory.
Now, typing "python3 configure.py -w --confirm-license" produced the following output:
Determining the layout of your Qt installation...
/usr/bin/qmake -o qtdirs.mk qtdirs.pro
make -f qtdirs.mk
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -
I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/q
t4 -I. -o qtdirs.o qtdirs.cpp
g++ -Wl,-O1 -o qtdirs qtdirs.o -L/usr/lib -lQtCore -lpthread
./qtdirs
This is the GPL version of PyQt 4.9 (licensed under the GNU General Public
License) for Python 3.1.2 on linux2.
Found the license file pyqt-gpl.sip.
Checking to see if the QtGui module should be built...
g++ -DQT_NO_DEBUG -DQT_GUI_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/Q
tGui -I/usr/include/qt4 -I/usr/X11R6/include -pipe -O2 -fno-optimize-sibling-cal
ls -w -D_REENTRANT cfgtest_QtGui.cpp -o cfgtest_QtGui -L/usr/lib -L/usr/X11R6/li
b -Wl,-O1 -Wl,-rpath,/usr/lib -lQtGui -lXext -lX11 -lm -lpthread
Checking to see if the QtHelp module should be built...
g++ -DQT_NO_DEBUG -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtHelp -I/usr/
include/qt4 -pipe -O2 -fno-optimize-sibling-calls -w -D_REENTRANT cfgtest_QtHelp
.cpp -o cfgtest_QtHelp -L/usr/lib -Wl,-O1 -Wl,-rpath,/usr/lib -lQtHelp -lpthread
Checking to see if the QtMultimedia module should be built...
g++ -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/includ
e/qt4/QtMultimedia -I/usr/include/qt4 -pipe -O2 -fno-optimize-sibling-calls -w -
D_REENTRANT cfgtest_QtMultimedia.cpp -o cfgtest_QtMultimedia -L/usr/lib -Wl,-O1
-Wl,-rpath,/usr/lib -lQtMultimedia -lpthread
Checking to see if the QtNetwork module should be built...
g++ -DQT_NO_DEBUG -DQT_NETWORK_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/include/q
t4/QtNetwork -I/usr/include/qt4 -pipe -O2 -fno-optimize-sibling-calls -w -D_REEN
TRANT cfgtest_QtNetwork.cpp -o cfgtest_QtNetwork -L/usr/lib -Wl,-O1 -Wl,-rpath,/
usr/lib -lQtNetwork -lpthread
Checking to see if the QtDBus module should be built...
g++ -DQT_NO_DEBUG -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtDBus -I/usr/
include/qt4 -pipe -O2 -fno-optimize-sibling-calls -w -D_REENTRANT cfgtest_QtDBus
.cpp -o cfgtest_QtDBus -L/usr/lib -Wl,-O1 -Wl,-rpath,/usr/lib -lQtDBus -lpthread
Checking to see if the QtDeclarative module should be built...
g++ -DQT_NO_DEBUG -DQT_DECLARATIVE_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/inclu
de/qt4/QtDeclarative -I/usr/include/qt4 -pipe -O2 -fno-optimize-sibling-calls -w
-D_REENTRANT cfgtest_QtDeclarative.cpp -o cfgtest_QtDeclarative -L/usr/lib -Wl,
-O1 -Wl,-rpath,/usr/lib -lQtDeclarative -lpthread
cfgtest_QtDeclarative.cpp:1:30: error: qdeclarativeview.h: Datei oder Verzeichni
s nicht gefunden
cfgtest_QtDeclarative.cpp: In function ‘int main(int, char**)’:
cfgtest_QtDeclarative.cpp:5: error: expected type-specifier before ‘QDeclarative
View’
cfgtest_QtDeclarative.cpp:5: error: expected ‘;’ before ‘QDeclarativeView’
Checking to see if the QtOpenGL module should be built...
g++ -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_CORE_LIB -I. -I/usr/mkspecs/linux-g++ -I/
usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I/usr/X11
R6/include -pipe -O2 -fno-optimize-sibling-calls -w -D_REENTRANT cfgtest_QtOpenG
L.cpp -o cfgtest_QtOpenGL -L/usr/lib -L/usr/X11R6/lib -Wl,-O1 -Wl,-rpath,/usr/li
b -lQtOpenGL -lQtCore -lGLU -lGL -lXext -lX11 -lm -lpthread
Checking to see if the QtScript module should be built...
g++ -DQT_NO_DEBUG -DQT_SCRIPT_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt
4/QtScript -I/usr/include/qt4 -pipe -O2 -fno-optimize-sibling-calls -w -D_REENTR
ANT cfgtest_QtScript.cpp -o cfgtest_QtScript -L/usr/lib -Wl,-O1 -Wl,-rpath,/usr/
lib -lQtScript -lpthread
Checking to see if the QtScriptTools module should be built...
g++ -DQT_NO_DEBUG -DQT_SCRIPTTOOLS_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/inclu
de/qt4/QtScriptTools -I/usr/include/qt4 -pipe -O2 -fno-optimize-sibling-calls -w
-D_REENTRANT cfgtest_QtScriptTools.cpp -o cfgtest_QtScriptTools -L/usr/lib -Wl,
-O1 -Wl,-rpath,/usr/lib -lQtScriptTools -lpthread
Checking to see if the QtSql module should be built...
g++ -DQT_NO_DEBUG -DQT_SQL_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/Q
tSql -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/X11R6/include -pipe -O2
-fno-optimize-sibling-calls -w -D_REENTRANT cfgtest_QtSql.cpp -o cfgtest_QtSql -
L/usr/lib -L/usr/X11R6/lib -Wl,-O1 -Wl,-rpath,/usr/lib -lQtSql -lQtGui -lXext -l
X11 -lm -lpthread
Checking to see if the QtSvg module should be built...
g++ -DQT_NO_DEBUG -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtSvg -I/usr/i
nclude/qt4 -pipe -O2 -fno-optimize-sibling-calls -w -D_REENTRANT cfgtest_QtSvg.c
pp -o cfgtest_QtSvg -L/usr/lib -Wl,-O1 -Wl,-rpath,/usr/lib -lQtSvg -lpthread
Checking to see if the QtTest module should be built...
g++ -DQT_NO_DEBUG -DQT_TEST_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/
QtTest -I/usr/include/qt4 -pipe -O2 -fno-optimize-sibling-calls -w -D_REENTRANT
cfgtest_QtTest.cpp -o cfgtest_QtTest -L/usr/lib -Wl,-O1 -Wl,-rpath,/usr/lib -lQt
Test -lpthread
Checking to see if the QtWebKit module should be built...
g++ -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_CORE_LIB -I. -I/usr/mkspecs/linux-g++ -I/
usr/include/qt4/QtWebKit -I/usr/include/qt4/QtCore -I/usr/include/qt4 -pipe -O2
-fno-optimize-sibling-calls -w -D_REENTRANT cfgtest_QtWebKit.cpp -o cfgtest_QtWe
bKit -L/usr/lib -Wl,-O1 -Wl,-rpath,/usr/lib -lQtWebKit -lQtCore -lpthread
Checking to see if the QtXml module should be built...
g++ -DQT_NO_DEBUG -DQT_XML_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/Q
tXml -I/usr/include/qt4 -pipe -O2 -fno-optimize-sibling-calls -w -D_REENTRANT cf
gtest_QtXml.cpp -o cfgtest_QtXml -L/usr/lib -Wl,-O1 -Wl,-rpath,/usr/lib -lQtXml
-lpthread
Checking to see if the QtXmlPatterns module should be built...
g++ -DQT_NO_DEBUG -DQT_XMLPATTERNS_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/inclu
de/qt4/QtXmlPatterns -I/usr/include/qt4 -pipe -O2 -fno-optimize-sibling-calls -w
-D_REENTRANT cfgtest_QtXmlPatterns.cpp -o cfgtest_QtXmlPatterns -L/usr/lib -Wl,
-O1 -Wl,-rpath,/usr/lib -lQtXmlPatterns -lpthread
Checking to see if the phonon module should be built...
g++ -DQT_NO_DEBUG -DQT_PHONON_LIB -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt
4/phonon -I/usr/include/qt4 -pipe -O2 -fno-optimize-sibling-calls -w -D_REENTRAN
T cfgtest_phonon.cpp -o cfgtest_phonon -L/usr/lib -Wl,-O1 -Wl,-rpath,/usr/lib -l
phonon -lpthread
cfgtest_phonon.cpp:1:32: error: phonon/videowidget.h: Datei oder Verzeichnis nic
ht gefunden
cfgtest_phonon.cpp: In function ‘int main(int, char**)’:
cfgtest_phonon.cpp:5: error: expected type-specifier before ‘Phonon’
cfgtest_phonon.cpp:5: error: expected ‘;’ before ‘Phonon’
Checking to see if the QtAssistant module should be built...
g++ -DQT_NO_DEBUG -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtAssistant -I
/usr/include/qt4/QtGui -I/usr/include/qt4/QtNetwork -I/usr/include/qt4 -I/usr/X1
1R6/include -pipe -O2 -fno-optimize-sibling-calls -w -D_REENTRANT cfgtest_QtAssi
stant.cpp -o cfgtest_QtAssistant -L/usr/lib -L/usr/X11R6/lib -Wl,-O1 -Wl,-rpath,
/usr/lib -lQtAssistantClient -lQtGui -lQtNetwork -lXext -lX11 -lm -lpthread
Checking to see if the QtDesigner module should be built...
g++ -DQT_NO_DEBUG -I. -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtDesigner -I/
usr/include/qt4 -pipe -O2 -fno-optimize-sibling-calls -w -D_REENTRANT cfgtest_Qt
Designer.cpp -o cfgtest_QtDesigner -L/usr/lib -Wl,-O1 -Wl,-rpath,/usr/lib -lQtDe
signer -lpthread
Checking to see if the dbus support module should be built...
The Python dbus module doesn't seem to be installed.
Qt v4.6.2 free edition is being used.
SIP 4.13.1 is being used.
The Qt header files are in /usr/include/qt4.
The shared Qt libraries are in /usr/lib.
The Qt binaries are in /usr/bin.
The Qt mkspecs directory is in /usr/share/qt4.
These PyQt modules will be built: QtCore, QtGui, QtHelp, QtMultimedia,
QtNetwork, QtDBus, QtOpenGL, QtScript, QtScriptTools, QtSql, QtSvg, QtTest,
QtWebKit, QtXml, QtXmlPatterns, QtAssistant, QtDesigner.
The PyQt Python package will be installed in /usr/lib/python3.1/dist-packages.
PyQt is being built with generated docstrings.
PyQt is being built with 'protected' redefined as 'public'.
The Designer plugin will be installed in /usr/lib/qt4/plugins/designer.
The PyQt .sip files will be installed in /usr/share/sip/PyQt4.
pyuic4, pyrcc4 and pylupdate4 will be installed in /usr/bin.
Generating the C++ source for the QtCore module...
"/usr/bin/sip" -w -o -P -x VendorID -t WS_X11 -x PyQt_NoPrintRangeBug -t Qt_4_6_
2 -g -a QtCore.api -c /home/jonathan/Downloads/PyQt-x11-gpl-4.9/QtCore -b QtCore
/QtCore.sbf -I /home/jonathan/Downloads/PyQt-x11-gpl-4.9/sip /home/jonathan/Down
loads/PyQt-x11-gpl-4.9/sip/QtCore/QtCoremod.sip
Creating the Makefile for the QtCore module...
Generating the C++ source for the QtGui module...
"/usr/bin/sip" -w -o -P -x VendorID -t WS_X11 -x PyQt_NoPrintRangeBug -t Qt_4_6_
2 -g -a QtGui.api -c /home/jonathan/Downloads/PyQt-x11-gpl-4.9/QtGui -b QtGui/Qt
Gui.sbf -I /home/jonathan/Downloads/PyQt-x11-gpl-4.9/sip /home/jonathan/Download
s/PyQt-x11-gpl-4.9/sip/QtGui/QtGuimod.sip
Creating the Makefile for the QtGui module...
Generating the C++ source for the QtHelp module...
"/usr/bin/sip" -w -o -P -x VendorID -t WS_X11 -x PyQt_NoPrintRangeBug -t Qt_4_6_
2 -g -a QtHelp.api -c /home/jonathan/Downloads/PyQt-x11-gpl-4.9/QtHelp -b QtHelp
/QtHelp.sbf -I /home/jonathan/Downloads/PyQt-x11-gpl-4.9/sip /home/jonathan/Down
loads/PyQt-x11-gpl-4.9/sip/QtHelp/QtHelpmod.sip
Creating the Makefile for the QtHelp module...
Generating the C++ source for the QtMultimedia module...
"/usr/bin/sip" -w -o -P -x VendorID -t WS_X11 -x PyQt_NoPrintRangeBug -t Qt_4_6_
2 -g -a QtMultimedia.api -c /home/jonathan/Downloads/PyQt-x11-gpl-4.9/QtMultimed
ia -b QtMultimedia/QtMultimedia.sbf -I /home/jonathan/Downloads/PyQt-x11-gpl-4.9
/sip /home/jonathan/Downloads/PyQt-x11-gpl-4.9/sip/QtMultimedia/QtMultimediamod.
sip
Creating the Makefile for the QtMultimedia module...
Generating the C++ source for the QtNetwork module...
"/usr/bin/sip" -w -o -P -x VendorID -t WS_X11 -x PyQt_NoPrintRangeBug -t Qt_4_6_
2 -g -a QtNetwork.api -c /home/jonathan/Downloads/PyQt-x11-gpl-4.9/QtNetwork -b
QtNetwork/QtNetwork.sbf -I /home/jonathan/Downloads/PyQt-x11-gpl-4.9/sip /home/j
onathan/Downloads/PyQt-x11-gpl-4.9/sip/QtNetwork/QtNetworkmod.sip
Creating the Makefile for the QtNetwork module...
Generating the C++ source for the QtDBus module...
"/usr/bin/sip" -w -o -P -x VendorID -t WS_X11 -x PyQt_NoPrintRangeBug -t Qt_4_6_
2 -g -a QtDBus.api -c /home/jonathan/Downloads/PyQt-x11-gpl-4.9/QtDBus -b QtDBus
/QtDBus.sbf -I /home/jonathan/Downloads/PyQt-x11-gpl-4.9/sip /home/jonathan/Down
loads/PyQt-x11-gpl-4.9/sip/QtDBus/QtDBusmod.sip
sip: QDBusPendingCall has not been defined
Error: Unable to create the C++ code.
I would really appreciate any help getting pyqt4 to work with python3.
Thank you.

Resources