gimp-2.0.pre3_1,1 broken on ia64

Joe Marcus Clarke marcus at marcuscom.com
Fri Feb 27 15:13:30 PST 2004


On Thu, 2004-02-26 at 21:24, Marcel Moolenaar wrote:
> On Thu, Feb 26, 2004 at 02:01:48PM -0500, Joe Marcus Clarke wrote:
> > On Thu, 2004-02-26 at 05:08, Kris Kennaway wrote:
> > > http://bento.freebsd.org/errorlogs/ia64-5-latest/gimp-2.0.pre3_1,1.log
> > > 
> > > Can you please investigate and/or report to the developers?
> > 
> > This is another .keeper.  We need to figure out why the libgimpprint
> > test is dumping core.
> 
> The problem is quite generic and simple. Many configure tests are
> based on small and simple C programs. A lot of them don't bother
> to include header files or otehrwise provide prototypes. This is
> mostly harmless on most architectures, because automatic int to
> pointer conversion happens to end up with a valid pointer. On
> ia64 however this is never the case. The upper 3 bits of a 64-bit
> pointer is the region number, which on ia64 is never 0. Thus,
> automatic int to pointer conversion never yields a valid pointer.
> 
> Now, back to gimp and gimp-print. The failing configure test is
> based on the attached C program. Notice the strdup()? See a
> prototype?
> 
> So, when you compile and run this, you get:
> 
> pluto1# cc -I/usr/local/include marcel.c -L/usr/local/lib -lgimpprint
> marcel.c: In function `main':
> marcel.c:70: warning: assignment makes pointer from integer without a cast
> pluto1# ./a.out
> Segmentation fault (core dumped)
> 
> If you add a prototype before main for strdup() everything is dandy.

Yep, makes sense.  The other tests that require strdup() use g_strdup()
which works properly on 64-bit systems.  I included string.h which has
the prototype, so this should be fixed now.  Thanks for your help.

Joe

> 
> FYI,
-- 
PGP Key : http://www.marcuscom.com/pgp.asc


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20040227/f1038613/attachment.bin


More information about the freebsd-gnome mailing list