Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 542436 - =net-wireless/crda-3.18: emake failed
Summary: =net-wireless/crda-3.18: emake failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bjarke Istrup Pedersen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-07 11:57 UTC by Rémi Cardona (RETIRED)
Modified: 2015-03-09 22:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,5.56 KB, text/x-log)
2015-03-07 11:57 UTC, Rémi Cardona (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rémi Cardona (RETIRED) gentoo-dev 2015-03-07 11:57:48 UTC
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
Comment 1 SpanKY gentoo-dev 2015-03-08 03:32:28 UTC
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
Comment 2 Ilya Konovalov 2015-03-09 10:35:57 UTC
Unfortunately $(LDLIBS) contains -lreg, so it tries to link with itself.
Comment 3 SpanKY gentoo-dev 2015-03-09 22:06:43 UTC
(In reply to Ilya Konovalov from comment #2)

hmm, true.  i hate projects that try to write their own Makefiles.
Comment 4 SpanKY gentoo-dev 2015-03-09 22:12:48 UTC
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