Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Feb 2008 23:15:13 +0100
From:      Marcin Cieslak <saper@system.pl>
To:        freebsd-multimedia@freebsd.org
Subject:   Re: [Fwd: libcaca-0.99.b13 failed on amd64 7]
Message-ID:  <47C883F1.6090206@system.pl>
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
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.
> 

This patch (put it in the files/patch-mygetopt.c) should fix it:

--- src/mygetopt.c.orig 2008-02-29 22:55:50.219906614 +0100
+++ src/mygetopt.c      2008-02-29 22:56:38.092911187 +0100
@@ -25,7 +25,7 @@
 #endif

 /* DOS / Kernel driver */
-#ifndef __intptr_t_defined
+#ifndef _INTPTR_T_DECLARED
 typedef unsigned int           uintptr_t;
 #endif


Anyway, this is a bug - I have reported this upstream as
http://libcaca.zoy.org/ticket/39

Should work on i386 or any other platform as well.

> Cheers,
> Mezz

--Marcin

> 
>> -------- Přeposlaná zpráva --------
>>> Od: User Ports-amd64 <ports-amd64@FreeBSD.org>
>>> Komu: cvs@oook.cz, linimon@FreeBSD.org
>>> Předmět: libcaca-0.99.b13 failed on amd64 7
>>> Datum: Fri, 29 Feb 2008 03:08:40 GMT
>>>
>>> You can also find this build log at
>>>
>>>  
>>> http://pointyhat.FreeBSD.org/errorlogs/amd64-errorlogs/a.7.2008022816/libcaca-0.99.b13.log
>>>
>>>
(...)
>>> building libcaca-0.99.b13 on gohan11.freebsd.org


>>> cc -DHAVE_CONFIG_H -I. -I..  -I.. -I../cucul -I../caca -DLIBCACA=1
>>> -DX_DISPLAY_MISSING=1 -I/usr/local/include -I/usr/local/include
>>> -I/usr/local/include -I/usr/local/include/freetype2 -O2
>>> -fno-strict-aliasing -pipe  -fno-strength-reduce -Wall
>>> -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow
>>> -Waggregate-return -Wmissing-prototypes -Wnested-externs
>>> -Wsign-compare -MT img2txt-mygetopt.o -MD -MP -MF
>>> .deps/img2txt-mygetopt.Tpo -c -o img2txt-mygetopt.o `test -f
>>> 'mygetopt.c' || echo './'`mygetopt.c
>>> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47C883F1.6090206>