Error building ocserv 0.2.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I've moved on to Ocserv 0.2.3 from git.

After running autoreconf and configure, make gives me this:

clang: warning: argument unused during compilation: '-R/usr/local/lib'
  CC       main.o
main.c:715:7: warning: 'daemon' is deprecated: first deprecated in OS X 10.5 [-Wdeprecated-declarations]
                if (daemon(0, 0) == -1) {
                    ^
/usr/include/stdlib.h:292:6: note: 'daemon' declared here
int      daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_5...
         ^
1 warning generated.
  CC       main-auth.o
  CC       worker-vpn.o
worker-vpn.c:996:46: error: use of undeclared identifier 'SO_PRIORITY'
                ret = setsockopt( ws->conn_fd, SOL_SOCKET, SO_PRIORITY, &l, sizeof(l));
                                                           ^
worker-vpn.c:1055:46: error: use of undeclared identifier 'SO_PRIORITY'
                        ret = setsockopt( ws->udp_fd, SOL_SOCKET, SO_PRIORITY, &l, sizeof(l));
                                                                  ^
2 errors generated.

/Per

-----Original Message-----
From: n.mavrogiannopoulos at gmail.com [mailto:n.mavrogiannopoulos at gmail.com] On Behalf Of Nikos Mavrogiannopoulos
Sent: den 9 december 2013 10:28
To: Per Juborg
Cc: openconnect-devel at lists.infradead.org
Subject: Re: Error building ocserv 0.2.2

On Mon, Dec 9, 2013 at 12:02 AM, Per Juborg <per at juborg.nu> wrote:
> Hi,
>
> The story continues,
>
> I added the include, I also had to add netinet/ip.h
>
> The this shows up:
>   CC       icmp-ping.o
> icmp-ping.c:229:44: error: incomplete definition of type 'struct iphdr'
>                                 pkt = (struct icmp *) (packet1 + (iphdr->ihl << 2));    /* skip ip hdr */
>                                                                   ~~~~~^

Most probably you need something like the attached patch (which is untested).

regards,
Nikos


[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux