Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 534142 - sys-apps/sdparm-1.09: linking failure with <sg3_utils-1.39
Summary: sys-apps/sdparm-1.09: linking failure with <sg3_utils-1.39
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-31 19:11 UTC by Jiří Moravec
Modified: 2014-12-31 22:22 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiří Moravec 2014-12-31 19:11:00 UTC
x86_64-pc-linux-gnu-gcc -iquote ../include -Wall -W  -march=native -O2 -pipe -mtune=native -fno-lto -fno-lto  -Wl,-O1 -Wl,--as-needed -fno-lto -fno-lto -o sdparm sdparm.o sdparm_data.o sdparm_data_vendor.o sdparm_access.o sdparm_vpd.o sdparm_cmd.o    -lsgutils2 
sdparm.o: In function `main':
sdparm.c:(.text.startup+0x1d2b): undefined reference to `sg_get_category_sense_str'
sdparm_cmd.o: In function `sdp_process_cmd':
sdparm_cmd.c:(.text+0xe37): undefined reference to `sg_get_category_sense_str'
collect2: error: ld returned 1 exit status
Makefile:393: recipe for target 'sdparm' failed
make[2]: *** [sdparm] Error 1
make[2]: Leaving directory '/var/tmp/portage/sys-apps/sdparm-1.09/work/sdparm-1.09/src'
Makefile:359: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-apps/sdparm-1.09/work/sdparm-1.09'
Makefile:299: recipe for target 'all' failed
make: *** [all] Error 2

According http://sg.danny.cz/sg/p/sg3_utils.ChangeLog, function sg_get_category_sense_str() isn't present in API before sg3_utils-1.39 version.
So line 'RDEPEND=">=sys-apps/sg3_utils-1.28"' in sdparm-1.09.ebuild must be changed to 'RDEPEND=">=sys-apps/sg3_utils-1.39"'
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-12-31 22:22:03 UTC
Fixed. Thanks for the report.