Problem installing, compiling problem

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
rolvs
OpenVpn Newbie
Posts: 1
Joined: Sun Jan 23, 2011 12:42 pm

Problem installing, compiling problem

Post by rolvs » Sun Jan 23, 2011 12:45 pm

Hi!

I am trying to install openvpn-2.1.4 but at the end of the compiling i get this error message:

Code: Select all

make[2]: Entering directory `/root/openvpn/openvpn-2.1.4'
gcc  -g -O2   -o openvpn base64.o buffer.o crypto.o dhcp.o error.o event.o fdmisc.o forward.o fragment.o gremlin.o helper.o httpdigest.o lladdr.o init.o interval.o list.o lzo.o manage.o mbuf.o misc.o mroute.o mss.o mtcp.o mtu.o mudp.o multi.o ntlm.o occ.o pkcs11.o openvpn.o options.o otime.o packet_id.o perf.o pf.o ping.o plugin.o pool.o proto.o proxy.o ieproxy.o ps.o push.o reliable.o route.o schedule.o session_id.o shaper.o sig.o socket.o socks.o ssl.o status.o thread.o tun.o win32.o cryptoapi.o  -lssl -lcrypto -ldl
buffer.o: In function `buf_len':
/root/openvpn/openvpn-2.1.4/buffer.h:146: undefined reference to `__builtin_expect'
/root/openvpn/openvpn-2.1.4/buffer.h:146: undefined reference to `__builtin_expect'
buffer.o: In function `array_mult_safe':
/root/openvpn/openvpn-2.1.4/buffer.c:40: undefined reference to `__builtin_expect'
/root/openvpn/openvpn-2.1.4/buffer.c:40: undefined reference to `__builtin_expect'
/root/openvpn/openvpn-2.1.4/buffer.c:40: undefined reference to `__builtin_expect'
buffer.o:/root/openvpn/openvpn-2.1.4/buffer.c:40: more undefined references to `__builtin_expect' follow
collect2: ld returned 1 exit status
make[2]: *** [openvpn] Error 1
make[2]: Leaving directory `/root/openvpn/openvpn-2.1.4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/openvpn/openvpn-2.1.4'
make: *** [all] Error 2
Whats wrong and how do i fix it?

User avatar
gladiatr72
Forum Team
Posts: 194
Joined: Mon Dec 13, 2010 3:51 pm
Location: Lawrence, KS

Re: Problem installing, compiling problem

Post by gladiatr72 » Tue Jan 25, 2011 4:37 pm

You might be a mile or twelve ahead to look for a package for your distro. With that being said, what OS/distro/version are you using? Have you tried a more recent version of openvpn?

Anyway, in the famous words of a very annoying 80's movie-robot: need more input
:)

Regards,
Stephen
[..]I used to think it was awful that life was so unfair. [...]Wouldn't it be much worse if life were fair, and all the terrible things that happen to us come because we actually deserve them? -Marcus Cole

Post Reply