/home/christopher/Build/gargoyle-commit-73868cc0/alix-src/build_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c: In function 'rsa_get_exponent':
/home/christopher/Build/gargoyle-commit-73868cc0/alix-src/build_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:279:21: error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}'
if (BN_num_bits(key->e) > 64)
^~
scripts/Makefile.host:134: recipe for target 'tools/lib/rsa/rsa-sign.o' failed
make[5]: *** [tools/lib/rsa/rsa-sign.o] Error 1
Makefile:1195: recipe for target 'tools-only' failed
Do I need a particular version of compiler or libssl-dev installed on my system? I am running Debian stretch and install libssl-dev from the stretch repo. I did not see an INSTALL file in the source so not sure about deps required. It took at "git archive" of commit 73868cc0. My goal is to compile gl-ar150 image (so I have an image compiled by my self).
Also you should use “make” rather than invoking the build script directly unless you know what you are doing
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
- install the packages you instructed
- delete the source-code/build-directory and reextract it from a source tarball
- use 'make' instead of ./build.sh
I'm no C coding wizard, but looking at the error it seems like it must have something to do with openssl library version. Do you build using Jessie, or some Ubuntu release...?
You haven’t included enough error information to diagnose properly.
Also, which version are you trying to build?
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
Let me know what information you need from me. I am building gargoyle commit 19bea592, a very recent commit from the git repository. These are the last few pages of make output:
user@Linux:~$ apt-cache show libssl-dev
Package: libssl-dev
Architecture: amd64
Version: 1.0.1f-1ubuntu2.23
Multi-Arch: same
Priority: optional
Section: libdevel
Source: openssl
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian OpenSSL Team <pkg-openssl-devel@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 6186
Depends: libssl1.0.0 (= 1.0.1f-1ubuntu2.23), zlib1g-dev
Recommends: libssl-doc
Filename: pool/main/o/openssl/libssl-dev_1.0.1f-1ubuntu2.23_amd64.deb
Size: 1074882
MD5sum: d7968cc775dd6f85dec47b03c5ba2042
SHA1: 6d4fc238ef0ad67163e17faef25700ebcf51a029
SHA256: 70659cc36258c23356efa1e0c6e7b87db8b276c841156b997cf494147636a8e4
Description-en: Secure Sockets Layer toolkit - development files
This package is part of the OpenSSL project's implementation of the SSL
and TLS cryptographic protocols for secure communication over the
Internet.
.
It contains development libraries, header files, and manpages for libssl
and libcrypto.
Description-md5: 27044468897c45b271f879c7c6e135fe
Supported: 5y
Package: libssl-dev
Priority: optional
Section: libdevel
Installed-Size: 6162
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian OpenSSL Team <pkg-openssl-devel@lists.alioth.debian.org>
Architecture: amd64
Source: openssl
Version: 1.0.1f-1ubuntu2
Depends: libssl1.0.0 (= 1.0.1f-1ubuntu2), zlib1g-dev
Recommends: libssl-doc
Filename: pool/main/o/openssl/libssl-dev_1.0.1f-1ubuntu2_amd64.deb
Size: 1066212
MD5sum: 321724885048f9a78d0e93887a7eb296
SHA1: e337538bed6e5765a0a85c4ca2af1d0deefd6ce0
SHA256: ed199dc9131923fa3c911202f165402b1310f50dcdfab987f6f5c2669fc698cc
Description-en: Secure Sockets Layer toolkit - development files
This package is part of the OpenSSL project's implementation of the SSL
and TLS cryptographic protocols for secure communication over the
Internet.
.
It contains development libraries, header files, and manpages for libssl
and libcrypto.
Description-md5: 27044468897c45b271f879c7c6e135fe
Multi-Arch: same
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 9m
user@Linux:~$