[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Pilot link



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;

Regards,

Peter