Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Pratik Patel <pratikgpatel@gmail.com>
To: linux-mips@linux-mips.org
Subject: problems compiling prog. for mipsel platform
Date: Sat, 9 Apr 2005 16:28:56 -0700	[thread overview]
Message-ID: <fda764b0504091628158f8f39@mail.gmail.com> (raw)

Hi,

I compiled libpcap for mipsel platform. Now I have the proper
libpcap.a file. I had to bring the ifaddrs.h file from /usr/bin/
folder.

When I compile a simple program (ldev.c) available at:
http://www.cet.nau.edu/~mc8/Socket/Tutorials/section1.html

Output of the program:
[pratik@Akshar libpcap_samples]$ mipsel-uclibc-gcc ldev.c -lpcap
/opt/brcm/hndtools-mipsel-uclibc-0.9.19/lib/libpcap.a(fad-getad.o): In
function `pcap_findalldevs':
fad-getad.c(.text+0xa4): undefined reference to `getifaddrs'
fad-getad.c(.text+0x2e0): undefined reference to `freeifaddrs'
/opt/brcm/hndtools-mipsel-uclibc-0.9.19/lib/libpcap.a(nametoaddr.o):
In function `pcap_ether_hostton':
nametoaddr.c(.text+0x764): undefined reference to `ether_hostton'
collect2: ld returned 1 exit status
[pratik@Akshar libpcap_samples]$

Are ther any patches for the ifaddrs.h file?

Cheers,
Pratik

                 reply	other threads:[~2005-04-09 23:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fda764b0504091628158f8f39@mail.gmail.com \
    --to=pratikgpatel@gmail.com \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox