Your message dated Wed, 12 Jan 2011 17:49:06 +0000
with message-id <[email protected]>
and subject line Bug#609796: fixed in oflib 0git20070620-5
has caused the Debian Bug report #609796,
regarding libofapi-dev: examples/soundbus.c does not build
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
609796: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=609796
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libofapi-dev
Version: 0git20070620-4
Severity: normal
Tags: patch

I tried to build all the examples in libofapi-dev.

First, i noticed that the makefile does not build soundbus.c at all.

When i tried to build it by hand i got an error:

d...@bigpuff:~/src/libofapi$ make
gcc -std=c99 -lofapi example.c -o example
gcc -std=c99 -lofapi ramtest.c -o ramtest
d...@bigpuff:~/src/libofapi$ cat Makefile 
default:
        gcc -std=c99 -lofapi example.c -o example
        gcc -std=c99 -lofapi ramtest.c -o ramtest
clean:
        rm -f ramtest
        rm -f example
d...@bigpuff:~/src/libofapi$ gcc -std=c99 -lofapi soundbus.c -o soundbus
soundbus.c: In function ‘print_sound’:
soundbus.c:76: warning: implicit declaration of function ‘of_property_to_int’
/tmp/ccwqXpTS.o: In function `print_sound':
soundbus.c:(.text+0x2e0): undefined reference to `of_property_to_int'
collect2: ld returned 1 exit status
d...@bigpuff:~/src/libofapi$ 


The attached patch should fix soundbus.c and the makefile so that all 
examples get cleanly built.

Thanks for maintaining this package for debian,

        --dkg

-- System Information:
Debian Release: 6.0
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.32-5-powerpc
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libofapi-dev depends on:
ii  libofapi0                 0git20070620-4 OpenFirmware device-tree parsing l

libofapi-dev recommends no packages.

libofapi-dev suggests no packages.

-- no debconf information
diff -ru /usr/share/doc/libofapi-dev/examples/Makefile examples/Makefile
--- /usr/share/doc/libofapi-dev/examples/Makefile	2007-06-20 14:03:56.000000000 -0400
+++ examples/Makefile	2011-01-12 10:12:55.000000000 -0500
@@ -1,6 +1,9 @@
-default:
-	gcc -std=c99 -lofapi example.c -o example
-	gcc -std=c99 -lofapi ramtest.c -o ramtest
+BINARIES=example ramtest soundbus
+all: $(BINARIES)
+
+%: %.c
+	gcc -std=c99 -lofapi $< -o $@
 clean:
-	rm -f ramtest
-	rm -f example
+	rm -f $(BINARIES)
+
+.PHONY: clean all
diff -ru /usr/share/doc/libofapi-dev/examples/soundbus.c examples/soundbus.c
--- /usr/share/doc/libofapi-dev/examples/soundbus.c	2007-03-01 14:36:26.000000000 -0500
+++ examples/soundbus.c	2011-01-12 10:11:15.000000000 -0500
@@ -73,7 +73,7 @@
 	if(!property)
 		return;
 		
-	of_property_to_int(&layout_id, property, plen);
+	of_property_to_uint32(&layout_id, property, plen);
 	
 	printf("Layout ID: %d\n", layout_id);
 	

--- End Message ---
--- Begin Message ---
Source: oflib
Source-Version: 0git20070620-5

We believe that the bug you reported is fixed in the latest version of
oflib, which is due to be installed in the Debian FTP archive:

libofapi-dev_0git20070620-5_amd64.deb
  to main/o/oflib/libofapi-dev_0git20070620-5_amd64.deb
libofapi0_0git20070620-5_amd64.deb
  to main/o/oflib/libofapi0_0git20070620-5_amd64.deb
oflib_0git20070620-5.debian.tar.gz
  to main/o/oflib/oflib_0git20070620-5.debian.tar.gz
oflib_0git20070620-5.dsc
  to main/o/oflib/oflib_0git20070620-5.dsc



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Julien BLACHE <[email protected]> (supplier of updated oflib package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 12 Jan 2011 18:34:14 +0100
Source: oflib
Binary: libofapi-dev libofapi0
Architecture: source amd64
Version: 0git20070620-5
Distribution: unstable
Urgency: low
Maintainer: Julien BLACHE <[email protected]>
Changed-By: Julien BLACHE <[email protected]>
Description: 
 libofapi-dev - OpenFirmware device-tree parsing library [development files]
 libofapi0  - OpenFirmware device-tree parsing library
Closes: 609796
Changes: 
 oflib (0git20070620-5) unstable; urgency=low
 .
   * Switch to source format 3.0 (quilt).
   * debian/control:
     + Bump Standards-Version to 3.9.1 (no changes).
     + Add ${misc:Depends} to libofapi-dev.
   * debian/patches/fix_examples.patch:
     + Added; fix the soundbus example and enable it (closes: #609796).
Checksums-Sha1: 
 5f71a161604664e1b19672009aff4c0f6bd09dba 1006 oflib_0git20070620-5.dsc
 1847d50415e574aa0de07ee073ed7f8457421517 3985 
oflib_0git20070620-5.debian.tar.gz
 239f23fbb6322603cfdf143ddbc8812796c68b85 10946 
libofapi-dev_0git20070620-5_amd64.deb
 263a7ccf37242c7f09f276876d1828f55cf8e4b6 9348 
libofapi0_0git20070620-5_amd64.deb
Checksums-Sha256: 
 f14eb3cf2e714b14022b4d12f8c23dba7072b9edaa742fe48c181ea6cf9323f1 1006 
oflib_0git20070620-5.dsc
 602d99b7c3612904fc166096cc67e92ec7d8148724af598dbda563390685b1a4 3985 
oflib_0git20070620-5.debian.tar.gz
 923d1c33a61935dc764567ce1e604b80d268294fc2410b4e3d08a4c85ca3f3a8 10946 
libofapi-dev_0git20070620-5_amd64.deb
 acd5f2917a918a57f91813268b571b8f74448999e0fea6d5169f16be9d374537 9348 
libofapi0_0git20070620-5_amd64.deb
Files: 
 2abf4d2a5032182a1967b65de353aee3 1006 libs extra oflib_0git20070620-5.dsc
 9b41548c38bea1f93bff11c48f3b16b4 3985 libs extra 
oflib_0git20070620-5.debian.tar.gz
 a9eed6fc25bf1ff683d375f1cb1ada4d 10946 libdevel extra 
libofapi-dev_0git20070620-5_amd64.deb
 2cbbcc47a050f686be03d064a8ab1c38 9348 libs extra 
libofapi0_0git20070620-5_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iD8DBQFNLeY/zWFP1/XWUWkRAqXGAJ9gMohTCmzfv8DkasJA5rqKHC4rOQCghS6A
1T7TYe2ww+4hQHMa/0rzf+s=
=iqsc
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to