Created attachment 398306 [details] build.log x86_64-pc-linux-gnu-gcc -c -O2 -g -pipe -fpic -std=gnu99 -Wall -pedantic -DUSE_OPENSSL -DPUBKEY_DIR=\"/etc/wireless-regdb/pubkeys\" `x86_64-pc-linux-gnu-pkg-config --cflags openssl` -DCONFIG_LIBNL30 `x86_64-pc-linux-gnu-pkg-config --cflags libnl-3.0` -o optimize.o optimize.c x86_64-pc-linux-gnu-gcc -O2 -g -pipe -fpic -std=gnu99 -Wall -pedantic -DUSE_OPENSSL -DPUBKEY_DIR=\"/etc/wireless-regdb/pubkeys\" `x86_64-pc-linux-gnu-pkg-config --cflags openssl` -DCONFIG_LIBNL30 `x86_64-pc-linux-gnu-pkg-config --cflags libnl-3.0` -Wl,-O1,--as-needed -L ./ -o crda crda.o -lreg -lm `x86_64-pc-linux-gnu-pkg-config --libs openssl` -lnl-genl-3 -lnl-3 `x86_64-pc-linux-gnu-pkg-config --libs libnl-3.0` x86_64-pc-linux-gnu-gcc -O2 -g -pipe -fpic -std=gnu99 -Wall -pedantic -DUSE_OPENSSL -DPUBKEY_DIR=\"/etc/wireless-regdb/pubkeys\" `x86_64-pc-linux-gnu-pkg-config --cflags openssl` -DCONFIG_LIBNL30 `x86_64-pc-linux-gnu-pkg-config --cflags libnl-3.0` -Wl,-O1,--as-needed -L ./ -o intersect intersect.o -lreg -lm `x86_64-pc-linux-gnu-pkg-config --libs openssl` .//libreg.so: undefined reference to `RSA_free' .//libreg.so: undefined reference to `RSA_verify' .//libreg.so: undefined reference to `RSA_new' .//libreg.so: undefined reference to `SHA1' .//libreg.so: undefined reference to `PEM_read_RSA_PUBKEY' collect2: error: ld returned 1 exit status Makefile:137: recipe for target 'crda' failed make: *** [crda] Error 1 make: *** Waiting for unfinished jobs.... .//libreg.so: undefined reference to `RSA_free' .//libreg.so: undefined reference to `RSA_verify' .//libreg.so: undefined reference to `RSA_new' .//libreg.so: undefined reference to `SHA1' .//libreg.so: undefined reference to `PEM_read_RSA_PUBKEY' collect2: error: ld returned 1 exit status Makefile:145: recipe for target 'intersect' failed make: *** [intersect] Error 1
should be all set now in the tree; thanks for the report! Commit message: Fix libreg linkage http://sources.gentoo.org/net-wireless/crda/crda-3.18.ebuild?r1=1.1&r2=1.2 http://sources.gentoo.org/net-wireless/crda/files/crda-3.18-libreg-link.patch?rev=1.1
Unfortunately $(LDLIBS) contains -lreg, so it tries to link with itself.
(In reply to Ilya Konovalov from comment #2) hmm, true. i hate projects that try to write their own Makefiles.
Commit message: Fix libreg linkage to not link against itself http://sources.gentoo.org/net-wireless/crda/files/crda-3.18-libreg-link.patch?r1=1.1&r2=1.2