sg3_utils uses llseek.c from util-linux. solar fixed util-linux's llseek.c with files/util-linux-2.11z-pic.patch in July of 2003 (see the ChangeLog). The _llseek() system call is actually the wrong way to call llseek now, and while his patch does compile with -fPIC, I believe my implementation is better (see Bug 51962). With this change I believe we can compile safely with enhanced CFLAGS. Finally, I removed the HAS_LONG_LONG check, since there is no configure script that will ever define this, and the rest of the code uses long long liberally. Attached is an ebuild and source code patch. I will submit the source code patch upstream, too.
Created attachment 37081 [details, diff] sg3_utils-llseek.patch
Created attachment 37082 [details, diff] sg3_utils-1.06.ebuild.patch
Now fixed in CVS, it should reach the rsync mirrors shortly - closing as FIXED. Thanks for the patch and please reopen this bug if you have any further issues...