Bug#519006: wbxml2_0.10.3-1(mips/unstable): FTBFS on mips

2009-05-10 Thread Roland Rosenfeld
tags 519006 + patch
thanks

On Thu, 09 Apr 2009, I wrote:

/usr/bin/cc  -g -O2 -g -Wall -O2   
CMakeFiles/wbxml2xml.dir/wbxml2xml_tool.o 
CMakeFiles/wbxml2xml.dir/attgetopt.o  -o wbxml2xml -rdynamic 
../src/libwbxml2.so.0.0.13 -lexpat 
/usr/bin/ld: non-dynamic relocations refer to dynamic symbol 
optopt@@GLIBC_2.0
/usr/bin/ld: failed to set dynamic section sizes: Bad value
collect2: ld returned 1 exit status
 
 BTW: I noticed the same error message on mips and mipsel when
 autobuilding transfig:
 
 https://buildd.debian.org/fetch.cgi?pkg=transfigver=1%3A3.2.5.a-1arch=mipsstamp=1238502583file=log
 https://buildd.debian.org/fetch.cgi?pkg=transfigver=1%3A3.2.5.a-1arch=mipselstamp=1238035432file=log
 
 All other architectures build without problems.

It seems that optopt is variable name in libc, which conflicts with a
local used name in the local program.

I worked around this problem by renaming optopt (used in a local
getopt.c) to fig_optopt and after this transfig builded on
mipsel without problems (mips is still in the queue):

https://buildd.debian.org/fetch.cgi?pkg=transfigver=1%3A3.2.5.a-2arch=mipselstamp=1241950555file=log

As far as I can see, that same should be possible in wbxml2.
The attached patch should help...

Tscho

Roland
diff -urN wbxml2-0.10.6.orig/tools/attgetopt.c wbxml2-0.10.6/tools/attgetopt.c
--- wbxml2-0.10.6.orig/tools/attgetopt.c	2009-04-24 16:49:50.0 +0200
+++ wbxml2-0.10.6/tools/attgetopt.c	2009-05-10 12:30:40.806445864 +0200
@@ -27,7 +27,7 @@
 #include string.h
 
 int optind = 1;
-int optopt;
+int wbxml_optopt;
 char *optarg;
 
 int
@@ -55,7 +55,7 @@
 		
 	}
 	
-	optopt = c = argv[optind][sp];
+	wbxml_optopt = c = argv[optind][sp];
 
 	/* Check for invalid option */
 	if (c == ':' || (cp = strchr(opts, c)) == NULL) {
diff -urN wbxml2-0.10.6.orig/tools/getopt.h wbxml2-0.10.6/tools/getopt.h
--- wbxml2-0.10.6.orig/tools/getopt.h	2009-04-24 16:49:50.0 +0200
+++ wbxml2-0.10.6/tools/getopt.h	2009-05-10 12:30:40.806445864 +0200
@@ -11,7 +11,7 @@
 
 int wbxml_getopt(int argc, char **argv, char *opts);
 extern int optind;
-extern int optopt;
+extern int wbxml_optopt;
 extern char *optarg;
 
 #endif


Processed: Re: Bug#519006: wbxml2_0.10.3-1(mips/unstable): FTBFS on mips

2009-05-10 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 tags 519006 + patch
Bug#519006: wbxml2_0.10.3-1(mips/unstable): FTBFS on mips
Tags were: help moreinfo
Tags added: patch

 thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#519006: wbxml2_0.10.3-1(mips/unstable): FTBFS on mips

2009-04-09 Thread Roland Rosenfeld
   /usr/bin/cc  -g -O2 -g -Wall -O2   
   CMakeFiles/wbxml2xml.dir/wbxml2xml_tool.o 
   CMakeFiles/wbxml2xml.dir/attgetopt.o  -o wbxml2xml -rdynamic 
   ../src/libwbxml2.so.0.0.13 -lexpat 
   /usr/bin/ld: non-dynamic relocations refer to dynamic symbol 
   optopt@@GLIBC_2.0
   /usr/bin/ld: failed to set dynamic section sizes: Bad value
   collect2: ld returned 1 exit status

BTW: I noticed the same error message on mips and mipsel when
autobuilding transfig:

https://buildd.debian.org/fetch.cgi?pkg=transfigver=1%3A3.2.5.a-1arch=mipsstamp=1238502583file=log
https://buildd.debian.org/fetch.cgi?pkg=transfigver=1%3A3.2.5.a-1arch=mipselstamp=1238035432file=log

All other architectures build without problems.

Tscho

Roland



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#519006: wbxml2_0.10.3-1(mips/unstable): FTBFS on mips

2009-03-09 Thread Peter De Schrijver
Package: wbxml2
Version: 0.10.3-1
Severity: serious

There was an error while trying to autobuild your package:

 Automatic build of wbxml2_0.10.3-1 on ball by sbuild/mips 99.99
 Build started at 20090309-0257

[...]

 ** Using build dependencies supplied by package:
 Build-Depends: debhelper (= 5.0.0), cmake, cdbs, check, libexpat1-dev | 
 libexpat-dev, libpopt-dev, zlib1g-dev | libz-dev

[...]

 cd /build/buildd/wbxml2-0.10.3/obj-mips-linux-gnu/tools  /usr/bin/cc   -g 
 -O2 -g -Wall -O2 -I/build/buildd/wbxml2-0.10.3 
 -I/build/buildd/wbxml2-0.10.3/obj-mips-linux-gnu   -o 
 CMakeFiles/wbxml2xml.dir/attgetopt.o   -c 
 /build/buildd/wbxml2-0.10.3/tools/attgetopt.c
 Linking C executable wbxml2xml
 cd /build/buildd/wbxml2-0.10.3/obj-mips-linux-gnu/tools  /usr/bin/cmake -E 
 cmake_link_script CMakeFiles/wbxml2xml.dir/link.txt --verbose=1
 /usr/bin/cc  -g -O2 -g -Wall -O2   CMakeFiles/wbxml2xml.dir/wbxml2xml_tool.o 
 CMakeFiles/wbxml2xml.dir/attgetopt.o  -o wbxml2xml -rdynamic 
 ../src/libwbxml2.so.0.0.13 -lexpat 
 /usr/bin/ld: non-dynamic relocations refer to dynamic symbol optopt@@GLIBC_2.0
 /usr/bin/ld: failed to set dynamic section sizes: Bad value
 collect2: ld returned 1 exit status
 make[3]: *** [tools/wbxml2xml] Error 1
 make[3]: Leaving directory `/build/buildd/wbxml2-0.10.3/obj-mips-linux-gnu'
 make[2]: *** [tools/CMakeFiles/wbxml2xml.dir/all] Error 2
 make[2]: Leaving directory `/build/buildd/wbxml2-0.10.3/obj-mips-linux-gnu'
 make[1]: *** [all] Error 2
 make[1]: Leaving directory `/build/buildd/wbxml2-0.10.3/obj-mips-linux-gnu'
 make: *** [debian/stamp-makefile-build] Error 2
 dpkg-buildpackage: failure: debian/rules build gave error exit status 2

A full build log can be found at:
http://buildd.debian.org/build.php?arch=mipspkg=wbxml2ver=0.10.3-1




-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#519006: wbxml2_0.10.3-1(mips/unstable): FTBFS on mips

2009-03-09 Thread Michael Banck
reassign 519006 binutils
thanks

On Mon, Mar 09, 2009 at 10:42:59PM +0200, Peter De Schrijver wrote:
 Package: wbxml2
 Version: 0.10.3-1
 Severity: serious
 
 There was an error while trying to autobuild your package:
 
  Automatic build of wbxml2_0.10.3-1 on ball by sbuild/mips 99.99
  Build started at 20090309-0257
 
 [...]
 
  ** Using build dependencies supplied by package:
  Build-Depends: debhelper (= 5.0.0), cmake, cdbs, check, libexpat1-dev | 
  libexpat-dev, libpopt-dev, zlib1g-dev | libz-dev
 
 [...]
 
  cd /build/buildd/wbxml2-0.10.3/obj-mips-linux-gnu/tools  /usr/bin/cc   -g 
  -O2 -g -Wall -O2 -I/build/buildd/wbxml2-0.10.3 
  -I/build/buildd/wbxml2-0.10.3/obj-mips-linux-gnu   -o 
  CMakeFiles/wbxml2xml.dir/attgetopt.o   -c 
  /build/buildd/wbxml2-0.10.3/tools/attgetopt.c
  Linking C executable wbxml2xml
  cd /build/buildd/wbxml2-0.10.3/obj-mips-linux-gnu/tools  /usr/bin/cmake 
  -E cmake_link_script CMakeFiles/wbxml2xml.dir/link.txt --verbose=1
  /usr/bin/cc  -g -O2 -g -Wall -O2   
  CMakeFiles/wbxml2xml.dir/wbxml2xml_tool.o 
  CMakeFiles/wbxml2xml.dir/attgetopt.o  -o wbxml2xml -rdynamic 
  ../src/libwbxml2.so.0.0.13 -lexpat 
  /usr/bin/ld: non-dynamic relocations refer to dynamic symbol 
  optopt@@GLIBC_2.0
  /usr/bin/ld: failed to set dynamic section sizes: Bad value
  collect2: ld returned 1 exit status
  make[3]: *** [tools/wbxml2xml] Error 1
  make[3]: Leaving directory `/build/buildd/wbxml2-0.10.3/obj-mips-linux-gnu'
  make[2]: *** [tools/CMakeFiles/wbxml2xml.dir/all] Error 2
  make[2]: Leaving directory `/build/buildd/wbxml2-0.10.3/obj-mips-linux-gnu'
  make[1]: *** [all] Error 2
  make[1]: Leaving directory `/build/buildd/wbxml2-0.10.3/obj-mips-linux-gnu'
  make: *** [debian/stamp-makefile-build] Error 2
  dpkg-buildpackage: failure: debian/rules build gave error exit status 2

Hrm, it is linking an executable here, not a library.  The library got
built with -fPIC, but the object file belonging to the executable did
not.  AFAIK, this is fine (and auto-generated by cmake) and all non
mips-* arches had no trouble.

 A full build log can be found at:
 http://buildd.debian.org/build.php?arch=mipspkg=wbxml2ver=0.10.3-1
 
It says: binutils_2.19.1-1, same for the mipsel build log.

Further, mopac7 shows the same issue on mipsel, but interestingly mipsel
built fine and was still on lenny's binutils, see

https://buildd.debian.org/fetch.cgi?pkg=mopac7;ver=1.14-2;arch=mipsel;stamp=1235861371

vs.

https://buildd.debian.org/fetch.cgi?pkg=mopac7;ver=1.14-2;arch=mips;stamp=1235372794

Thus, I assume this is a bug in binutils for now and reassign.


cheers,

Michael



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Processed: Re: Bug#519006: wbxml2_0.10.3-1(mips/unstable): FTBFS on mips

2009-03-09 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 reassign 519006 binutils
Bug#519006: wbxml2_0.10.3-1(mips/unstable): FTBFS on mips
Bug reassigned from package `wbxml2' to `binutils'.

 thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org