dimitri.kirchner
dimit****@amoss*****
Tue Jan 22 22:37:34 JST 2013
Hello, I'm currently working on an project using TPM technology, and I am quite interested in all the work you've done around the OpenPTS project. In that context, I may have found a quite simple bug (but kind of annoying) concerning debug messages... So, I want to compile OpenPTS using the option /--enable-debug/ for printing debug messages, but the compilation doesn't seem to work. I have to precise that the compilation *without *this parameter is actually working great. In order to illustrate the bug, I have attached to this mail my /debian/rules/ file (where I have added the option /--enable-debug/ to configure the package), the corresponding output of the /make/ command, and finally the result of a "/uname -a/". I think this will allow you to understand where the issue can come from, but don't hesitate to ask me for further details if it's not the case. Thank you in advance for your help. -- *Dimitri KIRCHNER* dimit****@amoss***** <mailto:dimit****@amoss*****> -------------- next part -------------- An HTML attachment was scrubbed... Descargar -------------- next part -------------- $ make dpkg-buildpackage chmod +x debian/rules dpkg-buildpackage -tc -uc -b dpkg-buildpackage: paquet source openpts dpkg-buildpackage: version source 0.2.6 dpkg-buildpackage: source changé par Seiji Munetoh <munet****@users*****> dpkg-buildpackage: architecture hôte amd64 dpkg-source --before-build openpts-0.2.6 fakeroot debian/rules clean make[1]: entrant dans le répertoire « openpts-0.2.6 » dh_testdir dh_testroot rm -f build-stamp configure-stamp /usr/bin/make clean make[2]: entrant dans le répertoire « openpts-0.2.6 » Making clean in man make[3]: entrant dans le répertoire « openpts-0.2.6/man » Making clean in man8 make[4]: entrant dans le répertoire « openpts-0.2.6/man/man8 » rm -rf .libs _libs rm -f *.lo make[4]: quittant le répertoire « openpts-0.2.6/man/man8 » Making clean in man5 make[4]: entrant dans le répertoire « openpts-0.2.6/man/man5 » rm -rf .libs _libs rm -f *.lo make[4]: quittant le répertoire « openpts-0.2.6/man/man5 » Making clean in man3 make[4]: entrant dans le répertoire « openpts-0.2.6/man/man3 » rm -rf .libs _libs rm -f *.lo make[4]: quittant le répertoire « openpts-0.2.6/man/man3 » Making clean in man1 make[4]: entrant dans le répertoire « openpts-0.2.6/man/man1 » rm -rf .libs _libs rm -f *.lo make[4]: quittant le répertoire « openpts-0.2.6/man/man1 » Making clean in . make[4]: entrant dans le répertoire « openpts-0.2.6/man » rm -rf .libs _libs rm -f *.lo make[4]: quittant le répertoire « openpts-0.2.6/man » make[3]: quittant le répertoire « openpts-0.2.6/man » Making clean in models make[3]: entrant dans le répertoire « openpts-0.2.6/models » test -z "*.dot *.png *.dot2" || rm -f *.dot *.png *.dot2 rm -rf .libs _libs rm -f *.lo make[3]: quittant le répertoire « openpts-0.2.6/models » Making clean in doc make[3]: entrant dans le répertoire « openpts-0.2.6/doc » rm -rf ./images rm -rf ./apidoc_html rm -rf ./apidoc_latex rm -f *~ rm -f *.aux rm -f *.log rm -f *.pdf rm -f *.toc make[3]: quittant le répertoire « openpts-0.2.6/doc » Making clean in src make[3]: entrant dans le répertoire « openpts-0.2.6/src » rm -f openpts uml2dot rm2dot ir2text tpm_createkey iml2text tpm_readpcr tpm_extendpcr test -z "libopenpts.la libopenpts_imc.la libopenpts_imv.la" || rm -f libopenpts.la libopenpts_imc.la libopenpts_imv.la rm -f "./so_locations" rm -f "./so_locations" rm -f "./so_locations" rm -rf .libs _libs rm -f ptsc rm -f *.o rm -f *.lo make[3]: quittant le répertoire « openpts-0.2.6/src » Making clean in include make[3]: entrant dans le répertoire « openpts-0.2.6/include » rm -rf .libs _libs rm -f *.lo make[3]: quittant le répertoire « openpts-0.2.6/include » Making clean in po make[3]: entrant dans le répertoire « openpts-0.2.6/po » rm -f *.insert-header rm -f remove-potcdate.sed rm -f stamp-poT rm -f core core.* openpts.po openpts.1po openpts.2po *.new.po rm -fr *.o make[3]: quittant le répertoire « openpts-0.2.6/po » Making clean in m4 make[3]: entrant dans le répertoire « openpts-0.2.6/m4 » rm -rf .libs _libs rm -f *.lo make[3]: quittant le répertoire « openpts-0.2.6/m4 » Making clean in . make[3]: entrant dans le répertoire « openpts-0.2.6 » rm -rf .libs _libs rm -f *.lo make[3]: quittant le répertoire « openpts-0.2.6 » make[2]: quittant le répertoire « openpts-0.2.6 » dh_clean dh_clean: Compatibility levels before 5 are deprecated (level 1 in use) rm -f debian/substvars rm -f debian/*.debhelper rm -rf debian/tmp/ rm -f debian/*.debhelper.log rm -f debian/debhelper.log rm -f debian/files find . \( \( -type f -a \ \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \ -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \ -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \ -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \ \) -exec rm -f {} \; \) -o \ \( -type d -a -name autom4te.cache -prune -exec rm -rf {} \; \) \) make[1]: quittant le répertoire « openpts-0.2.6 » debian/rules build make[1]: entrant dans le répertoire « openpts-0.2.6 » dh_testdir # Add here commands to configure the package. ./configure --disable-static --prefix=/usr --with-tss --enable-tnc --enable-debug checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for debug-enabled build... yes checking for 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 style of include used by make... GNU checking dependency style of gcc... gcc3 checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 3458764513820540925 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for mt... mt checking if mt is a manifest tool... no checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for cp... cp checking for echo... printf %s\n checking for mkdir... mkdir checking for rm... rm -f 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 GCC... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes 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 LIBCRYPTO... yes checking for LIBXML2... yes checking for LIBUUID... yes checking for LIBTSPI... no configure: WARNING: libtspi(trousers) not found by pkg-config. checking for Tspi_Context_Create in -ltspi... yes checking trousers/tss.h usability... yes checking trousers/tss.h presence... yes checking for trousers/tss.h... yes checking for ANSI C header files... (cached) yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for long file names... yes checking for mode_t... yes checking for off_t... yes checking for pid_t... yes checking for size_t... yes checking return type of signal handlers... void checking for uid_t in sys/types.h... yes configure: creating ./config.status config.status: creating Makefile config.status: creating po/Makefile.in config.status: creating m4/Makefile config.status: creating include/Makefile config.status: creating src/Makefile config.status: creating doc/Makefile config.status: creating doc/doxygen.conf config.status: creating models/Makefile config.status: creating dist/openpts.spec config.status: creating dist/ptsc.conf config.status: creating dist/ptsv.conf config.status: creating man/Makefile config.status: creating man/man1/Makefile config.status: creating man/man3/Makefile config.status: creating man/man5/Makefile config.status: creating man/man8/Makefile 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 touch configure-stamp dh_testdir # Add here commands to compile the package. /usr/bin/make all make[2]: entrant dans le répertoire « openpts-0.2.6 » Making all in m4 make[1]: entrant dans le répertoire « openpts-0.2.6/m4 » make[1]: Rien à faire pour « all ». make[1]: quittant le répertoire « openpts-0.2.6/m4 » Making all in po make[1]: entrant dans le répertoire « openpts-0.2.6/po » make[1]: quittant le répertoire « openpts-0.2.6/po » Making all in include make[1]: entrant dans le répertoire « openpts-0.2.6/include » make[1]: Rien à faire pour « all ». make[1]: quittant le répertoire « openpts-0.2.6/include » Making all in src make[1]: entrant dans le répertoire « openpts-0.2.6/src » /bin/sh ../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"openpts\" -DPACKAGE_TARNAME=\"openpts\" -DPACKAGE_VERSION=\"0.2.6\" -DPACKAGE_STRING=\"openpts\ 0.2.6\" -DPACKAGE_BUGREPORT=\"openp****@lists*****\" -DPACKAGE_URL=\"\" -DPACKAGE=\"openpts\" -DVERSION=\"0.2.6\" -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/\" -DENABLE_NLS=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DHAVE_DAEMON=1 -DHAVE_VSYSLOG=1 -DHAVE_SENDFILE=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBXML2=1 -DSTDC_HEADERS=1 -DHAVE_LONG_FILE_NAMES=1 -DRETSIGTYPE=void -I. -I../include -I/usr/include/libxml2 -I/usr/include/trousers -I/usr/include/tss -I../include -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include/uuid -DCONFIG_LIBUUID -DCONFIG_TSS -O0 -g -DDEBUG -DPTS_VER_MAJOR=2 -DPTS_VER_MINOR=6 -DPTS_SPEC_MAJOR=0 -DPTS_SPEC_MINOR=0 -DOPENPTS_PCR_INDEX=11 -m64 -Wall -Werror -Wreturn-type -Wsign-compare -MT verifier.lo -MD -MP -MF .deps/verifier.Tpo -c -o verifier.lo verifier.c libtool: compile: gcc -DPACKAGE_NAME=\"openpts\" -DPACKAGE_TARNAME=\"openpts\" -DPACKAGE_VERSION=\"0.2.6\" "-DPACKAGE_STRING=\"openpts 0.2.6\"" -DPACKAGE_BUGREPORT=\"openp****@lists*****\" -DPACKAGE_URL=\"\" -DPACKAGE=\"openpts\" -DVERSION=\"0.2.6\" -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/\" -DENABLE_NLS=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DHAVE_DAEMON=1 -DHAVE_VSYSLOG=1 -DHAVE_SENDFILE=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBXML2=1 -DSTDC_HEADERS=1 -DHAVE_LONG_FILE_NAMES=1 -DRETSIGTYPE=void -I. -I../include -I/usr/include/libxml2 -I/usr/include/trousers -I/usr/include/tss -I../include -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include/uuid -DCONFIG_LIBUUID -DCONFIG_TSS -O0 -g -DDEBUG -DPTS_VER_MAJOR=2 -DPTS_VER_MINOR=6 -DPTS_SPEC_MAJOR=0 -DPTS_SPEC_MINOR=0 -DOPENPTS_PCR_INDEX=11 -m64 -Wall -Werror -Wreturn-type -Wsign-compare -MT verifier.lo -MD -MP -MF .deps/verifier.Tpo -c verifier.c -fPIC -DPIC -o .libs/verifier.o In file included from ../include/openpts.h:56:0, from verifier.c:51: ../include/openpts_log.h:102:0: error: "DEBUG" redefined [-Werror] <command-line>:0:0: note: this is the location of the previous definition cc1: all warnings being treated as errors make[1]: *** [verifier.lo] Erreur 1 make[1]: quittant le répertoire « openpts-0.2.6/src » make: *** [all-recursive] Erreur 1 $ uname -a Linux pc-eval-11 3.2.0-4-amd64 #1 SMP Debian 3.2.35-2 x86_64 GNU/Linux -------------- next part -------------- #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 configure: configure-stamp configure-stamp: dh_testdir # Add here commands to configure the package. ./configure --disable-static --prefix=/usr --with-tss --enable-tnc --enable-debug touch configure-stamp build: build-stamp build-stamp: configure-stamp dh_testdir # Add here commands to compile the package. $(MAKE) all #docbook-to-man debian/openplatformtrustservices-tools.sgml > openplatformtrustservices-tools.1 touch $@ clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp $(MAKE) clean dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install mkdir -p $(CURDIR)/debian/tmp/etc/init.d install -c -m 444 dist/fedora.initrd.ptsc $(CURDIR)/debian/tmp/etc/init.d/ptsc install -c -m 744 dist/ptsc.conf $(CURDIR)/debian/tmp/etc/ptsc.conf install -c -m 744 dist/ptsv.conf $(CURDIR)/debian/tmp/etc/ptsv.conf mkdir -p $(CURDIR)/debian/tmp/usr/share/openpts/models install -c -m 444 models/*.uml $(CURDIR)/debian/tmp/usr/share/openpts/models/ mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/openpts/tpm_emulator install -c -m 444 dist/tpm_emulator/* $(CURDIR)/debian/tmp/usr/share/doc/openpts/tpm_emulator/ # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installchangelogs ChangeLog # dh_installdocs # dh_installexamples # dh_install --fail-missing --sourcedir=debian/tmp # dh_installmenu # dh_installdebconf # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_python # dh_installinit # dh_lintian # dh_installcron # dh_installinfo dh_installman dh_link # dh_strip dh_compress dh_fixperms # dh_perl # dh_makeshlibs dh_installdeb # dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure