OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004703 [gfile] regular use minor have not tried 2011-03-03 16:44 2011-04-03 18:05
Reporter Doug_M View Status public  
Assigned To maciej
Priority normal Resolution fixed  
Status closed  
Summary 0004703: 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
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0008846)
maciej (reporter)
2011-03-04 00:48

The problem seems to be sparc-specific:


maciej@vsol05 ~ $ uname -a
SunOS vsol05.home.blizinski.pl 5.10 Generic_142910-17 i86pc i386 i86pc
maciej@vsol05 ~ $ pkgparam CSWgfile VERSION
5.05,REV=2011.01.21
maciej@vsol05 ~ $ pkgparam CSWlibmagic1 VERSION
5.05,REV=2011.01.21
maciej@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@netra ~ $ uname -a
SunOS netra.chopin.edu.pl 5.10 Generic_137137-09 sun4u sparc sun4u
maciej@netra ~ $ pkgparam CSWgfile VERSION
5.05,REV=2011.01.21
maciej@netra ~ $ pkgparam CSWlibmagic1 VERSION
5.05,REV=2011.01.21
maciej@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 [^]
(0008850)
Doug_M (reporter)
2011-03-04 14:18

Will do, but I need a little instruction (new to pkg-get). I've downloaded libmagic-5.05,REV=2011.03.04-SunOS5.9-all-CSW.pkg.gz and gunzipped it. Now how do I install a "local" package via pkg-get? I tried pkg-get install ./ libmagic-5.05,REV=2011.03.04-SunOS5.9-all-CSW.pkg.gz but that's not correct.
(0008851)
maciej (reporter)
2011-03-04 14:25

You can't use pkg-get to automatically fetch packages from the experimental catalog. Use pkgutil:

pkg-get -i pkgutil
pkgutil -t http://buildfarm.opencsw.org/opencsw/experimental/maciej [^] -y -i gfile
(0008852)
Doug_M (reporter)
2011-03-04 14:47

I'm getting this error with pkg-get (tried other packages too with same error):

/opt/csw/bin/pkg-get[2907]: install_software[1039]: install_one_software[982]: net_install[1815]: install_pkg_file[1378]: extract_depend_file: line 1271: :: invalid character in expression - cpio:
1 + 1
ERROR: could not verify downloaded file correctly

I've googled but haven't found a solution. Any ideas?
(0008853)
maciej (reporter)
2011-03-04 15:09

My advice is to use pkgutil.
(0008854)
Doug_M (reporter)
2011-03-04 15:10

That's the rub. I don't have it installed and the above error was when trying to install it.
(0008855)
maciej (reporter)
2011-03-04 15:13

OK, I didn't see the invocation, so I didn't know which packages you're installing.

Try this:

pkgadd -d http://mirror.opencsw.org/opencsw/pkgutil- [^]`uname -p`.pkg all

(from http://www.opencsw.org/get-it/pkgutil/) [^]
(0008856)
Doug_M (reporter)
2011-03-04 15:15

Okay, installed pkgutil via pkgadd and then when I ran:

pkgutil -t http://buildfarm.opencsw.org/opencsw/experimental/maciej [^] [^] -y -i gfile

it errored out (yeah, made that verb up) with this:

=> Fetching new catalog and descriptions (http://buildfarm.opencsw.org/opencsw/experimental/maciej/sparc/5.11) [^] if available ...
--2011-03-04 10:09:40-- http://buildfarm.opencsw.org/opencsw/experimental/maciej/sparc/5.11/catalog [^]
Resolving buildfarm.opencsw.org (buildfarm.opencsw.org)... 213.178.77.176
Connecting to buildfarm.opencsw.org (buildfarm.opencsw.org)|213.178.77.176|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5285 (5.2K) [text/plain]
Saving to: `/var/opt/csw/pkgutil/catalog.buildfarm.opencsw.org_opencsw_experimental_maciej_sparc_5.11'

100%[======================================>] 5,285 16.3K/s in 0.3s

2011-03-04 10:09:40 (16.3 KB/s) - `/var/opt/csw/pkgutil/catalog.buildfarm.opencsw.org_opencsw_experimental_maciej_sparc_5.11' saved [5285/5285]

--2011-03-04 10:09:40-- http://buildfarm.opencsw.org/opencsw/experimental/maciej/sparc/5.11/descriptions [^]
Resolving buildfarm.opencsw.org (buildfarm.opencsw.org)... 213.178.77.176
Connecting to buildfarm.opencsw.org (buildfarm.opencsw.org)|213.178.77.176|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1468 (1.4K) [text/plain]
Saving to: `/var/opt/csw/pkgutil/descriptions.buildfarm.opencsw.org_opencsw_experimental_maciej_sparc_5.11'

100%[======================================>] 1,468 --.-K/s in 0.06s

2011-03-04 10:09:41 (25.5 KB/s) - `/var/opt/csw/pkgutil/descriptions.buildfarm.opencsw.org_opencsw_experimental_maciej_sparc_5.11' saved [1468/1468]

=> Fetching new catalog and descriptions (http://ibiblio.org/pub/packages/solaris/opencsw/current/sparc/5.11) [^] if available ...
--2011-03-04 10:09:41-- http://ibiblio.org/pub/packages/solaris/opencsw/current/sparc/5.11/catalog [^]
Resolving ibiblio.org (ibiblio.org)... 152.46.7.80
Connecting to ibiblio.org (ibiblio.org)|152.46.7.80|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://mirrors.ibiblio.org/pub/mirrors/opencsw/current/sparc/5.11/catalog [^] [following]
--2011-03-04 10:09:41-- http://mirrors.ibiblio.org/pub/mirrors/opencsw/current/sparc/5.11/catalog [^]
Resolving mirrors.ibiblio.org (mirrors.ibiblio.org)... 152.19.134.44
Connecting to mirrors.ibiblio.org (mirrors.ibiblio.org)|152.19.134.44|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 537730 (525K) [application/octet-stream]
Saving to: `/var/opt/csw/pkgutil/catalog.ibiblio.org_pub_packages_solaris_opencsw_current_sparc_5.11'

100%[======================================>] 537,730 164K/s in 3.2s

2011-03-04 10:09:44 (164 KB/s) - `/var/opt/csw/pkgutil/catalog.ibiblio.org_pub_packages_solaris_opencsw_current_sparc_5.11' saved [537730/537730]

--2011-03-04 10:09:45-- http://ibiblio.org/pub/packages/solaris/opencsw/current/sparc/5.11/descriptions [^]
Resolving ibiblio.org (ibiblio.org)... 152.46.7.80
Connecting to ibiblio.org (ibiblio.org)|152.46.7.80|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://mirrors.ibiblio.org/pub/mirrors/opencsw/current/sparc/5.11/descriptions [^] [following]
--2011-03-04 10:09:45-- http://mirrors.ibiblio.org/pub/mirrors/opencsw/current/sparc/5.11/descriptions [^]
Resolving mirrors.ibiblio.org (mirrors.ibiblio.org)... 152.19.134.44
Connecting to mirrors.ibiblio.org (mirrors.ibiblio.org)|152.19.134.44|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 153095 (150K) [application/octet-stream]
Saving to: `/var/opt/csw/pkgutil/descriptions.ibiblio.org_pub_packages_solaris_opencsw_current_sparc_5.11'

100%[======================================>] 153,095 147K/s in 1.0s

2011-03-04 10:09:46 (147 KB/s) - `/var/opt/csw/pkgutil/descriptions.ibiblio.org_pub_packages_solaris_opencsw_current_sparc_5.11' saved [153095/153095]

Solving needed dependencies ...
Package [^] not in catalog. Exiting.




So I then tried:

pkgadd -d http://mirror.opencsw.org/opencsw/pkgutil- [^] [^]`uname -p`.pkg all

and it too errored out with:

## Downloading...
25%100%
## Download Complete

pkgadd: ERROR: attempt to process datastream failed
    - bad format in datastream table-of-contents
pkgadd: ERROR: could not process datastream from </var/tmp/dwnldAAA30a4Sq/pkgutil->
(0008857)
maciej (reporter)
2011-03-04 15:24

Sorry about that. The "[^]" bit is mantis, the bugtracker, messing up the code I'm pasting in. I'll use a paste service instead. Please try this:

http://paste.pocoo.org/show/347993/ [^]

(I wish I could safely paste shell commands to the bug tracker.)
(0008858)
Doug_M (reporter)
2011-03-04 15:27

Yes it would be a nice "feature" for a bug tracker.

Okay, that worked (the install) and so did gfile.

Thank you very much.

Doug
(0008859)
maciej (reporter)
2011-03-04 15:29

Excellent, I'm sending updated gfile for release then.


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker