Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pppd can't find DNS

28 views
Skip to first unread message

Walker Lee

unread,
Sep 10, 1998, 3:00:00 AM9/10/98
to
Hi,

I've configured both ethernet and pppd to work.
Ahd the ethernet card works fine.

When I login by pppd, and I cat ping by IP address but no domain name.

I've checked the resolv.conf, and ping the DNS' IP,
they shows no problem.

But I can't use the domain name anyway.
Do you have any ideas?

Thanks for any pointers.

Walker

Inge Vabekk

unread,
Sep 10, 1998, 3:00:00 AM9/10/98
to
I'd like to re-install 'man' in my system because the program I
installed
a while ago doesn't work any more (can't find a configuration file with
a
corrupted name). I use QNX 4.24.

I try to do the install and have gotten all modules to compile except
one,
'glob.c'. The error is:
'glob.c(371): Error! E1031: Name 'd_stat' not found in struct/union
direct'

and I don't know what to do to correct this one without introducing some
other error.

I've forced the Makefile to use Watcom C 10.6, because it compiled with
a lot fewer errors than gcc.

Any ideas? Newer versions? (I have 1.4f).

--
*** Focus on QNX technology ***
in...@arxi.nospam (remove spam....)

Peter Waechtler

unread,
Sep 10, 1998, 3:00:00 AM9/10/98
to
Inge Vabekk wrote:
>
> I'd like to re-install 'man' in my system because the program I
> installed
> a while ago doesn't work any more (can't find a configuration file with
> a
> corrupted name). I use QNX 4.24.
>
> I try to do the install and have gotten all modules to compile except
> one,
> 'glob.c'. The error is:
> 'glob.c(371): Error! E1031: Name 'd_stat' not found in struct/union
> direct'
>

I think you have to configure the Makefile for QNX. Just guessing.

--
--------------------------------------------------------------------------
Peter_Waechtler@2:241/1095.5

Peter Waechtler

unread,
Sep 10, 1998, 3:00:00 AM9/10/98
to
Walker Lee wrote:
>
> I've configured both ethernet and pppd to work.
> Ahd the ethernet card works fine.
>
> When I login by pppd, and I cat ping by IP address but no domain name.
>
> I've checked the resolv.conf, and ping the DNS' IP,
> they shows no problem.
>
> But I can't use the domain name anyway.
> Do you have any ideas?
>
$ cat /etc/host.conf
order hosts bind
multi on

or vice versa (bind hosts)

--
--------------------------------------------------------------------------
Peter_Waechtler@2:241/1095.5

Inge Vabekk

unread,
Sep 11, 1998, 3:00:00 AM9/11/98
to
Peter Waechtler wrote in message
<35F87B04...@stud.uni-hannover.de>...

>Inge Vabekk wrote:
>> 'glob.c'. The error is:
>> 'glob.c(371): Error! E1031: Name 'd_stat' not found in struct/union
>> direct'


Did that. Also changed from gcc go Watcom C. Reduced from a couple of
hundre errors to just this one.
Trying to get rid of this one makes a hundred others reappear.

I guess one of the problems is I don't know how some #defines are or
should be be set, like for instance _POSIX_SOURCE and _QNX_SOURCE,
which are used in several "include" files, but as far as I can see,
remain
undefined.

Can someone tell me?

Sam Roberts

unread,
Sep 11, 1998, 3:00:00 AM9/11/98
to

Inge Vabekk wrote in message <6tahe0$ru7$1...@elle.eunet.no>...

>Peter Waechtler wrote in message
><35F87B04...@stud.uni-hannover.de>...
>>Inge Vabekk wrote:
>>> 'glob.c'. The error is:
>>> 'glob.c(371): Error! E1031: Name 'd_stat' not found in struct/union
>>> direct'
There is no "struct direct", its called "struct dirent", and that has a
d_stat
member. My GNU man-1.5 has (at the top of glob.c) an:
#ifdef(DIRENT)
# define direct dirent

at the top of it. Take a look at that.

>Did that. Also changed from gcc go Watcom C. Reduced from a couple of
>hundre errors to just this one.
>Trying to get rid of this one makes a hundred others reappear.
>
>I guess one of the problems is I don't know how some #defines are or
>should be be set, like for instance _POSIX_SOURCE and _QNX_SOURCE,
>which are used in several "include" files, but as far as I can see,
>remain
>undefined.

Some non-posix stuff is ifdef'e in or out on the basis of these, not usually
important to define.

Peter Waechtler

unread,
Sep 11, 1998, 3:00:00 AM9/11/98
to
Inge Vabekk wrote:
>
> >> 'glob.c'. The error is:
> >> 'glob.c(371): Error! E1031: Name 'd_stat' not found in struct/union
> >> direct'
>
> I guess one of the problems is I don't know how some #defines are or
> should be be set, like for instance _POSIX_SOURCE and _QNX_SOURCE,
> which are used in several "include" files, but as far as I can see,
> remain undefined.
>

make CFLAGS+=-D_QNX_SOURCE

or add this in Makefile:

CFLAGS=-D_QNX_SOURCE -D_POSIX_SOURCE

I think Watcom adds _QNX_SOURCE automatically.
Have a look in the source (use the source luke, aehh Inge).
What lines are around glob.c:371. Any #ifdefs in front?

Have a look at /usr/include/dirent.h

--
--------------------------------------------------------------------------
Peter_Waechtler@2:241/1095.5

Inge Vabekk

unread,
Sep 11, 1998, 3:00:00 AM9/11/98
to
Peter Waechtler wrote in message
<35F98897...@stud.uni-hannover.de>...

>Inge Vabekk wrote:
>>
>> >> 'glob.c'. The error is:
>> >> 'glob.c(371): Error! E1031: Name 'd_stat' not found in
struct/union
>> >> direct'
>>
>> I guess one of the problems is I don't know how some #defines are or
>> should be be set, like for instance _POSIX_SOURCE and _QNX_SOURCE,
>> which are used in several "include" files, but as far as I can see,
>> remain undefined.
>>
>
>make CFLAGS+=-D_QNX_SOURCE
>
>or add this in Makefile:
>
>CFLAGS=-D_QNX_SOURCE -D_POSIX_SOURCE
>
>I think Watcom adds _QNX_SOURCE automatically.
>Have a look in the source (use the source luke, aehh Inge).
>What lines are around glob.c:371. Any #ifdefs in front?
>
>Have a look at /usr/include/dirent.h


I've done most of what you suggest here, and I can do nothing
of the kind without getting a whole lot of other errors. If I define
_POSIX_SOURCE I get a whole bunch of pragma errors.

Frustrating. I guess this was actually made for the gcc compiler,
but that doesn't do a proper job either.

I'm not a Makefile expert (I really "hate" the Makefile system!!!)
so I guess I'll have to find someone who is.

Inge Vabekk

unread,
Sep 12, 1998, 3:00:00 AM9/12/98
to
Sam Roberts wrote in message <6tbek9$72p$1...@news.bctel.net>...

>member. My GNU man-1.5 has (at the top of glob.c) an:
>#ifdef(DIRENT)
># define direct dirent
>
>at the top of it. Take a look at that.


A new look. New #defines appear. This just becomes too complicated for
me.
I guess that 'dirent.h' needs to be included, but that's only a small
part of the
problem.

What puzzles me most is that I didn't have any trouble at all the first
time
I installed this program, and suddenly it can't find the config file
because its
name is corrupted (the config file is there and looks just fine, but the
program
tries to find a file with a completely different, "corrupted" name).

Inge Vabekk

unread,
Sep 12, 1998, 3:00:00 AM9/12/98
to
Peter Waechtler wrote in message
<35F98897...@stud.uni-hannover.de>...
>
>Have a look at /usr/include/dirent.h

I thank you and the others who have helped me.

It turned out that my mistake was to 'cd' to the directory
containing all the sources, and run "make" from there. The
directory above contained a makefile suitable for QNX.
This makefile contains the definitions 'POSIX', '__QNX__'
and others.

The source contained one minor error which was easily
corrected, and the "install" had to be done manually (copying
the executables).

Otherwise, the 'man-1.4f' from the /usr/free directory seems
to work quite nicely. 'groff' needs to installed first, however,
but I already knew that. (+:

Thanks again!

Igor Kovalenko

unread,
Sep 15, 1998, 3:00:00 AM9/15/98
to
Peter Waechtler wrote:
>
> Walker Lee wrote:
> >
> > I've configured both ethernet and pppd to work.
> > Ahd the ethernet card works fine.
> >
> > When I login by pppd, and I cat ping by IP address but no domain name.
> >
> > I've checked the resolv.conf, and ping the DNS' IP,
> > they shows no problem.
> >
> > But I can't use the domain name anyway.
> > Do you have any ideas?
> >
> $ cat /etc/host.conf
> order hosts bind
> multi on
>
> or vice versa (bind hosts)
>

I don't believe hosts.conf is used by QNX resolver lib. AFAIK, only
latest beta/alpha resolver library does support name service switching,
but via special directive in /etc/resolv.conf.

- Igor

0 new messages