Date: Wed, 26 Sep 2018 17:00:55 +0000 From: Lorenzo Salvadore <phascolarctos@protonmail.ch> To: FreeBSD Ports <freebsd-ports@freebsd.org> Subject: Re: error: undefined symbol: OPENSSL_cpuid_setup Message-ID: <FS93P0yVhF9PxMDG7kaGdFsSJFAa5nPVeNk0mA0zrXd9w1uqAayaEorRQXwb9GoH6WEpp7jT0Pmru9SA385tLKEZBaYZCFSCHaVav6eMCRU=@protonmail.ch> In-Reply-To: <20180926161538.GA44289@www.zefox.net> References: <20180925022608.GA36717@www.zefox.net> <20180926045957.GA41394@www.zefox.net> <ICqIxSXVLmLECcWdGlC1z7Axidss9j21LdExqkSF4g_SNcJhu-wDRZVff8NLs7nvvI8vPd6Quz3d6t7HBm_BU6ajq8cQbgPzd7TXV9zzQ_M=@protonmail.ch> <20180926161538.GA44289@www.zefox.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Wed, Sep 26, 2018 at 09:53:32AM +0000, Lorenzo Salvadore via freebsd-p= orts wrote: > > > > > While playing with compiling www/chromium, I'm seeing make stop wit= h > > > > /usr/bin/ld.lld: error: undefined symbol: OPENSSL_cpuid_setup > > > > This is on a Raspberry Pi 3 running > > > > FreeBSD www.zefox.org 12.0-ALPHA7 FreeBSD 12.0-ALPHA7 r338880 GENER= IC > > > > with ports at > > > > 480613 > > > > World and kernel build, install and run acceptably, so the system a= s > > > > a whole isn't hugely broken. Can anybody suggest a fix/workaround? > > > > > > Changed the make command to > > > make -DBATCH DISABLE_VULNERABILITIES=3Dyes DEFAULT_VERSIONS+=3Dssl=3D= base > make.log > > > but make stopped with the same error: > > > /usr/bin/ld.lld: error: undefined symbol: OPENSSL_cpuid_setup > > > > > > > > > referenced by crypto.c > > > > > > crypto.o:(do_library_init) in archive obj/third_party/boringssl= /libboringssl.a > > > > > > c++: error: linker command failed with exit code 1 (use -v to see inv= ocation) > > > It's not clear to me if this is an issue with the port, or the base s= ystem. > > > Any advice appreciated! > > > > I might be wrong, but I see some similiraties with an issue discussed i= n those days > > under the subject "error: undefined symbol: main in poudriere jail". It= was a > > linking problem that appeared only on 12.0-ALPHA7 (or current any anywa= y, not on > > 11.2-RELEASE). I suggest you take a look into it. > > Here are the links to the most relevant messages (from the week archive= , so they > > will not work anymore after the week pass and then you will have to sea= rch them > > in an other archive): > > https://docs.freebsd.org/cgi/getmsg.cgi?fetch=3D87161+0+current/freebsd= -ports > > https://docs.freebsd.org/cgi/getmsg.cgi?fetch=3D108259+0+current/freebs= d-ports > > My situation is much simpler than the one described, there's no jail, jus= t > a plain "make" in /usr/ports/www/chromium. Hopefully it'll be less comple= x! The jail was not relevant for that problem: the point was that the new defa= ult linker for 12.0-ALPHA7 made disappear the symbol main() and my guess is that it al= so makes disappear the symbol OPENSSL_cpuid_setup in your case. If that was the case making the suggested symlink may solve your problem: ln -sf ld.bfd /usr/bin/ld As I do not have a 12.0-ALPHA7 installed, I can not tell you where is ld.bf= d, but I am sure you will not have problem to find it. On this topic, you might also like to take a look at this: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214864 Lorenzo Salvadore.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FS93P0yVhF9PxMDG7kaGdFsSJFAa5nPVeNk0mA0zrXd9w1uqAayaEorRQXwb9GoH6WEpp7jT0Pmru9SA385tLKEZBaYZCFSCHaVav6eMCRU=>