Subject: | https://rt.cpan.org/Public/Bug/Report.html?Queue=Guard - cpan Net::IMAP::Server fails in dlltool --def Guard.def --output-exp dll.exp > Fatal error: selected target format '' unknown dlltool: as exited with status 1 |
Date: | Sat, 27 Jun 2015 02:57:04 +0200 |
To: | <bug-Guard [...] rt.cpan.org> |
From: | "Robert Wagler" <R.Wagler [...] gmx.net> |
cpan Net::IMAP::Server fails in dlltool --def Guard.def --output-exp dll.exp > Fatal error: selected target format '' unknown dlltool: as exited with status 1
Hello,
I have to report a bug or compatibility issue.
I got this email address from https://rt.cpan.org/Public/Bug/Report.html?Queue=Guard
Maybe you can help to bring this issue to there finally target. Thanks :)
---
I tried to install cpan Net::IMAP::Server which failed.
- perl -V
Summary of my perl5 (revision 5 version 18 subversion 4) configuration:
Platform:
osname=MSWin32, osvers=6.3, archname=MSWin32-x86-multi-thread-64int
...
I find out that cpan Guard failed with message
E:\Programme\strawberry\c\bin>cpan Guard
CPAN: CPAN::SQLite loaded ok (v0.204)
Database was generated on Fri, 26 Jun 2015 19:23:59 GMT
Running install for module 'Guard'
CPAN: Digest::SHA loaded ok (v5.92)
CPAN: Compress::Zlib loaded ok (v2.066)
Checksum for E:\programme\strawberry\cpan\sources\authors\id\M\ML\MLEHMANN\Guard-1.023.tar.gz ok
CPAN: Archive::Tar loaded ok (v2.04)
CPAN: File::Temp loaded ok (v0.2304)
CPAN: YAML::XS loaded ok (v0.52)
CPAN: Parse::CPAN::Meta loaded ok (v1.4414)
CPAN: CPAN::Meta loaded ok (v2.142690)
CPAN: Module::CoreList loaded ok (v5.20140920)
Configuring M/ML/MLEHMANN/Guard-1.023.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Guard
Writing MYMETA.yml and MYMETA.json
MLEHMANN/Guard-1.023.tar.gz
E:\programme\strawberry\perl\bin\perl.exe Makefile.PL -- OK
Running make for M/ML/MLEHMANN/Guard-1.023.tar.gz
cp Guard.pm blib\lib\Guard.pm
Running Mkbootstrap for Guard ()
E:\programme\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 Guard.bs
E:\programme\strawberry\perl\bin\perl.exe E:\programme\strawberry\perl\lib\ExtUtils\xsubpp -typemap E:\programme\strawberry\perl\lib\ExtUtils\typemap
Guard.xs > Guard.xsc && E:\programme\strawberry\perl\bin\perl.exe -MExtUtils::Command -e mv -- Guard.xsc Guard.c
gcc -c -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fno-strict-aliasing -mms-bitfields -s
-O2 -DVERSION=\"1.023\" -DXS_VERSION=\"1.023\" "-IE:\programme\strawberry\perl\lib\CORE" Guard.c
E:\programme\strawberry\perl\bin\perl.exe -MExtUtils::Mksymlists \
-e "Mksymlists('NAME'=>\"Guard\", 'DLBASE' => 'Guard', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);"
dlltool --def Guard.def --output-exp dll.exp
Assembler messages:
Fatal error: selected target format '' unknown dlltool: as exited with status 1
Finally I had to change E:\Programme\strawberry\perl\lib\Config_heavy.pl
-dlltool='dlltool'
+dlltool='E:\Programme\strawberry\c\i686-w64-mingw32\bin\dlltool'
Before this I found two files named dlltool.exe.
- E:\Programme\strawberry\c\bin\dlltool.exe
- E:\Programme\strawberry\c\i686-w64-mingw32\bin\dlltool.exe
First looks like default (to PATH-Env-Variable). So I tried:
E:\Programme\strawberry\c\bin>E:\programme\strawberry\perl\bin\perl.exe -MExtUtils::Mksymlists -e "Mksymlists('NAME'=>\"Guard\", 'DLBASE' => 'Guard', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);"
E:\Programme\strawberry\c\bin>dlltool --def Guard.def --output-exp dll.exp
Assembler messages:
Fatal error: selected target format '' unknown
dlltool: as exited with status 1
E:\Programme\strawberry\c\bin>E:\Programme\strawberry\c\bin\dlltool.exe --def Guard.def --output-exp dll.exp
Assembler messages:
Fatal error: selected target format '' unknown
E:\Programme\strawberry\c\bin\dlltool: E:\Programme\strawberry\c\bin\as exited with status 1
Second was a try, too:
E:\Programme\strawberry\c\bin>cd E:\Programme\strawberry\c\i686-w64-mingw32\bin
E:\Programme\strawberry\c\i686-w64-mingw32\bin>E:\programme\strawberry\perl\bin\perl.exe -MExtUtils::Mksymlists -e "Mksymlists('NAME'=>\"Guard\", 'DLBASE' => 'Guard', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);"
E:\Programme\strawberry\c\i686-w64-mingw32\bin>dlltool --def Guard.def --output-exp dll.exp
Assembler messages:
Fatal error: selected target format '' unknown
dlltool: as exited with status 1
E:\Programme\strawberry\c\i686-w64-mingw32\bin>E:\Programme\strawberry\c\i686-w64-mingw32\bin\dlltool.exe --def Guard.def --output-exp dll.exp
Last looks good, so I searched, found and changed E:\Programme\strawberry\perl\lib\Config_heavy.pl.
I do not know what is right or wrong. Actually cpan Guard success, but cpan Net::IMAP::Server hangs. But this is maybe another problem.
...
cp lib/Net/Server/Log/Sys/Syslog.pm blib\lib\Net\Server\Log\Sys\Syslog.pm
cp lib/Net/Server/Log/Log/Log4perl.pm blib\lib\Net\Server\Log\Log\Log4perl.pm
cp lib/Net/Server.pm blib\lib\Net\Server.pm
cp lib/Net/Server/Single.pm blib\lib\Net\Server\Single.pm
E:\programme\strawberry\perl\bin\perl.exe -MExtUtils::Command -e cp -- bin/net-server blib\script\net-server
pl2bat.bat blib\script\net-server
RHANDOM/Net-Server-2.008.tar.gz
E:\programme\strawberry\c\bin\dmake.exe -- OK
Running make test
E:\programme\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\lib'
, 'blib\arch')" t/*.t
t/Options.t ............... ok
t/Port_Configuration.t .... # number of tests ran 35 did not match number of specified tests 51
t/Port_Configuration.t .... Failed 17/51 subtests
t/Server_BASE.t ........... ok
t/Server_Fork.t ........... ok
t/Server_http.t ........... ok
t/Server_INET.t ........... ok
t/Server_Multiplex.t ...... ok
t/Server_MultiType.t ...... ok
t/Server_PreFork.t ........ 1/5
---
E:\Programme\imap_server\ex>perl -V
Summary of my perl5 (revision 5 version 18 subversion 4) configuration:
Platform:
osname=MSWin32, osvers=6.3, archname=MSWin32-x86-multi-thread-64int
uname='Win32 strawberry-perl 5.18.4.1 #1 Thu Oct 2 12:10:29 2014 i386'
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
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 =' -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fno-strict-aliasing -mms-btfields',
optimize='-s -O2',
cppflags='-DWIN32'
ccversion='', gccversion='4.7.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='long long', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='g++', ldflags ='-s -L"E:\programme\strawberry\perl\lib\CORE" -L"E:\programme\strawberry\c\lib"'
libpth=E:\programme\strawberry\c\lib E:\programme\strawberry\c\i686-w64-mingw32\lib E:\programme\strawberry\c\lib\gcc\i686-w64-mingw32\4.7.3
libs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinm -lversion -lodbc32 -lodbccp32 -lcomctl32
perllibs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -linmm -lversion -lodbc32 -lodbccp32 -lcomctl32
libc=, so=dll, useshrplib=true, libperl=libperl518.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-mdll -s -L"E:\programme\strawberry\perl\lib\CORE" -L"E:\programme\strawberry\c\lib"'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES HAVE_INTERP_INTERN MULTIPLICITY
PERLIO_LAYERS PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
PERL_MALLOC_WRAP PERL_PRESERVE_IVUV PERL_SAWAMPERSAND
USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
Built under MSWin32
Compiled at Oct 2 2014 12:19:54
@INC:
E:/programme/strawberry/perl/site/lib
E:/programme/strawberry/perl/vendor/lib
E:/programme/strawberry/perl/lib
.
E:\Programme\imap_server\ex>
Message body is not shown because it is too large.