[Fwd: libcaca-0.99.b13 failed on amd64 7]

Mel fbsd.multimedia at rachie.is-a-geek.net
Fri Feb 29 22:20:19 UTC 2008


On Friday 29 February 2008 21:49:10 Jeremy Messenger wrote:
> On Fri, 29 Feb 2008 14:13:54 -0600, Pav Lucistnik <pav at FreeBSD.org> wrote:
>
>
> CCing to the multimedia@ for help on amd64. I personal don't have amd64
> and I can't reproduce it on i386/RELENG_7.
>
> Cheers,
> Mezz

> >> mygetopt.c:29: error: conflicting types for 'uintptr_t'
> >> /usr/include/stdint.h:102: error: previous declaration of 'uintptr_t'
> >> was here
> >> mygetopt.c: In function 'mygetopt':
> >> mygetopt.c:46: warning: cast from pointer to integer of different size
> >> mygetopt.c:46: warning: cast to pointer from integer of different size
> >> *** Error code 1
> >>
> >> Stop in /work/a/ports/graphics/libcaca/work/libcaca-0.99.beta13/src.
> >> *** Error code 1
> >>
> >> Stop in /work/a/ports/graphics/libcaca/work/libcaca-0.99.beta13.
> >> *** Error code 1
> >>
> >> Stop in /work/a/ports/graphics/libcaca/work/libcaca-0.99.beta13.
> >> *** Error code 1
> >>
> >> Stop in /a/ports/graphics/libcaca.
> >> ================================================================
> >> build of /usr/ports/graphics/libcaca ended at Fri Feb 29 03:08:53 UTC
> >> 2008

Looking at the source, this should be easy to fix:
$ diff -u mygetopt.c.bak mygetopt.c
--- mygetopt.c.bak      2007-11-07 01:55:48.000000000 +0100
+++ mygetopt.c  2008-02-29 23:02:49.000000000 +0100
@@ -25,7 +25,7 @@
 #endif

 /* DOS / Kernel driver */
-#ifndef __intptr_t_defined
+#if !defined( __intptr_t_defined ) && !defined(_INTPTR_T_DECLARED)
 typedef unsigned int           uintptr_t;
 #endif


-- 
Mel


More information about the freebsd-multimedia mailing list