Tk402.001: stdio.h problem and workaround 
Author Message
 Tk402.001: stdio.h problem and workaround

Quote:



>  > >The URL

>  > >has been added to PAUSE as

>  > >  file: $CPAN/authors/id/NI-S/Tk402.001.tar.gz
>  > >  size: 2483780 bytes
>  > >   md5: 470c526eac54259b85c3872c5eb209ed

A-OK on Linux... installed and running here.  IO won't compile on AIX:

        cd pTk && make
make: 1254-037 The dependency lines for target dynamic cannot contain
both single and double colons.
        /usr/local/bin/perl -I/usr/local/lib/perl5/aix/5.004 -I/usr/local/lib/perl5 /usr/local/lib/perl5/ExtUtils/xsubpp  -typemap /
usr/local/lib/perl5/ExtUtils/typemap -typemap /u1/lusol/lusol/perl/Tk402.001/Tk/typemap IO.xs >xstmp.c && mv xstmp.c IO.c
        cc -c -I..  -D_ALL_SOURCE -I/usr/local/include -O     -DVERSION=\"402.001\"  -DXS_VERSION=\"402.001\"  -I/usr/local/lib/perl
5/aix/5.004/CORE -DBASEEXT=\"IO\"  IO.c
"IO.xs", line 60.25: 1506-122 (S) Expecting pointer to struct or union.
"IO.xs", line 70.54: 1506-122 (S) Expecting pointer to struct or union.
"IO.xs", line 115.23: 1506-122 (S) Expecting pointer to struct or union.
"IO.xs", line 128.23: 1506-122 (S) Expecting pointer to struct or union.
"IO.xs", line 159.17: 1506-122 (S) Expecting pointer to struct or union.
"IO.xs", line 190.82: 1506-152 (W) Operands are pointers to different types.
"IO.xs", line 194.14: 1506-122 (S) Expecting pointer to struct or union.
"IO.xs", line 207.82: 1506-152 (W) Operands are pointers to different types.
"IO.xs", line 205.14: 1506-122 (S) Expecting pointer to struct or union.
"IO.xs", line 218.82: 1506-152 (W) Operands are pointers to different types.
"IO.xs", line 215.14: 1506-122 (S) Expecting pointer to struct or union.
"IO.xs", line 227.82: 1506-152 (W) Operands are pointers to different types.
"IO.xs", line 224.14: 1506-122 (S) Expecting pointer to struct or union.
"IO.xs", line 236.82: 1506-152 (W) Operands are pointers to different types.
"IO.xs", line 249.82: 1506-152 (W) Operands are pointers to different types.
"IO.xs", line 254.82: 1506-152 (W) Operands are pointers to different types.
"IO.xs", line 261.17: 1506-122 (S) Expecting pointer to struct or union.
"IO.xs", line 305.82: 1506-152 (W) Operands are pointers to different types.
"IO.xs", line 310.17: 1506-122 (S) Expecting pointer to struct or union.
make: 1254-004 The error code from the last command is 1.

Quote:

> Widget demo works fine except:

>    o HList - A ...
>      complains on startup:
>        Error: Goto undefined subroutine &WidgetDemo::Top at
>        blib/lib/Tk/Widget.pm line 297

That somehow snuck in - change top() to Top()!

Quote:
> My ptk tools work without problems with the new release.

All my stuff seems OK on Linux.

Quote:
> Thanks and congratulations Nick,
> Achim

Ditto!
==========================================================================
This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the

--




Fri, 03 Dec 1999 03:00:00 GMT  
 Tk402.001: stdio.h problem and workaround


 > >The URL
 > >
 > >has been added to PAUSE as
 > >
 > >  file: $CPAN/authors/id/NI-S/Tk402.001.tar.gz
 > >  size: 2483780 bytes
 > >   md5: 470c526eac54259b85c3872c5eb209ed

Does not build out of the box with 5.004_01 on Digital Unix. This
made it work here:

        perl Makefile.PL
        make "CC=cc -DNEED_REAL_STDIO"

(I'm sure there is a more sensible config option to set :-)  Without
the workaround I get hunderts of warnings

cc -c -I..  -I. -Ibitmaps  -std -D_INTRINSICS -I/usr/local/include -D__LANGUAGE_C__ -O2 -Olimi
t 3200    -DVERSION=\"402.001\" -DXS_VERSION=\"402.001\"  -I/home/ach/data9/perl5.004_01/lib/a
lpha-dec_osf/5.00401/CORE -DBASEEXT=\"pTk\"  Xlib_f.c
/usr/lib/cmplrs/cc/cfe: Warning: /usr/include/stdio.h:99: Macro BUFSIZ redefined.
/usr/lib/cmplrs/cc/cfe: Warning: /usr/include/stdio.h, line 119: useless 'typedef' storage cla
ss ignored
 typedef struct {
 ^
/usr/lib/cmplrs/cc/cfe: Warning: /usr/include/stdio.h, line 119: useless keyword or type name
in declaration
 typedef struct {
 --------^

it finally fails to compile IO.c.  Log files of the failed an successful
build are

   http://www.xray.mpe.mpg.de/~ach/ptk/402.001.make-fail
   http://www.xray.mpe.mpg.de/~ach/ptk/402.001.make-works

Widget demo works fine except:

        o HList - A ...
          complains on startup:
            Error: Goto undefined subroutine &WidgetDemo::Top at
            blib/lib/Tk/Widget.pm line 297

My ptk tools work without problems with the new release.

Thanks and congratulations Nick,
Achim

Summary of my perl5 (5.0 patchlevel 4 subversion 1) configuration:
  Platform:
    osname=dec_osf, osvers=3.2, archname=alpha-dec_osf
    uname='osf1 o09 v3.2 148 alpha '
    hint=recommended, useposix=true, d_sigaction=define
    bincompat3=n useperlio= d_sfio=
  Compiler:
    cc='cc', optimize='-O2 -Olimit 3200', gccversion=
    cppflags='-std -D_INTRINSICS -I/usr/local/include -D__LANGUAGE_C__'
    ccflags ='-std -D_INTRINSICS -I/usr/local/include -D__LANGUAGE_C__'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /usr/shlib /lib /usr/lib /usr/ccs/lib
    libs=-lgdbm -ldbm -ldb -lm
    libc=/usr/shlib/libc.so, so=so
    useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=, ccdlflags=' '
    cccdlflags=' ', lddlflags='-shared -expect_unresolved "*" -O3 -s -L/usr/local/lib'

Characteristics of this binary (from libperl):
  Built under dec_osf
  Compiled at Jun 12 1997 11:24:40

    /home/ach/data9/perl5.004_01/lib/alpha-dec_osf/5.00401
    /home/ach/data9/perl5.004_01/lib
    /home/ach/data9/perl5.004_01/lib/site_perl/alpha-dec_osf
    /home/ach/data9/perl5.004_01/lib/site_perl
    .

==========================================================================
This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the

--




Fri, 03 Dec 1999 03:00:00 GMT  
 Tk402.001: stdio.h problem and workaround

Quote:



> > >The URL

> > >has been added to PAUSE as

> > >  file: $CPAN/authors/id/NI-S/Tk402.001.tar.gz
> > >  size: 2483780 bytes
> > >   md5: 470c526eac54259b85c3872c5eb209ed

>Does not build out of the box with 5.004_01 on Digital Unix. This
>made it work here:

>    perl Makefile.PL
>    make "CC=cc -DNEED_REAL_STDIO"

>(I'm sure there is a more sensible config option to set :-)  Without
>the workaround I get hunderts of warnings

This means one of two things (possibly both):

1. Some "other" system include file on Digital UNIX includes stdio.h
   (Sun's <math.h> does this via <floatingpoint.h>)
2. Digital's stdio.h does not define any of the symbols I am looking for
   to see if 'real stdio' is already included.

Can you see if you stdio.h has this sort of construct

#ifndef SOME_SYM
#define SOME_SYM
.... rest of file
#endif

If yes - what is the symbol?
If not is there a "This is digital unix" -D equivalent that can be used
to imply NEED_REAL_STDIO ?

(Ugh editing with one's DISPLAY set trans-atlantic is a pain...)
==========================================================================
This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the

--




Sun, 05 Dec 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Tk402.001 and Irix 5.3

2. Test error from Tk402.001

3. symbol not found: gettimeofday in SVR4 Motorola (Tk402.001 w/perl 5.004_01)

4. Tk402.001 fails to build under FreeBSD 2.2-STABLE

5. Problems with installing perl5.001 on SunOS

6. Perl5.001 DBM problem ??????

7. Problems installing Perl5.001 under Linux

8. Perl-5.001 DBM problem ?

9. BUG Perl5.001 with patches debugger problem

10. Problem in installing perl5.001

11. Problems installing Perl5.001 - sig.txt [1/1] - sig.txt [1/1]

12. Perl5.001 installation problems on a SunOS 4.1.3

 

 
Powered by phpBB® Forum Software