Package: quelcom   
Version: 0.4.0-9   
   
When I run dpkg-buildpackage the build has errors compiling files because of   
missing 'uintptr_t' declarations.   
   
Here is a full transcript:  
   
==== TRANSCRIPT BEGINS ====   
   
rr002701e001:/tmp/fix_quelcom_build# dpkg-source -x ./quelcom_0.4.0-9.dsc   
dpkg-source: extracting quelcom in quelcom-0.4.0   
rr002701e001:/tmp/fix_quelcom_build# cd quelcom-0.4.0/   
rr002701e001:/tmp/fix_quelcom_build/quelcom-0.4.0# dpkg-buildpackage   
dpkg-buildpackage: source package is quelcom   
dpkg-buildpackage: source version is 0.4.0-9   
dpkg-buildpackage: source maintainer is Devin Carraway <[EMAIL PROTECTED]>   
dpkg-buildpackage: host architecture is i386   
 debian/rules clean   
dh_testdir   
dh_testroot   
rm -f build-stamp   
/usr/bin/make clean   
make[1]: Entering directory `/tmp/fix_quelcom_build/quelcom-0.4.0'   
for i in lib bin doc po; \   
do \   
  make -C $i clean; \   
done   
make[2]: Entering directory `/tmp/fix_quelcom_build/quelcom-0.4.0/lib'   
rm -f *.o libqextra.so libqmp3.so libqwav.so   
make[2]: Leaving directory `/tmp/fix_quelcom_build/quelcom-0.4.0/lib'   
make[2]: Entering directory `/tmp/fix_quelcom_build/quelcom-0.4.0/bin'   
rm -f *.o qmp3report qmp3check qmp3info qmp3join qmp3cut  qwavheaderdump   
qwavfade qwavsilence qwavinfo qwavjoin qwavcut   
make[2]: Leaving directory `/tmp/fix_quelcom_build/quelcom-0.4.0/bin'   
make[2]: Entering directory `/tmp/fix_quelcom_build/quelcom-0.4.0/doc'   
rm -f quelcom.{html,info,txt}   
make[2]: Leaving directory `/tmp/fix_quelcom_build/quelcom-0.4.0/doc'   
make[2]: Entering directory `/tmp/fix_quelcom_build/quelcom-0.4.0/po'   
rm -f *.mo   
make[2]: Leaving directory `/tmp/fix_quelcom_build/quelcom-0.4.0/po'   
make[1]: Leaving directory `/tmp/fix_quelcom_build/quelcom-0.4.0'   
# Clean up the HTML docs   
rm -rf doc/quelcom doc/html   
dh_clean   
 dpkg-source -b quelcom-0.4.0   
dpkg-source: building quelcom using existing quelcom_0.4.0.orig.tar.gz   
dpkg-source: building quelcom in quelcom_0.4.0-9.diff.gz   
dpkg-source: warning: ignoring deletion of file doc/quelcom.html   
dpkg-source: warning: ignoring deletion of file doc/quelcom.info   
dpkg-source: warning: ignoring deletion of file doc/quelcom.txt   
dpkg-source: warning: ignoring deletion of file po/ca.mo   
dpkg-source: warning: ignoring deletion of file po/es.mo   
dpkg-source: building quelcom in quelcom_0.4.0-9.dsc   
 debian/rules build   
dh_testdir   
applying debian/patches/00_gcc3-fixes.patch   
patching file bin/qmp3check.cc   
patching file bin/qmp3cut.cc   
patching file bin/qmp3info.cc   
patching file bin/qmp3join.cc   
patching file bin/qmp3report.cc   
patching file bin/qwavcut.cc   
patching file bin/qwavfade.cc   
patching file bin/qwavheaderdump.cc   
patching file bin/qwavinfo.cc   
patching file bin/qwavjoin.cc   
patching file bin/qwavsilence.cc   
patching file lib/qcuthandler.cc   
patching file lib/qcuthandler.hh   
patching file lib/qexception.hh   
patching file lib/qfile.hh   
patching file lib/qmisc.cc   
patching file lib/qmp3.cc   
patching file lib/qmp3.hh   
patching file lib/qmp3frameheader.hh   
patching file lib/qreport.cc   
patching file lib/qreport.hh   
patching file lib/qtag.cc   
patching file lib/qtag.hh   
patching file lib/qvf.cc   
patching file lib/qvf.hh   
patching file lib/qwav.cc   
patching file lib/qwavheader.cc   
patching file lib/qwavsample.cc   
applying debian/patches/01_pic.patch   
patching file lib/makefile   
applying debian/patches/02_optionalstrip.patch   
patching file bin/makefile   
patching file lib/makefile   
patching file makefile   
applying debian/patches/03_debugbuild.patch   
patching file bin/makefile   
patching file lib/makefile   
applying debian/patches/04_wavheader-endian.patch   
patching file lib/endian.hh   
patching file lib/qwav.hh   
patching file lib/qwavheader.cc   
patching file lib/qwavheader.hh   
applying debian/patches/05_wavheaderdump-endian.patch   
patching file bin/qwavheaderdump.cc   
applying debian/patches/06_wavsample-endian.patch   
patching file lib/qwavsample.cc   
applying debian/patches/07_mp3frameheader-endian.patch   
patching file lib/qmp3frameheader.cc   
patching file lib/qmp3frameheader.hh   
applying debian/patches/08_gcc4-fixes.patch   
patching file lib/qwavsample.cc   
# stripping is disabled during the build so that it can   
# be done (or not) by dh_strip   
/usr/bin/make PREFIX=/usr STRIP=/bin/true   
make[1]: Entering directory `/tmp/fix_quelcom_build/quelcom-0.4.0'   
for i in lib bin doc po; \   
do \   
  make -C $i; \   
done   
make[2]: Entering directory `/tmp/fix_quelcom_build/quelcom-0.4.0/lib'   
g++ -g -DNLS -Wall -fPIC -o qexception.o -c qexception.cc   
g++ -g -DNLS -Wall -fPIC -o qvf.o -c qvf.cc   
g++ -g -DNLS -Wall -fPIC -o qcuthandler.o -c qcuthandler.cc   
g++ -g -DNLS -Wall -fPIC -o qfile.o -c qfile.cc   
g++ -g -DNLS -Wall -fPIC -o qmisc.o -c qmisc.cc   
g++ -g -DNLS -Wall -fPIC -o libqextra.so -shared qexception.o qvf.o   
qcuthandler.o qfile.o qmisc.o   
/bin/true libqextra.so   
g++ -g -DNLS -Wall -fPIC -o qmp3.o -c qmp3.cc   
qmp3.cc: In method `u_int32_t qmp3::cut(unsigned int, unsigned int)':   
qmp3.cc:445: warning: control reaches end of non-void function   
`qmp3::cut(unsigned int, unsigned int)'   
g++ -g -DNLS -Wall -fPIC -o qmp3frameheader.o -c qmp3frameheader.cc   
g++ -g -DNLS -Wall -fPIC -o qtag.o -c qtag.cc   
g++ -g -DNLS -Wall -fPIC -o qreport.o -c qreport.cc   
qreport.cc: In method `void qreport::add(qreport)':   
qreport.cc:101: warning: assignment of negative value `-1' to `u_int32_t'   
qreport.cc:106: warning: assignment of negative value `-1' to `u_int32_t'   
g++  -o libqmp3.so -shared qmp3.o qmp3frameheader.o qtag.o qreport.o   
/bin/true libqmp3.so   
g++ -g -DNLS -Wall -fPIC -o qwav.o -c qwav.cc   
g++ -g -DNLS -Wall -fPIC -o qwavheader.o -c qwavheader.cc   
g++ -g -DNLS -Wall -fPIC -o qwavsample.o -c qwavsample.cc   
qwavsample.cc: In method `qwavsample::qwavsample(qwav *, unsigned int = 1)':   
qwavsample.cc:29: `uintptr_t' undeclared (first use this function)   
qwavsample.cc:29: (Each undeclared identifier is reported only once   
qwavsample.cc:29: for each function it appears in.)   
qwavsample.cc:29: parse error before `%'   
qwavsample.cc:58: confused by earlier errors, bailing out   
make[2]: *** [qwavsample.o] Error 1   
make[2]: Leaving directory `/tmp/fix_quelcom_build/quelcom-0.4.0/lib'   
make[2]: Entering directory `/tmp/fix_quelcom_build/quelcom-0.4.0/bin'   
g++ -g -DNLS -Wall -DVERSION=\"0.4.0\" -DPACKAGE=\"quelcom\"   
-DLOCALEDIR=\"/usr/share/locale\" -I./../lib -DAPPNAME=\"qmp3report\" -o   
qmp3report.o -c qmp3report.cc   
g++ -o qmp3report qmp3report.o -L./../lib -lqextra -lqmp3   
/bin/true qmp3report   
g++ -g -DNLS -Wall -DVERSION=\"0.4.0\" -DPACKAGE=\"quelcom\"   
-DLOCALEDIR=\"/usr/share/locale\" -I./../lib -DAPPNAME=\"qmp3check\" -o   
qmp3check.o -c qmp3check.cc   
g++ -o qmp3check qmp3check.o -L./../lib -lqextra -lqmp3   
/bin/true qmp3check   
g++ -g -DNLS -Wall -DVERSION=\"0.4.0\" -DPACKAGE=\"quelcom\"   
-DLOCALEDIR=\"/usr/share/locale\" -I./../lib -DAPPNAME=\"qmp3info\" -o   
qmp3info.o -c qmp3info.cc   
g++ -o qmp3info qmp3info.o -L./../lib -lqextra -lqmp3   
/bin/true qmp3info   
g++ -g -DNLS -Wall -DVERSION=\"0.4.0\" -DPACKAGE=\"quelcom\"   
-DLOCALEDIR=\"/usr/share/locale\" -I./../lib -DAPPNAME=\"qmp3join\" -o   
qmp3join.o -c qmp3join.cc   
g++ -o qmp3join qmp3join.o -L./../lib -lqextra -lqmp3   
/bin/true qmp3join   
g++ -g -DNLS -Wall -DVERSION=\"0.4.0\" -DPACKAGE=\"quelcom\"   
-DLOCALEDIR=\"/usr/share/locale\" -I./../lib -DAPPNAME=\"qmp3cut\" -o   
qmp3cut.o -c qmp3cut.cc   
g++ -o qmp3cut qmp3cut.o -L./../lib -lqextra -lqmp3   
/bin/true qmp3cut   
g++ -g -DNLS -Wall -DVERSION=\"0.4.0\" -DPACKAGE=\"quelcom\"   
-DLOCALEDIR=\"/usr/share/locale\" -I./../lib -DAPPNAME=\"qwavheaderdump\" -o   
qwavheaderdump.o -c qwavheaderdump.cc   
qwavheaderdump.cc: In function `int main(int, char **)':   
qwavheaderdump.cc:131: `uintptr_t' undeclared (first use this function)   
qwavheaderdump.cc:131: (Each undeclared identifier is reported only once   
qwavheaderdump.cc:131: for each function it appears in.)   
qwavheaderdump.cc:131: parse error before `.'   
qwavheaderdump.cc:142: parse error before `*'   
qwavheaderdump.cc:148: parse error before `->'   
qwavheaderdump.cc:149: parse error before `->'   
qwavheaderdump.cc:153: parse error before `->'   
qwavheaderdump.cc:159: parse error before `->'   
qwavheaderdump.cc:160: parse error before `->'   
qwavheaderdump.cc:164: parse error before `->'   
qwavheaderdump.cc:168: confused by earlier errors, bailing out   
make[2]: *** [qwavheaderdump.o] Error 1   
make[2]: Leaving directory `/tmp/fix_quelcom_build/quelcom-0.4.0/bin'   
make[2]: Entering directory `/tmp/fix_quelcom_build/quelcom-0.4.0/doc'   
makeinfo --force --html quelcom.texinfo   
quelcom.texinfo:57: warning: undefined flag: VERSION.   
makeinfo --force quelcom.texinfo   
makeinfo --force --number-sections --no-headers -o quelcom.txt   
quelcom.texinfo   
make[2]: Leaving directory `/tmp/fix_quelcom_build/quelcom-0.4.0/doc'   
make[2]: Entering directory `/tmp/fix_quelcom_build/quelcom-0.4.0/po'   
msgfmt -o ca.mo ca.po   
msgfmt: ca.po: warning: Charset "CHARSET" is not a portable encoding name.   
                        Message conversion to user's charset might not work.   
msgfmt -o es.mo es.po   
msgfmt: es.po: warning: Charset "CHARSET" is not a portable encoding name.   
                        Message conversion to user's charset might not work.   
make[2]: Leaving directory `/tmp/fix_quelcom_build/quelcom-0.4.0/po'   
make[1]: Leaving directory `/tmp/fix_quelcom_build/quelcom-0.4.0'   
touch build-stamp   
 debian/rules binary   
dh_testdir   
dh_testroot   
dh_clean -k   
dh_installdirs   
# binaries go to /usr/lib/quelcom for use by the wrapper   
/usr/bin/make \   
        PREFIX=/tmp/fix_quelcom_build/quelcom-0.4.0/debian/quelcom/usr \   
          
INFODIR=/tmp/fix_quelcom_build/quelcom-0.4.0/debian/quelcom/usr/share/info \   
          
BINDIR=/tmp/fix_quelcom_build/quelcom-0.4.0/debian/quelcom/usr/lib/quelcom \   
          
LIBDIR=/tmp/fix_quelcom_build/quelcom-0.4.0/debian/quelcom/usr/lib/quelcom \   
        install   
make[1]: Entering directory `/tmp/fix_quelcom_build/quelcom-0.4.0'   
for i in lib bin doc po; \   
do \   
  make -C $i; \   
done   
make[2]: Entering directory `/tmp/fix_quelcom_build/quelcom-0.4.0/lib'   
g++ -g -DNLS -Wall -fPIC -o qwavsample.o -c qwavsample.cc   
qwavsample.cc: In method `qwavsample::qwavsample(qwav *, unsigned int = 1)':   
qwavsample.cc:29: `uintptr_t' undeclared (first use this function)   
qwavsample.cc:29: (Each undeclared identifier is reported only once   
qwavsample.cc:29: for each function it appears in.)   
qwavsample.cc:29: parse error before `%'   
qwavsample.cc:58: confused by earlier errors, bailing out   
make[2]: *** [qwavsample.o] Error 1   
make[2]: Leaving directory `/tmp/fix_quelcom_build/quelcom-0.4.0/lib'   
make[2]: Entering directory `/tmp/fix_quelcom_build/quelcom-0.4.0/bin'   
g++ -g -DNLS -Wall -DVERSION=\"0.4.0\" -DPACKAGE=\"quelcom\"   
-DLOCALEDIR=\"/tmp/fix_quelcom_build/quelcom-0.4.0/debian/quelcom/usr/share/locale\"
   
-I./../lib -DAPPNAME=\"qwavheaderdump\" -o qwavheaderdump.o -c   
qwavheaderdump.cc   
qwavheaderdump.cc: In function `int main(int, char **)':   
qwavheaderdump.cc:131: `uintptr_t' undeclared (first use this function)   
qwavheaderdump.cc:131: (Each undeclared identifier is reported only once   
qwavheaderdump.cc:131: for each function it appears in.)   
qwavheaderdump.cc:131: parse error before `.'   
qwavheaderdump.cc:142: parse error before `*'   
qwavheaderdump.cc:148: parse error before `->'   
qwavheaderdump.cc:149: parse error before `->'   
qwavheaderdump.cc:153: parse error before `->'   
qwavheaderdump.cc:159: parse error before `->'   
qwavheaderdump.cc:160: parse error before `->'   
qwavheaderdump.cc:164: parse error before `->'   
qwavheaderdump.cc:168: confused by earlier errors, bailing out   
make[2]: *** [qwavheaderdump.o] Error 1   
make[2]: Leaving directory `/tmp/fix_quelcom_build/quelcom-0.4.0/bin'   
make[2]: Entering directory `/tmp/fix_quelcom_build/quelcom-0.4.0/doc'   
makeinfo --force --html quelcom.texinfo   
quelcom.texinfo:57: warning: undefined flag: VERSION.   
make[2]: Leaving directory `/tmp/fix_quelcom_build/quelcom-0.4.0/doc'   
make[2]: Entering directory `/tmp/fix_quelcom_build/quelcom-0.4.0/po'   
make[2]: Nothing to be done for `all'.   
make[2]: Leaving directory `/tmp/fix_quelcom_build/quelcom-0.4.0/po'   
for i in lib bin doc po; \   
do \   
  make -C $i install; \   
done   
make[2]: Entering directory `/tmp/fix_quelcom_build/quelcom-0.4.0/lib'   
g++ -g -DNLS -Wall -fPIC -o qwavsample.o -c qwavsample.cc   
qwavsample.cc: In method `qwavsample::qwavsample(qwav *, unsigned int = 1)':   
qwavsample.cc:29: `uintptr_t' undeclared (first use this function)   
qwavsample.cc:29: (Each undeclared identifier is reported only once   
qwavsample.cc:29: for each function it appears in.)   
qwavsample.cc:29: parse error before `%'   
qwavsample.cc:58: confused by earlier errors, bailing out   
make[2]: *** [qwavsample.o] Error 1   
make[2]: Leaving directory `/tmp/fix_quelcom_build/quelcom-0.4.0/lib'   
make[2]: Entering directory `/tmp/fix_quelcom_build/quelcom-0.4.0/bin'   
g++ -g -DNLS -Wall -DVERSION=\"0.4.0\" -DPACKAGE=\"quelcom\"   
-DLOCALEDIR=\"/tmp/fix_quelcom_build/quelcom-0.4.0/debian/quelcom/usr/share/locale\"
   
-I./../lib -DAPPNAME=\"qwavheaderdump\" -o qwavheaderdump.o -c   
qwavheaderdump.cc   
qwavheaderdump.cc: In function `int main(int, char **)':   
qwavheaderdump.cc:131: `uintptr_t' undeclared (first use this function)   
qwavheaderdump.cc:131: (Each undeclared identifier is reported only once   
qwavheaderdump.cc:131: for each function it appears in.)   
qwavheaderdump.cc:131: parse error before `.'   
qwavheaderdump.cc:142: parse error before `*'   
qwavheaderdump.cc:148: parse error before `->'   
qwavheaderdump.cc:149: parse error before `->'   
qwavheaderdump.cc:153: parse error before `->'   
qwavheaderdump.cc:159: parse error before `->'   
qwavheaderdump.cc:160: parse error before `->'   
qwavheaderdump.cc:164: parse error before `->'   
qwavheaderdump.cc:168: confused by earlier errors, bailing out   
make[2]: *** [qwavheaderdump.o] Error 1   
make[2]: Leaving directory `/tmp/fix_quelcom_build/quelcom-0.4.0/bin'   
make[2]: Entering directory `/tmp/fix_quelcom_build/quelcom-0.4.0/doc'   
mkdir -p /tmp/fix_quelcom_build/quelcom-0.4.0/debian/quelcom/usr/share/info   
cp   
quelcom.info /tmp/fix_quelcom_build/quelcom-0.4.0/debian/quelcom/usr/share/info 
  
make[2]: Leaving directory `/tmp/fix_quelcom_build/quelcom-0.4.0/doc'   
make[2]: Entering directory `/tmp/fix_quelcom_build/quelcom-0.4.0/po'   
for i in ca es; \   
do \   
  mkdir   
-p 
/tmp/fix_quelcom_build/quelcom-0.4.0/debian/quelcom/usr/share/locale/$i/LC_MESSAGES;
   
\   
  cp   
$i.mo 
/tmp/fix_quelcom_build/quelcom-0.4.0/debian/quelcom/usr/share/locale/$i/LC_MESSAGES/quelcom.mo;
   
\   
done   
make[2]: Leaving directory `/tmp/fix_quelcom_build/quelcom-0.4.0/po'   
make[1]: Leaving directory `/tmp/fix_quelcom_build/quelcom-0.4.0'   
# install the wrapper   
mkdir -p /tmp/fix_quelcom_build/quelcom-0.4.0/debian/quelcom/usr/bin   
install   
debian/wrapper.sh 
/tmp/fix_quelcom_build/quelcom-0.4.0/debian/quelcom/usr/bin/quelcom   
ln: `/tmp/fix_quelcom_build/quelcom-0.4.0/debian/quelcom/usr/bin/quelcom':   
File exists   
make: *** [install] Error 1   
   
==== TRANSCRIPT ENDS ====   
   
However, I see that there are no such errors on Debian's build log here:   
   
http://buildd.debian.org/fetch.php?&pkg=quelcom&ver=0.4.0-9&arch=i386&stamp=1124056282&file=log&as=raw
   
   
I assume this is because my installed C headers or compiler versions are   
different. However, the build process would ideally have some sort of   
dependancy on the versions required to build correctly. 
   
I've created & attached a patch to fix these compile problems on my system.  
The patch adds "inttypes.h" includes where required.  
   
I am using this linux/kernel version:  
    
Linux rr002701e001 2.6.12-riaan #1 Mon Sep 26 14:10:59 SAST 2005 i686       
GNU/Linux  
    
(This is a version of the kernel built from the debian source for 2.6.12 but    
   
with some boot graphics added).    
    
I am using libc6 v2.3.5-6  
  
My g++ version is 2.95  
  
David.  
  
diff -aruN quelcom-0.4.0-orig/bin/qwavheaderdump.cc quelcom-0.4.0/bin/qwavheaderdump.cc
--- quelcom-0.4.0-orig/bin/qwavheaderdump.cc	2005-10-04 13:21:27.000000000 +0200
+++ quelcom-0.4.0/bin/qwavheaderdump.cc	2005-10-04 13:24:21.000000000 +0200
@@ -1,5 +1,6 @@
 # include <getopt.h>	// getopt
 # include <sys/types.h>	// u_int16_t, u_int32_t
+# include <inttypes.h>  // uintptr_t
 # include "qfile.hh"
 # include "qwavheader.hh"
 # include "qexception.hh"
diff -aruN quelcom-0.4.0-orig/lib/qwavsample.cc quelcom-0.4.0/lib/qwavsample.cc
--- quelcom-0.4.0-orig/lib/qwavsample.cc	2005-10-04 13:21:27.000000000 +0200
+++ quelcom-0.4.0/lib/qwavsample.cc	2005-10-04 13:23:51.000000000 +0200
@@ -5,6 +5,7 @@
 # include "qwavsample.hh"
 # include "qexception.hh"
 # include "endian.hh"
+# include <inttypes.h> // uintptr_t
 
 #ifdef NLS
   # include <locale.h>

Reply via email to