develooper Front page | perl.perl5.porters | Postings from November 2000

Re: perl@7930: failure on Solaris 8

Thread Previous
From:
Jens Hamisch
Date:
November 30, 2000 23:59
Subject:
Re: perl@7930: failure on Solaris 8
Message ID:
20001201085743.T6958@Strawberry.COM
Hi,

> > resulted in no errors, except, that the warnings about STDCHAR are still
> > present on the i86pc system:
> > 
> >           CCCMD =  cc -DPERL_CORE -c -D_REENTRANT -DSOCKS -I/usr/local/include -I/opt/socks5/include -I/usr/local/BerkeleyDB.3.1/incl
> > ude -I/opt/gnu/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
> > "perlio.c", line 1535: warning: return value type mismatch
> > "perlio.c", line 1551: warning: return value type mismatch
> > "perlio.c", line 1568: warning: assignment type mismatch:
> >         pointer to unsigned char "=" pointer to char
> 
> Please remind me: is it only the combination i86 and Forte/Workshop
> that gets this warning?  If so, show us your struct FILE from
> <stdio.h>, I want to know why Configure is not getting this right.

yes, you're right.
The header file is the same for i86 and v9 platforms. It is the file
/usr/include/stdio_impl.h, in which the following is defined:

#ifdef  _LP64

#ifndef _FILE64_H

struct __FILE_TAG {
        long    __pad[16];
};

#endif  /* _FILE64_H */

#else

struct __FILE_TAG       /* needs to be binary-compatible with old versions */
{
#ifdef _STDIO_REVERSE
        unsigned char   *_ptr;  /* next character from/to here in buffer */
        ssize_t         _cnt;   /* number of available characters in buffer */
#else
        ssize_t         _cnt;   /* number of available characters in buffer */
        unsigned char   *_ptr;  /* next character from/to here in buffer */
#endif
        unsigned char   *_base; /* the buffer */
        unsigned char   _flag;  /* the state of the stream */
        unsigned char   _file;  /* UNIX System file descriptor */
        unsigned        __orientation:2; /* the orientation of the stream */
        unsigned        __ionolock:1;   /* turn off implicit locking */
        unsigned        __filler:5;
};

#endif  /*      _LP64   */


-- Jens

--------------------------------------------------------------------------------
     /
 +##+|##+   STRAWBERRY                     Jens Hamisch
+v#+v v##+  EDV-Systeme GmbH               Managing director
/ v    v\v
| . .  . |  Brauneckweg 2                  Car (Voice):  (+49 172) 81 04 162
|     .  |  D-82549 Koenigsdorf            Voice:        (+49 8179) 9305-50
 | .     |                                 Fax:          (+49 8179) 9305-38
 \   .  /   Tel./Fax: (+49 8179) 9305-50   Email:        jens@Strawberry.COM
  \____/    Strawberry@Strawberry.COM      


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About