Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Feb 2008 23:04:48 +0100
From:      Mel <fbsd.multimedia@rachie.is-a-geek.net>
To:        freebsd-multimedia@freebsd.org
Cc:        pav@freebsd.org, multimedia@freebsd.org
Subject:   Re: [Fwd: libcaca-0.99.b13 failed on amd64 7]
Message-ID:  <200802292304.49093.fbsd.multimedia@rachie.is-a-geek.net>
In-Reply-To: <op.t7az38xv9aq2h7@mezz.mezzweb.com>
References:  <1204316034.10565.9.camel@ikaros.oook.cz> <op.t7az38xv9aq2h7@mezz.mezzweb.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 29 February 2008 21:49:10 Jeremy Messenger wrote:
> On Fri, 29 Feb 2008 14:13:54 -0600, Pav Lucistnik <pav@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802292304.49093.fbsd.multimedia>