Open glira opened 9 years ago
I would say that the heartbeat extension is not implemented on blanch 0.9.8 of openssl. Try using to branch 1.0.1 of openssl?
Solved by apt-get install libssl1.0-dev
Debian package libssl1.0-dev
at version 1.0.2m-3 worked, whereas libssl-dev
at 1.1.0g-2 didn't.
any resolution for no debian based systems ? having same problem on arch
@darrynza For Arch have you tried just installing libssl1.0? Arch shouldn't need -dev
stuff:
pacman -S libssl1.0.0
@darrynza For Arch have you tried just installing libssl1.0? Arch shouldn't need -dev stuff:
pacman -S libssl1.0.0
I'm confirming this working under ArchLinux with the following make
command (to force use of OpenSSL version 1.0):
CFLAGS=' -MMD -O2 -Wall -g -I/usr/include/openssl-1.0 ' LDFLAGS=' -L/usr/lib/openssl-1.0 ' make
i have the same issue:
CC ../src/ap/neighbor_db.c
CC ../src/ap/rrm.c
../src/wpe/wpe.c: In function ‘wpe_hb_cb’:
../src/wpe/wpe.c:193:27: error: ‘TLS1_RT_HEARTBEAT’ undeclared (first use in this function); did you mean ‘DTLS1_RT_HEARTBEAT’?
if (v_content_type == TLS1_RT_HEARTBEAT) {
^~~~~
DTLS1_RT_HEARTBEAT
../src/wpe/wpe.c:193:27: note: each undeclared identifier is reported only once for each function it appears in
../src/wpe/wpe.c:195:14: error: dereferencing pointer to incomplete type ‘SSL {aka struct ssl_st}’
v_ssl->tlsext_hb_pending = 1;
^~
Makefile:1037: recipe for target '../src/wpe/wpe.o' failed
make: *** [../src/wpe/wpe.o] Error 1
dpkg-query -s libssl-dev
Package: libssl-dev
Status: install ok installed
Priority: optional
Section: libdevel
Installed-Size: 6935
Maintainer: Debian OpenSSL Team pkg-openssl-devel@lists.alioth.debian.org
Architecture: amd64
Multi-Arch: same
Source: openssl
Version: 1.1.0h-2
Depends: libssl1.1 (= 1.1.0h-2)
Recommends: libssl-doc
Conflicts: libssl1.0-dev
Description: Secure Sockets Layer toolkit - development files
Managed to build it on Debian VM with the files provided + zlib1g-dev & pkg-config - worked ok
Anyone had any luck with compiling on Arch, lately? I start the compilation with this command: CFLAGS=' -MMD -O2 -Wall -g -I/usr/include/openssl-1.0 -I/usr/include/libnl3' LDFLAGS=' -L/usr/lib/openssl-1.0 ' make
but I keep getting this error:
/usr/bin/ld: cannot find -lnl
collect2: error: ld returned 1 exit status
Any ideas?
@lavanoid: I've just tried and it compiles successfully on Archlinux. Have you installed the libnl package?
Yes, I do have it installed :/
[lava@LX99 ~]$ sudo pacman -S libnl
[sudo] password for lava:
warning: libnl-3.4.0-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) libnl-3.4.0-1
Total Installed Size: 1.65 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n]
Strange. After a reboot and re-extracting hostapd/patching, it compiled as normal 0_o
CC ../src/ap/ieee802_11.c
CC ../src/ap/hw_features.c
CC ../src/ap/dfs.c
CC ../src/drivers/driver_common.c
LD hostapd-wpe
CC hostapd_cli.c
CC ../src/common/wpa_ctrl.c
CC ../src/common/cli.c
CC ../src/utils/edit_simple.c
LD hostapd-wpe_cli
@lavanoid: strange indeed, but at least the issue is solved for you :grin:
Solved by apt-get install libssl1.0-dev
Solved my problem on Kali 4.15.0-kali2-amd64 #1 SMP Debian 4.15.11-1kali1 (2018-03-21) x86_64 GNU/Linux
CFLAGS=' -MMD -O2 -Wall -g -I/usr/include/openssl-1.0 ' LDFLAGS=' -L/usr/lib/openssl-1.0 ' make
In modern versions it's yay -Sy openssl-1.0
not libssl
ii openssl 0.9.8k-7ubuntu8.8 Secure Socket Layer (SSL) binary and related
root@peter-laptophostapd # make ../src/wpe/wpe.c: In function ‘wpe_hb_cb’: ../src/wpe/wpe.c:193: error: ‘TLS1_RT_HEARTBEAT’ undeclared (first use in this function) ../src/wpe/wpe.c:193: error: (Each undeclared identifier is reported only once ../src/wpe/wpe.c:193: error: for each function it appears in.) ../src/wpe/wpe.c:195: error: ‘SSL’ has no member named ‘tlsext_hb_pending’ make: *\ [../src/wpe/wpe.o] Error 1 root@peter-laptophostapd #