[dtn-users] [PATCH] Compiling oasys with readline 6.3

Roland Hieber <r.hieber@tu-bs.de> Tue, 22 April 2014 16:50 UTC

Return-Path: <r.hieber@tu-bs.de>
X-Original-To: dtn-users@ietfa.amsl.com
Delivered-To: dtn-users@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id ED4361A06A4 for <dtn-users@ietfa.amsl.com>; Tue, 22 Apr 2014 09:50:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.178
X-Spam-Level:
X-Spam-Status: No, score=0.178 tagged_above=-999 required=5 tests=[BAYES_50=0.8, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.272] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6RNmlF80tXU2 for <dtn-users@ietfa.amsl.com>; Tue, 22 Apr 2014 09:50:32 -0700 (PDT)
Received: from mailfront1.rz.tu-bs.de (mailfront1.rz.tu-bs.de [134.169.12.132]) by ietfa.amsl.com (Postfix) with ESMTP id 572FB1A04D2 for <dtn-users@irtf.org>; Tue, 22 Apr 2014 09:50:32 -0700 (PDT)
Received: from [134.169.34.1] (account y0033607@tu-braunschweig.de HELO [10.1.0.123]) by tu-braunschweig.de (CommuniGate Pro SMTP 6.0.8) with ESMTPA id 42775369 for dtn-users@irtf.org; Tue, 22 Apr 2014 18:50:25 +0200
Message-ID: <53569DCA.5000208@tu-bs.de>
Date: Tue, 22 Apr 2014 18:50:18 +0200
From: Roland Hieber <r.hieber@tu-bs.de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.4.0
MIME-Version: 1.0
To: dtn-users@irtf.org
X-Enigmail-Version: 1.6
Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="j9L3s95DKcwdShd5lK79ANfuO9xQn2qSM"
Archived-At: http://mailarchive.ietf.org/arch/msg/dtn-users/MDQfZdISTCSS-to5m1pzWnGSR8A
X-Mailman-Approved-At: Thu, 01 May 2014 08:06:02 -0700
Subject: [dtn-users] [PATCH] Compiling oasys with readline 6.3
X-BeenThere: dtn-users@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "The Delay-Tolerant Networking Research Group \(DTNRG\) - Users." <dtn-users.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/dtn-users>, <mailto:dtn-users-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/dtn-users/>
List-Post: <mailto:dtn-users@irtf.org>
List-Help: <mailto:dtn-users-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 22 Apr 2014 16:51:53 -0000

Hi,

I tried to compile oasys on my Debian testing, and I got the following
error:

gcc  -g -fno-inline  -fPIC -DPIC -MMD -MP -MT "tclcmd/tclreadline.o
tclcmd/tclreadline.E"  -DHAVE_CONFIG_H -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I. -I. -I/home/rohieb/Projects/dtn/oasys -I./ext
-I/usr/include/tcl8.4  -w -c tclcmd/tclreadline.c -o tclcmd/tclreadline.o
tclcmd/tclreadline.c: In function ‘TclReadlineInitialize’:
tclcmd/tclreadline.c:702:41: error: ‘CPPFunction’ undeclared (first use
in this function)
     rl_attempted_completion_function = (CPPFunction *)
TclReadlineCompletion;

Apparently [0], CPPFunction got renamed in readline 6.3. Unfortunately,
I cannot log in to SourceForge right now, so please see the attached
patch (based on hg 675b978f435b), which works for me. (Well, oasys
compiles, but when building the test suite, I get different errors about
memcpy not being found, so I cannot test it right now. Anyway, this
should be a trivial change.)

[0]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741767#19

 - Roland