Tcl Source Code

View Ticket
Login
Ticket UUID: 1537059
Title: HP-UX 11.00 - glob returns incorrect file names
Type: Bug Created on: 2006-08-08 23:30:38
Submitter: skipaugur Assigned to: vincentdarley
Subsystem: 37. File System Severity:
Priority: 5 Medium Last modified: 2007-02-23 10:20:10
Status: Closed Closed by: sf-robot
Resolution: Works For Me Closed on: 2007-02-23 03:20:10
Version: obsolete: 8.4.13
Description:
Following is a copy of my comp.lang.tcl thread - Don
Porter suggested submitting a bug report here.:

Odd glob result with Tcl 8.4.13 and HP-UX 11.0

I've been trying to compile tcl8.4.13 using gcc 3.2.3
on one of our HP-UX boxes. I had to tweak the LIBS in
the makefile because they were looking for an "xnet"
library which isn't on our machine (at least, that I
can find) and configure wants it there for HP-UX.

My configure line options were: disable-64bit 
enable-gcc disable-load disable-shared (I've been
playing with several options trying to figure
this out).

The problem is that now "glob" seems to be losing
characters from filenames. For example, From the "unix"
directory where I did the make, here's the output of
glob followed by the output of ll. I'm hoping I just
did something stupid in the make process:

(wba-test) ca:/home/wba/xact/release/tcl8.4/unix (454)$
tclsh
% info tclver
8.4
% glob *
Ì ¨ ¸ {} Œ l.m4 ure ure.in stall-sh stallManPage {}
kefile.in {}
l.m4 ec Init.c lConfig.sh.in {} {} t.c dDl.c lLoadDld.c
{} {} {} dShl.c
{} {} nt.c xFCmd.c lUnixFile.c {} {} {} e.c xPort.h
lUnixSock.c
HtclUnixTest. {} {} d.h xTime.c lXtNotify.c {} {}
config.log {}
Àconfig.statu {} {} {} st.s2 ,ôì {} {} t fig.sh
gerror.o lAlloc.o
lAsync.o lBasic.o lBinary.o {} {} {} {} {} {} {} r.o
pile.o lDate.o
lEncoding.o {\tclEnv.oo} {} {} {} {} eName.o lGet.oo
lHash.o lHistory.o
ÈtclIndexObj. {} {} {} {} {} o til.o lLink.o lListObj.o
{} {} {} {} {}
o ic.o se.o seExpr.o lPipe.oo lPkg.oo ,,´ { } ¤èŒ ü ixStr.o
lPreserve.o {} {} {} {} o n.o ingObj.o lThread.o {} {}
oin.o
lStubInit.o {} {} {} {} {} {} {} nt.o ÌtclUnixFCmd. {}
{} e.o xSock.o
lUnixTime.o {} {} {} fy.o r.oo l.o ll.o d.o l.o secmp.o
lLoadNone.o
|libtclstub8. {} a Init.o {} Init.o nfig.cache {} 3
% ll
total 7826
-rw-rw-r--   1 wba        x            51568 Aug  7
15:42 Makefile
-rwxr--r--   1 wba        x            50848 Aug  7
14:07 Makefile.in
-rwxr--r--   1 wba        x             7377 Aug  7
14:07 README
-rwxr--r--   1 wba        x               24 Aug  7
14:07 aclocal.m4
-rw-rw-r--   1 wba        x             5121 Aug  7
13:36 config.cache
-rw-rw-r--   1 wba        x             4769 Aug  7
14:08 config.log
-rwxrwxr-x   1 wba        x             8520 Aug  7
14:08 config.status
-rwxr--r--   1 wba        x           236300 Aug  7
14:07 configure
-rwxr--r--   1 wba        x            24623 Aug  7
14:07 configure.in
drwxr-xr-x   2 wba        x             1024 Aug  7
14:08 dltest
-rwxr--r--   1 wba        x             2255 Aug  7
14:07 install-sh
-rwxr--r--   1 wba        x             1568 Aug  7 14:07
installManPage
-rwxr--r--   1 wba        x             2856 Aug  7
14:07 ldAix
-rw-rw-r--   1 wba        x          1050134 Aug  7
14:45 libtcl8.4.a
-rw-rw-r--   1 wba        x            17070 Aug  7 14:45
libtclstub8.4.a
-rw-rw-r--   1 wba        x              624 Aug  7
14:44 memcmp.o
-rw-rw-r--   1 wba        x             1376 Aug  7
14:44 opendir.o
-rw-rw-r--   1 wba        x            58115 Aug  7
14:37 regcomp.o
-rw-rw-r--   1 wba        x             3673 Aug  7
14:38 regerror.o
-rw-rw-r--   1 wba        x            12110 Aug  7
14:37 regexec.o
-rw-rw-r--   1 wba        x              650 Aug  7
14:38 regfree.o
-rw-rw-r--   1 wba        x             1081 Aug  7
14:45 strncasecmp.o
-rw-rw-r--   1 wba        x              688 Aug  7
14:44 strstr.o
-rw-rw-r--   1 wba        x             2009 Aug  7
14:45 strtod.o
-rw-rw-r--   1 wba        x              952 Aug  7 

<cut more valid filenames>
...

read more »

Reply


From:Don Porter - view profile
Date:Mon, Aug 7 2006 7:12 pm
[email protected] wrote:
> The problem is that now "glob" seems to be losing
characters from
> filenames. For example, From the "unix" directory
where I did the make,
> here's the output of glob followed by the output of
ll. I'm hoping I
> just did something stupid in the make process:

Just to cut down on the number of avenues to explore,
try repeating your tests with an interactive prompt
produced by `make shell`.

-- 
| Don Porter          Mathematical and Computational
Sciences Division |
| [email protected]             Information
Technology Laboratory |
| http://math.nist.gov/~DPorter/                      
           NIST |
|______________________________________________________________________|

Reply


From:[email protected] - view profile
Date:Tues, Aug 8 2006 10:33 am
Email: [email protected]
Groups: comp.lang.tcl
Not yet rated
Rating: 
show options
Reply | Reply to Author | Forward | Print | Individual
Message | Show original | Report Abuse | Find messages
by this author

Thanks Don, The results are (looks different but still
quite odd):

./tclsh
% glob *
ä ¨ Ð {} Œ l.m4 ure ure.in stall-sh stallManPage {}
kefile.in {}
l.m4 ec Init.c lConfig.sh.in {} {} t.c dDl.c lLoadDld.c
{} {} {} dShl.c
{} {} nt.c xFCmd.c lUnixFile.c {} {} {} e.c xPort.h
lUnixSock.c
HtclUnixTest. {} {} d.h xTime.c lXtNotify.c {} {}
config.log {}
Àconfig.statu {} {} {} st.s2 È {} {} ˆ fig.sh gfree.oo
gerror.o
lAlloc.o lAsync.o lBasic.o lBinary.oloc {} {} {} {} {}
{} {} r.oe
pile.oo lDate.on lEncoding.o ptclEnv.o.o {} {} {} d.om
eName.o lGet.oo
lHash.oy lHistory.oOb ÜtclIndexObj. {} {} {} {} {} oil.
til.o.o
lLink.oj lListObj.oal {} {} {} {} {} oo ic.o se.o
seExpr.o lPipe.o ˜È
4 ¸x   ixStr.ov lPreserve.o {} {} {} {} o.o n.oO
ingObj.o lThread.oadA
{} {} oin.oIni lStubInit.ob {} {} {} {} {} {} {}
lUnixEvent.o
àtclUnixFCmd. {} {} e.oc xSock.om lUnixTime.oi
tclUnixInit. {} {} fy.o
r.o l.oo ll.o d.o l.o secmp.on lLoadNone.ob
libtclstub8. {} anit.o {}
13it.o nfig.cache {} tProcBodyObj.o o xTest.o ltest

- Hide quoted text -
- Show quoted text -
Don Porter wrote:
> [email protected] wrote:
> > The problem is that now "glob" seems to be losing
characters from
> > filenames. For example, From the "unix" directory
where I did the make,
> > here's the output of glob followed by the output of
ll. I'm hoping I
> > just did something stupid in the make process:

> Just to cut down on the number of avenues to explore,
try repeating
> your tests with an interactive prompt produced by
`make shell`.

> --
> | Don Porter          Mathematical and Computational
Sciences Division |
> | [email protected]             Information
Technology Laboratory |
> | http://math.nist.gov/~DPorter/                    
             NIST |
>
|______________________________________________________________________|

Reply


From:Don Porter - view profile
Date:Tues, Aug 8 2006 10:41 am
Email: Don Porter <[email protected]>
Groups: comp.lang.tcl

[email protected] wrote:
> ./tclsh
> % glob *
> ä ¨ Ð {} Œ l.m4 ure ure.in stall-sh stallManPage {}
kefile.in {}...

very strange.  As a guess, try starting over completely
with a
`make distclean`.  If the symptom still shows up after
that, file
a bug report in the SourceForge Tracker for Tcl.

--
User Comments:
dkf added on 2006-08-09 15:44:57:
Logged In: YES 
user_id=79902

At a first guess (and I've no access to any HPUX system to
test anything) the header file containing the definition of
the dirent structure is of a different version than that
which the system's library/kernel is using inside the guts
of readdir(). This is VERY BAD, but not something I've got
the slightest idea about how to fix either. :-\

skipaugur added on 2006-08-10 03:44:08:
Logged In: YES 
user_id=821619

I played with unix/configure a bit, and disabled the
HP-UX-11 specific code by changing line 2827 from:
    HP-UX-*.11.*)

To:
    HP-UX-*.12.*)

which is obviously not right as a general fix. But, glob
works now. So maybe that section of configure should see if
the _OPEN_SOURCE stuff and xnet are available before just
blindly doing whatever it's doing? Sorry it's getting a bit
beyond my expertise... but maybe that only is valid for some
(later?) versions of HP-UX, or is an optional component?

hobbs added on 2007-02-09 08:05:56:
Logged In: YES 
user_id=72656
Originator: NO

I have no problems on HP-UX 11 pa-risc using gcc 3.3.2 (you had 3.2.3) with the head of 8.4 branch.

sf-robot added on 2007-02-23 10:20:10:
Logged In: YES 
user_id=1312539
Originator: NO

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).