From mint-bounce@lists.fishpool.fi  Sat Mar  1 10:37:46 2008
X-Virus-Scanned: amavisd-new at demon.co.uk
Subject: Re: [MiNT] Pilot link
From: Alan Hourihane <alanh@fairlite.demon.co.uk>
To: Peter Slegg <p.slegg@scubadivers.co.uk>
Cc: mint@lists.fishpool.fi
In-Reply-To: <0008fb1f.019a88cab8ba@smtp.freeola.net>
References: <200803010131.16080.jflemaire@skynet.be>
	 <0008fb1f.019a88cab8ba@smtp.freeola.net>
Content-Type: text/plain
Date: Sat, 01 Mar 2008 15:28:40 +0000
Message-Id: <1204385321.7613.6.camel@dhcppc16>
Mime-Version: 1.0
X-Mailer: Evolution 2.12.2 
Content-Transfer-Encoding: 7bit
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: alanh@fairlite.demon.co.uk
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>


On Sat, 2008-03-01 at 13:08 +0200, Peter Slegg wrote:
> On Sat, 1 Mar 2008 01:31:15 , "J. F. Lemaire" <jflemaire@skynet.be> wrote:
> > On Saturday 1 March 2008, MiKRO wrote:
> > > > I'm not familiar with srpm's. I assume they are just the source
> > >
> > > It's easy -- take srpm, i.e. package.srpm, install it (rpm -i
> > > package.srpm) and build it (rpm -ba
> > > /usr/src/redhat/SPECS/package.spec). I'd take this as starting point.
> >
> > Peter can't build from an SRPM if he doesn't have an SRPM to build from.
> > I think you may be misunderstanding each other. Peter is trying to
> > create source and binary RPM packages of the latest version of Pilot
> > Link from the tarball.
> >
> > JFL
> 
> Exactly right. I am trying to build the latest version, not the
> one from Sparemint sources. I am also learning, hence all the
> questions.
> 
> Although I've spent 20 odd years developing code, almost none of
> it has been C and very little on Unix so I am not familiar with the
> tools and scripts. It's a steep learning curve as you probably realise.
> 
> Late last night I was trying popt 1-13 which has the wchar problem
> so I added Alan's suggested patch which helped it get as far as
> 
> source='popthelp.c' object='popthelp.lo' libtool=yes \
> DEPDIR=.deps depmode=gcc /bin/sh ./depcomp \
> /bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.
>     -Wall -g -O2 -c -o popthelp.lo popthelp.c
>  gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -g -O2 -c popthelp.c
>  -Wp,-MD,.deps/popthelp.TPlo -o popthelp.o
> popthelp.c: In function `singleOptionHelp':
> popthelp.c:392: `mbstate_t' undeclared (first use in this function)
> 
> mbstate_t is part of the real wchar:
> 
> http://www.delorie.com/gnu/docs/glibc/libc_91.html
> 
> So I added this to the wchar.h patch:
> 
> #define mbstate_t
> 
> but it doesn't help and fails at popthelp.c so maybe I have
> defined it wrong above
> 
> #ifdef    POPT_WCHAR_HACK
>         {    const char * scopy = argDescrip;
>         mbstate_t t;

Peter,

I've just taken a look at the popt source, and at the top of the
popthelp.c there's a line that says...

#define POPT_WCHAR_HACK

just remove or comment out that line, and hopefully things will build
just fine.

Alan.


