Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#19 Broken compilation if missing ifaddrs.h

closed-fixed
None
5
2009-10-28
2009-10-20
ice
No

There is no ifaddrs.h in my uclibc on an arm based micro system and MiniDLNA doesn't check for it's existence as other web projects do. If ifaddrs.h is not found on the system there should be some another code used, but I have no idea how to fix it, sorry.

In my attempts to deal with this problem I've copied ifaddrs.h from another system to my micro system, but it only helped partially (everything compiled without problems, but on the linking stage it throws out the following errors:
Linking minidlna
uuid.o: In function `generate_uuid':
./minidlna/uuid.c:131: undefined reference to `getifaddrs'
./minidlna/uuid.c:158: undefined reference to `freeifaddrs'
collect2: ld returned 1 exit status
make: *** [minidlna] Error 1

Discussion

  • Justin Maggard
    Justin Maggard
    2009-10-23

    • assigned_to: nobody --> jmaggard
    • status: open --> open-fixed
     
  • Justin Maggard
    Justin Maggard
    2009-10-23

    Please try with the latest code. I've reworked the code to use if_nameindex instead of getifaddrs().

     
  • Justin Maggard
    Justin Maggard
    2009-10-28

    I got a uClibc x86 environment up and running and I was able to verify that it's working now. I did run into a couple other issues using uClibc, but they should all be resolved now.

     
  • Justin Maggard
    Justin Maggard
    2009-10-28

    • status: open-fixed --> closed-fixed