Opened 14 months ago

Last modified 14 months ago

#1152 assigned Patch submission

OpenVPN patch to build on Fedora 1

Reported by: noloader Owned by: Gert Döring
Priority: trivial Milestone:
Component: Building / Compiling Version: OpenVPN 2.4.6 (Community Ed)
Severity: Patch Queue: New / awaiting ACK Keywords:
Cc: David Sommerseth


This is kind of fascinating to me. OpenVPN 2.4.6 builds and passes its self tests on Fedora 1 with GCC 3.2 by adding this patch to tun.c down around line 1900:


/* TUNSETGROUP appeared in 2.6.23 */
# define TUNSETGROUP   _IOW('T', 206, int)

tuncfg( ...)


The patch was lifted from [this commit]( on another GitHub? project.

While the self tests completed successfully, I don't know if tuncfg was exercised.

Change History (4)

comment:1 Changed 14 months ago by noloader

Also, in that same area, the error message may not be accurate:

    if (groupname != NULL)
        struct platform_state_group platform_state_group;

        if (!platform_group_get(groupname, &platform_state_group))
            msg(M_ERR, "Cannot get group entry for %s", groupname);
        else if (ioctl(tt->fd, TUNSETGROUP,>gr_gid) < 0)
            msg(M_ERR, "Cannot ioctl TUNSETOWNER(%s) %s", groupname, dev);

The message looks like it should be msg(M_ERR, "Cannot ioctl TUNSETGROUP(%s) %s", groupname, dev);.

comment:2 Changed 14 months ago by Gert Döring

Cc: David Sommerseth added

"Fedora 1" sounds like something old? Or am I missing a new version numbering?

comment:3 in reply to:  2 Changed 14 months ago by noloader

Replying to Gert Döring:

"Fedora 1" sounds like something old? Or am I missing a new version numbering?

No, Fedora 1 is ancient. I keep the box around for testing early GCC. (I don't try to build old compilers on new systems).

The patch is there if you want the bragging rights. If you are not interested then just close this report.

comment:4 Changed 14 months ago by Gert Döring

Owner: set to Gert Döring
Status: newassigned

Thanks for the explanation. I'll have to check the code what we do there and why - I remember that we removed "very old linux style" tun support last year, but that might be only git master (= 2.5), not 2.4 - so if the change is that trivial, and helps people on older systems, it makes sense.

And yes, the TUNSETOWNER(%s) error message also needs fixing :-)

Note: See TracTickets for help on using tickets.