Re: Re: getprotobyname() failure

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

 



I'm using libc-2.2.5 on a powerpc 8xx development kit
so, i'm using the same library on the host and target machine

my development machine has celeron  type processor
and my target board is TQM850L (has ppc_850 processor)

i've replaced my protocols and nsswitch.conf files with host machines (my
protocols file contians "tcp 6 TCP" line)

and that's made no difference




> Vikram <vvikram@stanford.edu> wrote ..
> >
> > Works for me.
> >
> > System you are running on [and] glibc version ?
> >
> > Vikram
> >
> > ps: you might want to peruse
> > http://lists.debian.org/debian-glibc/2002/debian-glibc-200212/msg00354.=
> > html
> >
> >
> >
> >
> > On Mon, 24 Feb 2003, Yigit Can wrote:
> >
> > > Hello,
> > >
> > > I have a problem with getprotobyname() function.
> > >
> > > I wrote a simple program that only uses getprotobyname function
> > >
> > > I can run this program on my development machine
> > > but when I try to run this program on my basic kernel it gives me the
> >>  "memory fault" error.
> > >
> > > what can I do?
> > >
> > > please help,
> > >
> > >
> > > my program :
> > >
> > > #include <netdb.h>
> > > #include <stdio.h>
> > >
> > > int main(void){
> > >
> > >     struct sockaddr_in addr;
> > >     struct protoent *protocol=3DNULL;
> > >     protocol=3Dgetprotobyname("tcp");
> > >     printf("\n RESULT : %02x \n",protocol->p_proto);
> > >
> > > return 0;
> > > }
> > >
> > >
> > >
> > >
> > > Yigit CAN
> > > Karel Electronics Corp.
> > > yigit.can@karel.com.tr
> > >
> >
> > --
> > Kernelnewbies: Help each other learn about the Linux kernel.
> > Archive:       http://mail.nl.linux.org/kernelnewbies/
> > =46AQ:           http://kernelnewbies.org/faq/

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux