At Sun, 22 Mar 2009 15:04:36 +0100,
Michael wrote:
>
> Hello,
>
> On So, Mär 22, 2009 at 10:17:41 +0900, Junichi Uekawa wrote:
> > > I think the qemubuilder should build with this marcos
> > > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 (getconf LFS_CFLAGS).
> >
> > Can you verify and send me a patch ?
>
> diff -ru cowdancer-0.50.orig/Makefile cowdancer-0.50/Makefile
> --- cowdancer-0.50.orig/Makefile 2009-02-21 06:05:56.000000000 +0100
> +++ cowdancer-0.50/Makefile 2009-03-22 14:31:48.000000000 +0100
> @@ -50,7 +50,7 @@
> $(CC) -D_REENTRANT -fPIC $< -o $@ -c -Wall -O2 -g
>
> %.o: %.c parameter.h
> - $(CC) $< -o $@ -c -Wall -O2 -g -fno-strict-aliasing -D
> LIBDIR="\"${LIBDIR}\""
> + $(CC) $< -o $@ -c -Wall -O2 -g -fno-strict-aliasing `getconf
> LFS_CFLAGS` -D LIBDIR="\"${LIBDIR}\""
>
> clean:
> -rm -f *~ *.o *.lo $(BINARY)
I made a similar patch, trying to set CFLAGS to getconf LFS_CFLAGS, but it
apparently breaks cowdancer.
Oops...
cc -O2 -Wall -g -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_REENTRANT -fPIC cowdancer.c -o cowdancer.lo -c
cowdancer.c: In function 'ctor':
cowdancer.c:237: warning: ignoring return value of 'initialize_functions',
declared with attribute warn_unused_result
/tmp/ccS9imNf.s: Assembler messages:
/tmp/ccS9imNf.s:1845: Error: symbol `creat64' is already defined
/tmp/ccS9imNf.s:2051: Error: symbol `fopen64' is already defined
/tmp/ccS9imNf.s:2228: Error: symbol `open64' is already defined
make[1]: *** [cowdancer.lo] Error 1
make[1]: Leaving directory `/var/cache/pbuilder/pbuilder-mnt/cowdancer-0.51'
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]