[xdebug-general] old libedit problems [was: Re: Re: 1.3.1: debugclient compile failure]

From: Roman Neuhauser <neuhauser[@]chello.cz>
Date: Wed, 28 Sep 2005 13:57:35 +0200

# derick[@]xdebug.org / 2005-09-24 21:59:30 +0200:
> On Sun, 9 May 2004, Roman Neuhauser wrote:
>
> > # derick[@]xdebug.org / 2004-05-09 14:08:41 +0200:
> > > On Sun, 9 May 2004, Roman Neuhauser wrote:
> > >
> > > > # derick[@]xdebug.org / 2004-05-09 12:46:24 +0200:
> > > > > On Sun, 9 May 2004, Roman Neuhauser wrote:
> > > > >
> > > > > > I had to make changes to main.c to get it to compile under FreeBSD 4.9
> > > > > > with the system libedit. The code is correct for FreeBSD 5.2 which
> > > > > > presumably has newer libedit imported. Could you please introduce some
> > > > > > checks into configure?
> > > > >
> > > > > I can't as libedit doesn't provide a version string.
> > > >
> > > > I must be missing something, but the autoconf checks are based on
> > > > whether a feature works, not on version strings, no?
> > >
> > > Sometimes, if you want to add it, great... but I'm not going to
> > > spend time on it :)
> >
> > The attached patch solves half the problem: checking for the number
> > of arguments el_init() will take; the check for H_SETSIZE/H_EVENT
> > is broken, it returns H_EVENT even if histedit.h defines H_SETSIZE.
> >
> > Any ideas? I don't know any of this stuff.
>
> I finally committed a modified patch to solve the H_SETSIZE thing.

> This fix will be in 2.0.0beta4, which I'll release shortly.

    Thanks a lot!

    Unfortunately, there's also the different parameter count for
    el_init, and parameter type for history (the patches from me
    contained code attempting to handle at least the el_init thing):

    checking whether to use libedit... yes
    checking for tgetflag in -ltermcap... yes
    checking for el_set in -ledit... yes
    updating cache ./config.cache
    creating ./config.status
    creating Makefile
    creating config.h
    ===> Building for xdebugclient-0.9.0
    cc -DHAVE_CONFIG_H -I. -I. -I. -O -pipe -march=k6 -c main.c
    main.c: In function `initialize_libedit':
    main.c:76: `H_SETSIZE' undeclared (first use in this function)
    main.c:76: (Each undeclared identifier is reported only once
    main.c:76: for each function it appears in.)
    main.c:76: warning: passing arg 2 of `history' makes integer from pointer without a cast
    main.c:79: too many arguments to function `el_init'
    main.c: In function `main':
    main.c:251: warning: passing arg 2 of `history' makes integer from pointer without a cast

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991
Received on Wed Sep 28 2005 - 13:57:41 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST