develooper Front page | perl.perl5.porters | Postings from August 2012

[perl #114664] [PATCH] Fix Cygwin build warnings

Thread Previous
From:
Jerry D. Hedden
Date:
August 29, 2012 08:02
Subject:
[perl #114664] [PATCH] Fix Cygwin build warnings
Message ID:
rt-3.6.HEAD-11172-1346252541-1392.114664-75-0@perl.org
# New Ticket Created by  "Jerry D. Hedden" 
# Please include the string:  [perl #114664]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=114664 >


This is a bug report for perl from jdhedden@cpan.org,
generated with the help of perlbug 1.39 running under perl 5.16.1.


-----------------------------------------------------------------
[Please describe your issue here]

Attached patch fixes the following build warnings under Cygwin:

cygwin.c: In function 'do_spawn':
cygwin.c:132:5: warning: assignment from incompatible pointer type
cygwin.c: In function 'XS_Cygwin_posix_to_win_path':
cygwin.c:346:9: warning: 'err' may be used uninitialized in this function
cygwin.c: In function 'XS_Cygwin_win_to_posix_path':
cygwin.c:257:9: warning: 'err' may be used uninitialized in this function

This patch can be directly applied to the 5.16.x maintenance branch, as well.

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=low
---
Site configuration information for perl 5.16.1:

Configured by Jerry at Tue Aug 14 12:59:06 EDT 2012.

Summary of my perl5 (revision 5 version 16 subversion 1 patch 53802)
configuration:
  Snapshot of: 06d742c02d396d6515581002f376b55ab1972c1b
  Platform:
    osname=cygwin, osvers=1.7.16(0.26253), archname=cygwin-thread-multi-64int
    uname='cygwin_nt-5.1 med-heddenj 1.7.16(0.26253) 2012-07-20 22:55
i686 cygwin '
    config_args='-de -Duse64bitint -Dusethreads -Uusemymalloc
-Dinc_version_list=none -Dnoextensions=DB_File Devel/DProf Devel/Peek
GDBM_File IPC/SysV NDBM_File ODBM_File Sys/Syslog Text/Soundex
Time/Piece attrs B/Debug B/Lint -A append:ccflags= -DNO_MATHOMS -A
define:optimize=-Os -pipe -funit-at-a-time -march=pentium4
-mfpmath=sse -mieee-fp -mmmx -msse -msse2'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__
-DNO_MATHOMS -fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include',
    optimize='-Os -pipe -funit-at-a-time -march=pentium4 -mfpmath=sse
-mieee-fp -mmmx -msse -msse2',
    cppflags='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -DNO_MATHOMS
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.5.3', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8,
Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='g++', ldflags =' -Wl,--enable-auto-import
-Wl,--export-all-symbols -Wl,--enable-auto-image-base -s
-fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib /lib
    libs=-ldb -ldl -lcrypt
    perllibs=-ldl -lcrypt
    libc=/usr/lib/libc.a, so=dll, useshrplib=true, libperl=cygperl5_16_1.dll
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' -s'
    cccdlflags=' ', lddlflags=' --shared  -Wl,--enable-auto-import
-Wl,--export-all-symbols -Wl,--enable-auto-image-base -s
-L/usr/local/lib -fstack-protector'

Locally applied patches:


---
@INC for perl 5.16.1:
    /usr/lib/perl5/site_perl/5.16.1/cygwin
    /usr/lib/perl5/site_perl/5.16.1
    /usr/lib/perl5/5.16.1/cygwin
    /usr/lib/perl5/5.16.1
    .

---
Environment for perl 5.16.1:
    CYGWIN=nodosfilewarning
    HOME=/home/heddenj
    LANG=C
    LANGUAGE=C
    LC_ALL=C
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/heddenj/bin:/usr/local/src/perl/bin:/usr/local/bin:/usr/bin:/c/Progra~1/Java/jre6/bin:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/Program
Files/ATI Technologies/ATI.ACE/Core-Static:/c/Program
Files/TortoiseSVN/bin:/c/PYTHON27:/c/Program Files/MySQL/MySQL Server
5.5/bin:/c/WINDOWS/system32/WindowsPowerShell/v1.0:.
    PERLIO=perlio
    PERL_BADLANG (unset)
    SHELL=/bin/bash

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