You are not logged in.

#1 2014-05-28 01:08:27

jowijo
Member
From: North America
Registered: 2014-01-23
Posts: 25

[SOLVED] Compiling Opencaster from source

[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 2

I 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

#2 2014-05-28 01:10:30

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,513

Re: [SOLVED] Compiling Opencaster from source

% pkgfile if_tun.h
core/linux-api-headers
core/linux-headers
core/linux-lts-headers
community/dietlibc
community/linux-grsec-headers

Offline

#3 2014-05-28 01:15:17

jowijo
Member
From: North America
Registered: 2014-01-23
Posts: 25

Re: [SOLVED] Compiling Opencaster from source

Scimmia wrote:
% 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

#4 2014-05-28 01:22:02

jowijo
Member
From: North America
Registered: 2014-01-23
Posts: 25

Re: [SOLVED] Compiling Opencaster from source

Though I'm afraid I can't mark it solved yet. Problem still persists despite installing the packages that pkgfile printed for me.

Offline

#5 2014-05-28 02:16:16

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,447
Website

Re: [SOLVED] Compiling Opencaster from source

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

#6 2014-05-28 10:52:37

loqs
Member
Registered: 2014-03-06
Posts: 18,758

Re: [SOLVED] Compiling Opencaster from source

//#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

#7 2014-05-28 11:24:27

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] Compiling Opencaster from source

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

#8 2014-05-28 14:24:55

jowijo
Member
From: North America
Registered: 2014-01-23
Posts: 25

Re: [SOLVED] Compiling Opencaster from source

tomk wrote:

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. smile

Offline

Board footer

Powered by FluxBB