[bug-notifications] [gfile 0004703]: Extraneous output

Mantis Bug Tracker noreply at opencsw.org
Fri Mar 4 00:48:31 CET 2011


The following issue requires your FEEDBACK. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=4703 
====================================================================== 
Reported By:                Doug_M
Assigned To:                maciej
====================================================================== 
Project:                    gfile
Issue ID:                   4703
Category:                   regular use
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     feedback
====================================================================== 
Date Submitted:             2011-03-03 16:44 CET
Last Modified:              2011-03-04 00:48 CET
====================================================================== 
Summary:                    Extraneous output
Description: 
Installed gfile on a Solaris 11 Sunfire 280R.  The output of gfile
(regardless of parameters) is a series of flag! lines followed by the
expected output such as:

flags! -2147483648
flags! -2147483648
flags! -2147483648
flags! -2147483648
flags! -2147483648
flags! 1114112
flags! -2147483648
flags! -2147483648
flags! -2147483648
flags! -2147483648
flags! -2147483648
flags! -2147483648
flags! -2147483648
text/x-news; charset=us-ascii
====================================================================== 

---------------------------------------------------------------------- 
 (0008846) maciej (manager) - 2011-03-04 00:48
 https://www.opencsw.org/mantis/view.php?id=4703#c8846 
---------------------------------------------------------------------- 
The problem seems to be sparc-specific:


maciej at vsol05 ~ $ uname -a
SunOS vsol05.home.blizinski.pl 5.10 Generic_142910-17 i86pc i386 i86pc
maciej at vsol05 ~ $ pkgparam CSWgfile VERSION
5.05,REV=2011.01.21
maciej at vsol05 ~ $ pkgparam CSWlibmagic1 VERSION
5.05,REV=2011.01.21
maciej at vsol05 ~ $ gfile /opt/csw/bin/gfile
/opt/csw/bin/gfile: ELF 32-bit LSB executable, Intel 80386, version 1
(SYSV), dynamically linked (uses shared libs), stripped, uses FPU


maciej at netra ~ $ uname -a
SunOS netra.chopin.edu.pl 5.10 Generic_137137-09 sun4u sparc sun4u
maciej at netra ~ $ pkgparam CSWgfile VERSION
5.05,REV=2011.01.21
maciej at netra ~ $ pkgparam CSWlibmagic1 VERSION
5.05,REV=2011.01.21
maciej at netra ~ $ gfile /opt/csw/bin/gfile
flags! -2147483648
flags! -2147483648
flags! -2147483648
flags! -2147483648
flags! -2147483648
flags! 1114112
flags! -2147483648
flags! -2147483648
flags! -2147483648
flags! -2147483648
flags! -2147483648
flags! -2147483648
flags! -2147483648
/opt/csw/bin/gfile: ELF 32-bit MSB executable, SPARC, version 1 (SYSV),
dynamically linked (uses shared libs), stripped

The same symptom happens when libmagic is used, so it's probably something
at the library level.

I've applied a silly patch[1] to libmagic to suppress the offending printf
statement.

Updated packages are available from my experimental catalog:
http://buildfarm.opencsw.org/experimental.html#maciej

Please let me know if updated packages fix the issue.

[1]
http://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/pkg/file/trunk/files/0001-Remove-surplus-flags-output-on-SPARC.patch



More information about the bug-notifications mailing list