Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Mar 2003 00:10:50 +0100
From:      Claude Buisson <cbuisson@nerim.net>
To:        Martin Moeller <mm@bsdsi.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: gnuls-4.0_1 coredumps on CURRENT
Message-ID:  <3E82337A.25803023@nerim.net>
References:  <20030326194805.GA967@bsdsi.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Martin Moeller wrote:
> 
> The gnuls-4.0_1 program coredumps when invoked with '-l' parameter.
> Debugging shows a problem with libc:
> 
> -- BEGIN LOG --
> 
> bsdsi# gdb /usr/local/bin/gnuls
> GNU gdb 5.2.1 (FreeBSD)
> Copyright 2002 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
> are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for
> details.
> This GDB was configured as "i386-undermydesk-freebsd"...(no debugging
> symbols found)...
> (gdb) set args -l
> (gdb) run
> Starting program: /usr/local/bin/gnuls -l
> (no debugging symbols found)...(no debugging symbols found)...
> Program received signal SIGSEGV, Segmentation fault.
> 0x28109c46 in strcasecmp () from /usr/lib/libc.so.5
> 
> -- END LOG --
> 
> Is anyone experiencing the same problem?
> 

Me too...

I get rid of this problem by forcing the use of gettext from ports,
with the following patch to the Makefile:

================================================================
--- Makefile.orig       Wed Mar 26 23:59:02 2003
+++ Makefile    Wed Mar 26 23:59:50 2003
@@ -16,7 +16,12 @@
 MAINTAINER=    bmc@WillsCreek.COM
 COMMENT=       GNU colorized `ls'
 
+LIB_DEPENDS=   intl.4:${PORTSDIR}/devel/gettext
+
 GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+               LDFLAGS="-L${LOCALBASE}/lib"
+
 MAN1=          gnuls.1 dircolors.1 dir.1 vdir.1
 
 .include <bsd.port.pre.mk>
================================================================

> Regards,
> Martin
> 

Hope this help,

Claude Buisson



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E82337A.25803023>