NetBSD Problem Report #26617
Received: (qmail 9684 invoked by uid 605); 11 Aug 2004 14:43:44 -0000
Message-Id: <20040811144344.9681.qmail@mail.netbsd.org>
Date: 11 Aug 2004 14:43:44 -0000
From: pancake@phreaker.net
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: pancake@phreaker.net
To: gnats-bugs@gnats.NetBSD.org
Subject: libcaca and Linux/pkgsrc
X-Send-Pr-Version: 3.95
>Number: 26617
>Category: pkg
>Synopsis: libcaca doesn't builds on Linux
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: wiz
>State: closed
>Class: support
>Submitter-Id: net
>Arrival-Date: Wed Aug 11 14:44:00 +0000 2004
>Closed-Date: Mon Sep 20 07:09:02 +0000 2004
>Last-Modified: Mon Sep 20 07:09:02 +0000 2004
>Originator:
>Release: Linux 2.6.7
>Organization:
>Environment:
System: Linux bare 2.6.7 #6 Sat Aug 7 12:46:46 VET 2004 i686 GNU/Linux
Architecture: i686
Machine: i686
>Description:
libcaca doesn't handles libdl automatically.
Apart from that problem I'm not able to run cacafire (segfaults)
or cacaview(there's no imlib2 dep).
This pkg must use PKG_OPTIONS to get x11,ncurses,slang,imlib support
I think
>How-To-Repeat:
ssh linuxbox ; cd /usr/pkgsrc/graphics/libcaca ; bmake configure
>Fix:
--- Makefile.orig 2004-08-11 04:25:16.000000000 -0400
+++ Makefile 2004-08-11 04:26:50.000000000 -0400
@@ -12,9 +12,15 @@
USE_BUILDLINK3= yes
USE_PKGLOCALEDIR= yes
+USE_LIBTOOL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-slang --disable-ncurses
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "Linux"
+LDFLAGS=-ldl
+.endif
+
.include "../../devel/libslang/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Apply this patch:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->wiz
Responsible-Changed-By: ben
Responsible-Changed-When: Wed Aug 11 16:36:15 UTC 2004
Responsible-Changed-Why:
Assigned to Thomas Klausner, the package maintainer.
State-Changed-From-To: open->feedback
State-Changed-By: wiz
State-Changed-When: Thu Aug 12 19:36:08 UTC 2004
State-Changed-Why:
I applied a version of your patch.
To your comments:
cacaview does not need imlib2, so it should still build even without it;
I didn't enable imlib2 for the package by purpose, to keep its dependencies
small.
However, cacafire segfaults for me too. Very strangely, too:
cace_create_bitmap fails because of dumb parameters:
Breakpoint 1, caca_create_bitmap (bpp=3217025072, w=134515998, h=0,
pitch=3217025104, rmask=1208274944, gmask=3217031152, bmask=0, amask=0)
at bitmap.c:140
and there's no error checking.
However, the call to caca_create_bitmap looks perfectly sane:
133 caca_bitmap = caca_create_bitmap(8, XSIZ, YSIZ - 2, XSIZ, 0, 0, 0, 0);
Perhaps its an optimization problem with gcc3? It worked with gcc2.
Perhaps you want to try updating the package and seeing if the problem
disappears?
From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/26617 CVS commit: pkgsrc/graphics/libcaca
Date: Thu, 12 Aug 2004 19:36:00 +0000 (UTC)
Module Name: pkgsrc
Committed By: wiz
Date: Thu Aug 12 19:36:00 UTC 2004
Modified Files:
pkgsrc/graphics/libcaca: Makefile
Log Message:
Set USE_LIBTOOL, and add -ldl for Linux.
Addresses PR 26617 by Pancake.
To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 pkgsrc/graphics/libcaca/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Thomas Klausner <wiz@netbsd.org>
To: pancake@phreaker.net
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/26617
Date: Thu, 12 Aug 2004 21:43:08 +0200
On Thu, Aug 12, 2004 at 07:40:05PM -0000, Thomas Klausner wrote:
> Perhaps its an optimization problem with gcc3? It worked with gcc2.
Compiling with -O1 or -O0 does not help...
Thomas
From: pancake <pancake@phreaker.net>
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: Re: pkg/26617
Date: Thu, 12 Aug 2004 20:56:03 +0000
I was trying the same pkg on netbsd, linux and freebsd. results:
linux ) doesn't builds (-ldl not linked)
freebsd | netbsd ) builds ok, but segfaults or just doesn't works.
(fbsd&nbsd both -current)
I was modifying the pkg, and testing with different configure_args+=
The only way to make it work on BSD is using libslang and giving --enable-x11. By the other ways cacaview, cacafire, etc segfaults, or just doesn't show anything.
My final pkg is:
=======
DISTNAME= libcaca-0.5
CATEGORIES= graphics
MASTER_SITES= http://sam.zoy.org/projects/libcaca/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= wiz@NetBSD.org
HOMEPAGE= http://sam.zoy.org/projects/libcaca/
COMMENT= Graphics library that outputs text instead of pixels, in colour
USE_BUILDLINK3= yes
USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
USE_X11=Yes
CONFIGURE_ARGS+=--enable-slang --disable-ncurses --enable-imlib2 --enable-x11
.include "../../devel/libslang/buildlink3.mk"
.include "../../graphics/imlib2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
=====
well my proposal is to drop all X11 support. but also seems that pkgsrc needs x11 to build imlib2....imlib2 doesn't needs any X dep.. I only want libcaca to use cacaview and link mplayer against it. But without any X dep (only optional).
What do you think?
On Thu, Aug 12, 2004 at 07:40:05PM -0000, wiz@netbsd.org wrote:
> Synopsis: libcaca doesn't builds on Linux
>
> State-Changed-From-To: open->feedback
> State-Changed-By: wiz
> State-Changed-When: Thu Aug 12 19:36:08 UTC 2004
> State-Changed-Why:
> I applied a version of your patch.
> To your comments:
> cacaview does not need imlib2, so it should still build even without it;
> I didn't enable imlib2 for the package by purpose, to keep its dependencies
> small.
> However, cacafire segfaults for me too. Very strangely, too:
> cace_create_bitmap fails because of dumb parameters:
> Breakpoint 1, caca_create_bitmap (bpp=3217025072, w=134515998, h=0,
> pitch=3217025104, rmask=1208274944, gmask=3217031152, bmask=0, amask=0)
> at bitmap.c:140
> and there's no error checking.
>
> However, the call to caca_create_bitmap looks perfectly sane:
> 133 caca_bitmap = caca_create_bitmap(8, XSIZ, YSIZ - 2, XSIZ, 0, 0, 0, 0);
>
> Perhaps its an optimization problem with gcc3? It worked with gcc2.
>
> Perhaps you want to try updating the package and seeing if the problem
> disappears?
From: Thomas Klausner <wiz@netbsd.org>
To: pancake <pancake@phreaker.net>
Cc: gnats-admin@netbsd.org
Subject: Re: pkg/26617
Date: Thu, 12 Aug 2004 22:02:16 +0200
On Thu, Aug 12, 2004 at 07:57:06PM -0000, pancake wrote:
> The only way to make it work on BSD is using libslang and giving --enable-x11. By the other ways cacaview, cacafire, etc segfaults, or just doesn't show anything.
I never understood the point of an ascii-art library that _needs_ X.
There is a newer version of libcaca out, did you try if that one
works better even without X?
> well my proposal is to drop all X11 support. but also seems that pkgsrc needs x11 to build imlib2....imlib2 doesn't needs any X dep.. I only want libcaca to use cacaview and link mplayer against it. But without any X dep (only optional).
>
> What do you think?
If no version works with gcc3 and without X, we can enable X, since
nothing depends on libcaca yet, but we should file a bug report with
the authors...
Thomas
From: Thomas Klausner <wiz@netbsd.org>
To: pancake <pancake@phreaker.net>
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/26617
Date: Sun, 15 Aug 2004 14:42:56 +0200
I updated the package to 0.9, and it works on my 2.0_BETA test system.
Could you please check if it works for you too?
Cheers,
Thomas
State-Changed-From-To: feedback->closed
State-Changed-By: wiz
State-Changed-When: Mon Sep 20 07:08:49 UTC 2004
State-Changed-Why:
Feedback timeout.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.