From owner-freebsd-questions Mon Mar 24 3:51:33 2003 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 88F0037B401 for ; Mon, 24 Mar 2003 03:51:26 -0800 (PST) Received: from grummit.biaix.org (213-97-212-86.uc.nombres.ttd.es [213.97.212.86]) by mx1.FreeBSD.org (Postfix) with SMTP id B615D43F75 for ; Mon, 24 Mar 2003 03:51:24 -0800 (PST) (envelope-from joan@grummit.biaix.org) Received: (qmail 4257 invoked by uid 1000); 24 Mar 2003 11:49:02 -0000 Date: Mon, 24 Mar 2003 12:49:02 +0100 From: Joan Picanyol i Puig To: freebsd-questions@freebsd.org Subject: linking math/octave against different readline Message-ID: <20030324114902.GA3980@grummit.biaix.org> Mail-Followup-To: lists-freebsd-questions@biaix.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Spam-Status: No, hits=-4.6 required=5.0 tests=RCVD_IN_RFCI,USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, math/octave does not build on -stable, since it needs a newer readline version, and the configure script fails (cd /usr/ports/math/octave && make will show you). So I installed a local version of readline (readline-4.3) and tried linking against it using LDFLAGS and CPPFLAGS. The configure script does not fail anymore (since CPPFLAGS has my readline's version include directory), but the program is still linked against the system's readline: ldd src/octave | grep readline libreadline.so.4 => /usr/lib/libreadline.so.4 (0x2874e000) And leads to runtime failure: octave:1> help /usr/libexec/ld-elf.so.1: src/octave: Undefined symbol "rl_get_screen_size" Setting LD_LIBRARY_PATH to my readline's lib directory works, but I'd like to avoid it. So how can I force the linker to ignore /usr/lib/libreadline.so.4 when linking? tks -- pica To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message