[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] ifconfig fixed (please README)
> > The only thing now is, I have to figure out a way to recompile
> > slattach without GCC complaining that _unx2dos is redefined in
> > a different context (it's the only bin of the package which
> > has hard-coded paths).
>
> Do you get a "doubly defined symbol" error?
Yes, but it's worse than this: the _unx2dos defined in
support.h has an extra paramater that the function declared in
slattach.c doesn't have and it doesn't know how to handle it.
> Or does slattach actually want to reference that internal function but
> uses a wrong prototype? In that case try to #include <support.h> and
> delete the prototype in your sources.
support.h is already included and required, but its definition
for _unx2dos is completely different from the localy defined one
in slattach.c so I cannot comment the one in slattach.c and use
the one from support.h, nor the other way around.
>From what I can tell, the prototype was altered somewhere along the
line in our libs' include, but it just broke something here.
Since I'm not a C expert, I don't expect to spend a lot of time on
slattach, especially given that pppd and ifconfig are all I need
to establish a connection (chat also, if dialing out) so, unless
somebody patches it, I'm simply not gonna include slattach in NMD.
NOTE: NMD is meant to be an FHS-compliant, but really small
distribution that fits on the smallest possible system.
I don't intend on it being the all-inclusive, everything
and your grandmother, mamooth that KGMD was, which means
deprecated parts like rsh and Slattach could be dropped
and replaced with ssh and pppd instead.
> If this doesn't help, please send me the exact error message from
> gcc and I will tell you how to fix it.
Or, type "make slatach" and see for yourself. Given your
experience at this, you should be able to figure out the
answer in 2 minutes. ;-)
--
Martin-Eric Racine http://www.pp.fishpool.fi/~q-funk/M-E/
The Atari TT030 Homepage http://funkyware.atari.org/TT030/
----------------------------------------------------------------
Intellitel Communications www.intellitel.com +358 (5) 624 3283