switch ifdef __sun__ to __sun in tools/{rpmfind.c,rpmmtree.c}
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
RPM |
Fix Released
|
Medium
|
Jeff Johnson |
Bug Description
building rpm CVS (2013-10-22) on x86_64-
I get link failures for both rpmfind and rpmmtree:
libtool: link: cc -m64 -xopenmp -xtarget=generic -m64 -xarch=generic -Xa -xc99=all -KPIC -I/usr/
cc: Warning: Optimizer level changed from 0 to 3 to support parallelized code.
ld: warning: symbol 'aes' has differing types:
(file ../rpmio/
../rpmio/
Undefined first referenced
symbol in file
strtoq rpmfind.o
rpmatch rpmfind.o
setmode rpmfind.o
getmode rpmfind.o
ld: fatal: symbol referencing errors. No output written to .libs/find
gmake[1]: *** [find] Error 2
gmake[1]: Leaving directory `/local/
Both files actually have code to handle functions that might be missing, the only problem is that the ifdef guard is looking for
defined(__sun__)
which is (I believe) specific to gcc on Solaris. I think that __sun will work with both gcc and Studio, so switching the ifdef tests to use that allows both files to compile without issue.
Changed in rpm: | |
milestone: | 5.4.13 → 5.4.14 |
Changed in rpm: | |
status: | Fix Committed → Fix Released |
Every grrl just gotta be different, sigh. Applied, thanks!