From owner-freebsd-ports@FreeBSD.ORG Sun Apr 13 15:22:30 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 313B937B409 for ; Sun, 13 Apr 2003 15:22:30 -0700 (PDT) Received: from h00609772adf0.ne.client2.attbi.com (h00609772adf0.ne.client2.attbi.com [24.61.43.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id 942C943F3F for ; Sun, 13 Apr 2003 15:22:28 -0700 (PDT) (envelope-from rodrigc@attbi.com) Received: from h00609772adf0.ne.client2.attbi.com (localhost.ne.attbi.com [127.0.0.1])h3DMMXcJ081537; Sun, 13 Apr 2003 18:22:33 -0400 (EDT) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost)h3DMMWGY081536; Sun, 13 Apr 2003 18:22:32 -0400 (EDT) Date: Sun, 13 Apr 2003 18:22:32 -0400 From: Craig Rodrigues To: "Scott R." Message-ID: <20030413222232.GA81514@attbi.com> References: <3E82146E.5040300@sfmidimafia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E82146E.5040300@sfmidimafia.com> User-Agent: Mutt/1.4i cc: freebsd-ports@freebsd.org Subject: Re: ymessenger port broken on -current X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Apr 2003 22:22:30 -0000 On Wed, Mar 26, 2003 at 12:58:22PM -0800, Scott R. wrote: > [Please cc me in any replies as I'm not currently subscribed to this > list. Thank you.] > > Hello, > > I searched through the archives and found that someone else had this > same problem, but no resolution was really offered and I'm hoping > someone here can help me. I installed ymessenger from ports and now > whenever I try to run it, I get: > > /usr/libexec/ld-elf.so.1: /usr/local/lib/libintl.so.4: Undefined symbol > "stpcpy" > > Does anyone have any ideas on how to fix this? I tried reinstalling > gettext and compat4x and then reinstalling ymessenger but no joy. Hi, I discovered the same problem. I couldn't figure out a proper fix for it. I tried recompiling compat4x and gettext ports, but it didn't help. This is what I did: (1) Create a file a.c with the following lines char *stpcpy(char *dst, const char *src) { int i=0; for(i=0; src[i] != 0; i++) { dst[i] = src[i]; } return &dst[i]; } (2) gcc -shared -o liba.so a.c (3) For the bash,sh,ksh shells: LD_PRELOAD=./liba.so ymessenger For tcsh,csh shells: setenv LD_PRELOAD ./liba.so ymessenger -- Craig Rodrigues http://home.attbi.com/~rodrigc rodrigc@attbi.com