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

[perl #114198] XSPP warns of bad XS code in Dynaloader

Thread Next
From:
bulk 88
Date:
July 19, 2012 01:58
Subject:
[perl #114198] XSPP warns of bad XS code in Dynaloader
Message ID:
rt-3.6.HEAD-11172-1342688319-1940.114198-75-0@perl.org
# New Ticket Created by  bulk 88 
# Please include the string:  [perl #114198]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=114198 >




This is a bug report for perl from bulk88@hotmail.com,
generated with the help of perlbug 1.39 running under perl 5.17.2.


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

This bug ticket is 100% cosmetic. There are no runtime issues with it. While compiling perl 5.17 I noticed some warnings in the console. DynaLoader.xs is actually dl_win32.xs for me but I think this problem is in every dl_* file, I traced the XS code back to Paul Marquess in 1994, http://perl5.git.perl.org/perl.git/blob/a0d0e21ea6ea90a22318550944fe6cb09ae10cda:/ext/DynaLoader/dl_next.xs . Day 1 of DynaLoader. "dl.c" the predecessor to DynaLoader had a very different api than DynaLoader.

____________________________________________
        ..\..\miniperl.exe "-I..\..\lib" "-I..\..\lib" ..\..\lib\ExtUtils\xsubpp
 -noprototypes -typemap ..\..\lib\ExtUtils\typemap  DynaLoader.xs > DynaLoader.x
sc && C:\p517\perl\miniperl.exe "-I..\..\lib" "-I..\..\lib" -MExtUtils::Command
-e mv -- DynaLoader.xsc DynaLoader.c
Warning: Found a 'CODE' section which seems to be using 'RETVAL' but no 'OUTPUT'
 section. in DynaLoader.xs, line 134
Warning: Found a 'CODE' section which seems to be using 'RETVAL' but no 'OUTPUT'
 section. in DynaLoader.xs, line 162
___________________________________________
I looked at the 2 lines, first is dl_load_file, which declares a void * return type through XSPP XS syntax, yet manually uses ST(0). Second is dl_find_symbol which again declares a void * return type, yet manually uses ST(0). Either use the XS return type the correct way with an OUTPUT section, or don't use the XS return type feature and use ST(*) and XSRETURN/XSRETURN_*/PPCODE and PUSH. This ticket is 100% cosmetic.

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=library
    severity=low
    module=DynaLoader
---
Site configuration information for perl 5.17.2:

Configured by Owner at Mon Jul 16 14:34:12 2012.

Summary of my perl5 (revision 5 version 17 subversion 2) configuration:
   
  Platform:
    osname=MSWin32, osvers=5.1, archname=MSWin32-x86-multi-thread
    uname=''
    config_args='undef'
    hint=recommended, useposix=true, d_sigaction=undef
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=undef, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cl', ccflags ='-nologo -GF -W3 -Od -MD -Zi -DDEBUGGING -DWIN32 -D_CONSOLE -DNO_STRICT  -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -D_USE_32BIT_TIME_T',
    optimize='-Od -MD -Zi -DDEBUGGING',
    cppflags='-DWIN32'
    ccversion='13.10.6030', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='link', ldflags ='-nologo -nodefaultlib -debug  -libpath:"c:\perl517\lib\CORE"  -machine:x86'
    libpth="C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\lib"
    libs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib  comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib  netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib comctl32.lib msvcrt.lib
    perllibs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib  comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib  netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib comctl32.lib msvcrt.lib
    libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl517.lib
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug  -libpath:"c:\perl517\lib\CORE"  -machine:x86'

Locally applied patches:
    

---
@INC for perl 5.17.2:
    C:/perl517/site/lib
    C:/perl517/lib
    .

---
Environment for perl 5.17.2:
    HOME (unset)
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=C:\perl517\bin;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\BIN;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\bin\prerelease;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\wbem;
    PERL_BADLANG (unset)
    PERL_JSON_BACKEND=JSON::PP
    SHELL (unset)

 		 	   		  


Thread Next


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