Bug#318508: db2: FTBFS: Label at end of compound statement

2005-07-18 Thread Kalle Olavi Niemitalo
tags 318508 + patch
quit

Daniel Schepler [EMAIL PROTECTED] writes:

From my build log (reproduced using pbuilder in an i386 chroot):

Also reproduced on AMD Duron running Debian i386.

 Unfortunately, since this is in build-tree/db2 instead of
 build-tree/db-2.7.7, I can't figure out how to get dbs to patch this
 file.  Anyway, the patch to that file is attached.

I think the least disruptive way is to put .. in the file name;
patch 2.5.9-2 allows that.  Also, I'd prefer keeping the comment
above the break, thus part of the case.  With the following patch
placed in debian/patches/, db2 2.7.7.0-9 now builds OK.

diff -urp db2/os/os_oflags.c db2.new/os/os_oflags.c
--- dummy/../db2/os/os_oflags.c	1999-06-07 18:09:37.0 +
+++ dummy/../db2/os/os_oflags.c	2005-07-15 22:01:53.0 +
@@ -45,6 +45,7 @@ __db_oflags(oflags)
 		break;
 	default:		/* Bogus flags value from user.  */
 	  /* XXX no way to return error from here */
+		break;
 	}
 	if (oflags  O_CREAT)
 		dbflags |= DB_CREATE;


pgpkXC6XUtfec.pgp
Description: PGP signature


Bug#318508: db2: FTBFS: Label at end of compound statement

2005-07-15 Thread Daniel Schepler
Package: db2
Severity: serious
Version: 2:2.7.7.0-9

From my build log (reproduced using pbuilder in an i386 chroot):

...
gcc -O2 -I. -I./include -include ./compat.h -c -fPIC -o os_map.os os/os_map.c
gcc -O2 -I. -I./include -include ./compat.h -c -fPIC -o os_oflags.os 
os/os_oflags.c
os/os_oflags.c: In function '__db_oflags':
os/os_oflags.c:48: error: label at end of compound statement
make[1]: *** [os_oflags.os] Error 1
make[1]: Leaving directory `/tmp/buildd/db2-2.7.7.0/build-tree/db2'
make: *** [stampdir/build] Error 2

Unfortunately, since this is in build-tree/db2 instead of
build-tree/db-2.7.7, I can't figure out how to get dbs to patch this
file.  Anyway, the patch to that file is attached.

-- System Information:
Debian Release: testing/unstable
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-9-amd64-k8
Locale: LANG=en, LC_CTYPE=en (charmap=UTF-8) (ignored: LC_ALL set to 
en_US.UTF-8)

-- 
Daniel Schepler  Please don't disillusion me.  I
[EMAIL PROTECTED]haven't had breakfast yet.
 -- Orson Scott Card
diff -urN db2/os/os_oflags.c db2.new/os/os_oflags.c
--- db2/os/os_oflags.c	1999-06-07 18:09:37.0 +
+++ db2.new/os/os_oflags.c	2005-07-15 22:01:53.0 +
@@ -44,6 +44,7 @@
 	case O_RDWR:
 		break;
 	default:		/* Bogus flags value from user.  */
+		break;
 	  /* XXX no way to return error from here */
 	}
 	if (oflags  O_CREAT)