From owner-freebsd-questions@FreeBSD.ORG Mon Aug 2 19:21:08 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9FB8A16A4CE for ; Mon, 2 Aug 2004 19:21:08 +0000 (GMT) Received: from floyd.gnulife.org (floyd.gnulife.org [199.86.41.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEFD243D58 for ; Mon, 2 Aug 2004 19:21:07 +0000 (GMT) (envelope-from jamie@gnulife.org) Received: from floyd.gnulife.org (localhost.gnulife.org [127.0.0.1]) by floyd.gnulife.org (8.12.11/8.12.11) with ESMTP id i72JKeZr092268 for ; Mon, 2 Aug 2004 14:20:42 -0500 (CDT) (envelope-from jamie@gnulife.org) Received: from localhost (jamie@localhost)i72JKdA2092265 for ; Mon, 2 Aug 2004 14:20:39 -0500 (CDT) (envelope-from jamie@gnulife.org) X-Authentication-Warning: floyd.gnulife.org: jamie owned process doing -bs Date: Mon, 2 Aug 2004 14:20:39 -0500 (CDT) From: Jamie To: freebsd-questions@freebsd.org Message-ID: <20040802140540.J92241@floyd.gnulife.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Some trouble with LD_PRELOAD in 4.10 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Aug 2004 19:21:08 -0000 I'm running into some difficulty getting applixware running on my 4.10 install. When I try to execute applix, I get the error: /usr/libexec/ld-elf.so.1: /usr/X11R6/lib/libgtk12.so.2: Undefined symbol "getresuid" Apparently getresuid is coming up undefined, so, I tried writing a piece of code called getresuid.cc: #include int getresuid(uid_t *, uid_t *, uid_t *) { return 1; } and I compiled it: cc -Wall -shared -fPIC -DPIC -o getresuid.so getresuid.cc and moved my resulting getresuid.so into /usr/local/lib. I then tried starting applix with this startup code: #!/bin/sh APPLIX_HOME="/usr/local/applix" export APPLIX_HOME LD_PRELOAD="/usr/local/lib/getresuid.so" export LD_PRELOAD exec $APPLIX_HOME/applix "$@" Which did not work (I still get the same error: /usr/libexec/ld-elf.so.1: /usr/X11R6/lib/libgtk12.so.2: Undefined symbol getresuid I tried another approach to the startup script, which also failed in the same way: #!/bin/sh - export LD_PRELOAD=/usr/local/lib/getresuid.so applix $* Anyone have any suggestions? It seems as though even though I am defining LD_PRELOAD, it isn't loading when the program is run. Thanks, - Jamie The Moon is Waning Gibbous (95% of Full)