Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#15067 closed defect (fixed)

OpenSSL compile error r39708

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:

Description

I'm trying to compile a new build, however the building process ends out with an error, while compiling openssl.
This error only occures when building for the Buffalo WHR-HP-G300N. Building for Netgear WNDR3700 or TP-Link TL-WR1043ND seem to go fine. With r39450 I didn't had this problem.
Doing a dirclean doesn't help.

These are the last few lines from verbose mode:

making all in apps...
make[5]: Entering directory `/home/martijn/openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/openssl-1.0.1e/apps'
rm -f openssl
shlib_target=; if [ -n "libcrypto.so.1.0.0 libssl.so.1.0.0" ]; then \
		shlib_target="linux-shared"; \
	elif [ -n "" ]; then \
	  FIPSLD_CC="mips-openwrt-linux-uclibc-gcc"; CC=/usr/local/ssl/fips-2.0/bin/fipsld; export CC FIPSLD_CC; \
	fi; \
	LIBRARIES="-L.. -lssl  -L.. -lcrypto" ; \
	make -f ../Makefile.shared -e \
		APPNAME=openssl OBJECTS="openssl.o verify.o asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o dsa.o dsaparam.o ec.o ecparam.o x509.o genrsa.o gendsa.o genpkey.o s_server.o s_client.o speed.o s_time.o apps.o s_cb.o s_socket.o app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o pkcs8.o pkey.o pkeyparam.o pkeyutl.o spkac.o smime.o cms.o rand.o engine.o ocsp.o prime.o ts.o srp.o" \
		LIBDEPS=" $LIBRARIES -L/home/martijn/openwrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib -L/home/martijn/openwrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/lib -L/home/martijn/openwrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.6-linaro_uClibc-0.9.33.2/usr/lib -L/home/martijn/openwrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.6-linaro_uClibc-0.9.33.2/lib -ldl -ldl" \
		link_app.${shlib_target}
make[6]: Entering directory `/home/martijn/openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/openssl-1.0.1e/apps'
../libcrypto.so: undefined reference to `EVP_PKEY_set1_EC_KEY'
collect2: ld returned 1 exit status
make[6]: *** [link_app.gnu] Error 1
make[6]: Leaving directory `/home/martijn/openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/openssl-1.0.1e/apps'
make[5]: *** [openssl] Error 2
make[5]: Leaving directory `/home/martijn/openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/openssl-1.0.1e/apps'
make[4]: *** [build_apps] Error 1
make[4]: Leaving directory `/home/martijn/openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/openssl-1.0.1e'
make[3]: *** [/home/martijn/openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/openssl-1.0.1e/.built] Error 2
make[3]: Leaving directory `/home/martijn/openwrt/trunk/package/libs/openssl'
make[2]: *** [package/libs/openssl/compile] Error 2
make[2]: Leaving directory `/home/martijn/openwrt/trunk'
make[1]: *** [/home/martijn/openwrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/martijn/openwrt/trunk'
make: *** [world] Fout 2

Attachments (0)

Change History (8)

comment:1 Changed 4 years ago by anonymous

Compiling with a clean config doesn't seem to help either...

comment:2 Changed 4 years ago by anonymous

The only change related to openssl between r39450 and r39708 is this:
https://dev.openwrt.org/changeset/39607/trunk

So obviously something is wrong in that changeset..

comment:3 follow-up: Changed 4 years ago by etienne.champetier

can you give output of
grep -i openssl .config

also on what are you building?

comment:4 in reply to: ↑ 3 Changed 4 years ago by anonymous

Replying to etienne.champetier:

can you give output of
grep -i openssl .config

also on what are you building?

Output:

# CONFIG_PACKAGE_webif-iw-lua-openssl is not set
# CONFIG_PACKAGE_pyopenssl is not set
# CONFIG_PACKAGE_python-openssl is not set
# CONFIG_PACKAGE_libgnutls-openssl is not set
# CONFIG_PACKAGE_libopenssl is not set
# CONFIG_PACKAGE_libevent2-openssl is not set
# CONFIG_PACKAGE_libustream-openssl is not set
# CONFIG_PACKAGE_luci-lib-nixio_openssl is not set
# CONFIG_PACKAGE_umurmur-openssl is not set
# CONFIG_PACKAGE_openvpn-openssl is not set
# CONFIG_PACKAGE_strongswan-mod-openssl is not set
# CONFIG_PACKAGE_mini-httpd-openssl is not set
# CONFIG_PACKAGE_cryptsetup-openssl is not set
# CONFIG_PACKAGE_openssl-util is not set

You mean the OS? Ubuntu 13.04

comment:5 Changed 4 years ago by anonymous

Apparently this error occures for all 4mb flash routers!
I still can't build with the latest trunk, r39753...

Can someone take a look at this?

comment:6 Changed 4 years ago by anonymous

Ok, this is the output of

grep -i openssl .config

from a working config of the TL-WR1043ND:

# CONFIG_PACKAGE_webif-iw-lua-openssl is not set
# CONFIG_PACKAGE_pyopenssl is not set
# CONFIG_PACKAGE_python-openssl is not set
# CONFIG_PACKAGE_libgnutls-openssl is not set
CONFIG_PACKAGE_libopenssl=y
CONFIG_OPENSSL_WITH_EC=y
# CONFIG_OPENSSL_WITH_EC2M is not set
# CONFIG_OPENSSL_ENGINE_CRYPTO is not set
# CONFIG_LIBCURL_OPENSSL is not set
# CONFIG_PACKAGE_libevent2-openssl is not set
# CONFIG_PACKAGE_libustream-openssl is not set
# CONFIG_PACKAGE_luci-lib-nixio_openssl is not set
# CONFIG_PACKAGE_umurmur-openssl is not set
# CONFIG_PACKAGE_openvpn-openssl is not set
# CONFIG_PACKAGE_strongswan-mod-openssl is not set
# CONFIG_PACKAGE_mini-httpd-openssl is not set
# CONFIG_PACKAGE_cryptsetup-openssl is not set
CONFIG_PACKAGE_openssl-util=y

I looked directly into the config file of the WHR-HP-G300N and looked for the packages marked as 'y' in the working config above.
It turns out that

CONFIG_PACKAGE_libopenssl=y
CONFIG_OPENSSL_WITH_EC=y

are missing completely and that

CONFIG_PACKAGE_openssl-util=y

is not set in the whr-hp-g300n config!
This is strange since I made a new config from scratch!

comment:7 Changed 4 years ago by anonymous

When I add the package libopenssl to the config it does build!
However when added, the firmware gets too large for the 4mb router, so I don't get any actual firmware files..

comment:8 Changed 4 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r39852

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.