Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error TLS1_RT_HEARTBEAT #1

Open
glira opened this issue Oct 2, 2014 · 15 comments
Open

Compilation error TLS1_RT_HEARTBEAT #1

glira opened this issue Oct 2, 2014 · 15 comments

Comments

@glira
Copy link

glira commented Oct 2, 2014

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 #

@Rogdham
Copy link
Contributor

Rogdham commented Nov 29, 2014

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?

@TrueNix
Copy link

TrueNix commented Dec 18, 2016

Solved by apt-get install libssl1.0-dev

@ghost
Copy link

ghost commented Nov 18, 2017

Debian package libssl1.0-dev at version 1.0.2m-3 worked, whereas libssl-dev at 1.1.0g-2 didn't.

@darrynza
Copy link

any resolution for no debian based systems ? having same problem on arch

@decidedlygray
Copy link

decidedlygray commented Jan 19, 2018

@darrynza For Arch have you tried just installing libssl1.0? Arch shouldn't need -dev stuff:

pacman -S libssl1.0.0

@Rogdham
Copy link
Contributor

Rogdham commented Jan 20, 2018

@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

@maximlomans
Copy link

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

@maximlomans
Copy link

Managed to build it on Debian VM with the files provided + zlib1g-dev & pkg-config - worked ok

@ghost
Copy link

ghost commented Jul 31, 2018

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?

@Rogdham
Copy link
Contributor

Rogdham commented Jul 31, 2018

@lavanoid: I've just tried and it compiles successfully on Archlinux. Have you installed the libnl package?

@ghost
Copy link

ghost commented Jul 31, 2018

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] 

@ghost
Copy link

ghost commented Jul 31, 2018

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

@Rogdham
Copy link
Contributor

Rogdham commented Jul 31, 2018

@lavanoid: strange indeed, but at least the issue is solved for you 😁

@x86party
Copy link

x86party commented Dec 4, 2018

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

@vstyler96
Copy link

vstyler96 commented Dec 30, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants