You are not logged in.
Pages: 1
[SOLVED]:
Change the 15th line of "mpe.c" (Under 'tools/mpe2sec') from
#include <net/if_tun.h>Fixed:
#include <linux/if_tun.h>Fix courtesy tomk.
So, I am encountering this odd little error when trying to 'make' Opencaster (Source Code) from source. On previous installs of Arch, this worked without a hitch. Now however, it shows the following:
mpe.c:15:24: fatal error: net/if_tun.h: No such file or directory
#include <net/if_tun.h>
^Here is the entire trace:
mpe.c:15:24: fatal error: net/if_tun.h: No such file or directory
#include <net/if_tun.h>
^
compilation terminated.
Makefile:11: recipe for target 'mpe.o' failed
make[2]: *** [mpe.o] Error 1
make[2]: Leaving directory '/home/ushio/cide/oc/opencaster-3.2.2/tools/mpe2sec'
Makefile:17: recipe for target 'mpe2sec' failed
make[1]: *** [mpe2sec] Error 2
make[1]: Leaving directory '/home/ushio/cide/oc/opencaster-3.2.2/tools'
Makefile:5: recipe for target 'tools' failed
make: *** [tools] Error 2I don't recall ever having to install foreign libs, nor using any makeflags. Any assistance here would be grand. I need to test a patch by the end of this week. (And no my patch is not in this source) :)
Last edited by jowijo (2014-05-28 14:33:31)
Offline
% pkgfile if_tun.h
core/linux-api-headers
core/linux-headers
core/linux-lts-headers
community/dietlibc
community/linux-grsec-headersOffline
% pkgfile if_tun.h core/linux-api-headers core/linux-headers core/linux-lts-headers community/dietlibc community/linux-grsec-headers
Had no idea Arch had something like that. Thank you.
Offline
Though I'm afraid I can't mark it solved yet. Problem still persists despite installing the packages that pkgfile printed for me.
Offline
Pkgfile only matched the basename of the file. `pkgfile /usr/inlcude/net/if_tun.h` does not find any matches. If the if_tun.h in any of those packages is the same (that is a *huge* if that is unsafe to assume) then at very least you'd need to patch the source code to adjust the include path.
More likely, you need to find and build the correct dependency.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
//#include <net/if_tun.h>Commenting it out and build succeeds. Seems that include is only need under certain conditions (not glibc or not linux perhaps)
Offline
Changing it to <linux/if_tun.h> also results in a successful build.
If you get the urge to Do The Right Thing and make a package for this, you just need to patch in that change and specify the correct DESTDIR in your install() function.
Offline
Changing it to <linux/if_tun.h> also results in a successful build.
If you get the urge to Do The Right Thing and make a package for this, you just need to patch in that change and specify the correct DESTDIR in your install() function.
I certainly would upload a PKGBUILD if I had the time to further maintain it--though they don't do many releases at all, hell; I don't even know when the next one is due. I'll get it put together, and see if anyone else may be willing to watch it.
Thanks for the pointers though, I was going to give [commenting it out] a shot today, but nice to see that isn't needed. ![]()
Offline
Pages: 1