Subject: | Version Text-CSV_XS-1.39 - Error while compiling (encrypt.h) |
Date: | Thu, 9 May 2019 12:13:30 -0700 |
To: | <bug-Text-CSV_XS [...] rt.cpan.org> |
From: | "Larry Baker" <larry.baker [...] datasolutionsdirect.com> |
Hello Support,
I’m hoping you can help me with this issue. I have included all coding for your review. I’m getting an error with the encrypt.h file, see highlighted yellowed sections. Please let me know if you need anything else and I’ll send it to you. Thank you for your help! Very much appreciated!
I have included detailed information below for the following:
uname -a
perl –V
copy of encrypt.h file
perl Makefile.PL
make test – with errors
make install – with errors
##########################################################################
larry@DESKTOP-5BN0JIL /opt/tools/cbin/source/csv2xls/Text-CSV_XS-1.39
##########################################################################
$ uname -a
CYGWIN_NT-10.0 DESKTOP-5BN0JIL 3.0.7(0.338/5/3) 2019-04-30 18:08 x86_64 Cygwin
##########################################################################
larry@DESKTOP-5BN0JIL /opt/tools/cbin/source/csv2xls/Text-CSV_XS-1.39
##########################################################################
$ perl -V
Summary of my perl5 (revision 5 version 26 subversion 3) configuration:
Platform:
osname=cygwin
osvers=2.11.2(0.32953)
archname=x86_64-cygwin-threads-multi
uname='cygwin_nt-6.3 cygwin 2.11.2(0.32953) 2018-11-08 14:34 x86_64 cygwin
'
config_args='-des -Dprefix=/usr -Dmksymlinks
-Darchname=x86_64-cygwin-threads -Dlibperl=cygperl5_26.dll -Dcc=gcc -Dld=g++
-Accflags=-ggdb -O2 -pipe -Wall -Werror=format-security -D_FORTIFY_SOURCE=2
-fstack-protector-strong --param=ssp-buffer-size=4
-fdebug-prefix-map=/mnt/share/maint/perl.x86_64/build=/usr/src/debug/perl-5.26.3-1
-fdebug-prefix-map=/mnt/share/maint/perl.x86_64/src/perl-5.26.3=/usr/src/debug/perl-5.26.3-1
-fwrapv'
hint=recommended
useposix=true
d_sigaction=define
useithreads=define
usemultiplicity=define
use64bitint=define
use64bitall=define
uselongdouble=undef
usemymalloc=n
default_inc_excludes_dot=define
bincompat5005=undef
Compiler:
cc='gcc'
ccflags ='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -D_GNU_SOURCE -ggdb -O2
-pipe -Wall -Werror=format-security -D_FORTIFY_SOURCE=2
-fstack-protector-strong --param=ssp-buffer-size=4
-fdebug-prefix-map=/mnt/share/maint/perl.x86_64/build=/usr/src/debug/perl-5.26.3-1
-fdebug-prefix-map=/mnt/share/maint/perl.x86_64/src/perl-5.26.3=/usr/src/debug/perl-5.26.3-1
-fwrapv -fno-strict-aliasing'
optimize='-O3'
cppflags='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -D_GNU_SOURCE -ggdb -O2
-pipe -Wall -Werror=format-security -D_FORTIFY_SOURCE=2
-fstack-protector-strong --param=ssp-buffer-size=4
-fdebug-prefix-map=/mnt/share/maint/perl.x86_64/build=/usr/src/debug/perl-5.26.3-1
-fdebug-prefix-map=/mnt/share/maint/perl.x86_64/src/perl-5.26.3=/usr/src/debug/perl-5.26.3-1
-fwrapv -fno-strict-aliasing'
ccversion=''
gccversion='7.3.0'
gccosandvers=''
intsize=4
longsize=8
ptrsize=8
doublesize=8
byteorder=12345678
doublekind=3
d_longlong=define
longlongsize=8
d_longdbl=define
longdblsize=16
longdblkind=3
ivtype='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 -fstack-protector-strong'
libpth=/usr/lib
libs=-lpthread -lgdbm -ldb -ldl -lcrypt -lgdbm_compat
perllibs=-lpthread -ldl -lcrypt
libc=/usr/lib/libcygwin.a
so=dll
useshrplib=true
libperl=cygperl5_26.dll
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs
dlext=dll
d_dlsymun=undef
ccdlflags=' '
cccdlflags=' '
lddlflags=' --shared -Wl,--enable-auto-import -Wl,--export-all-symbols
-Wl,--enable-auto-image-base -fstack-protector-strong'
Characteristics of this binary (from libperl):
Compile-time options:
HAS_TIMES
MULTIPLICITY
PERLIO_LAYERS
PERL_COPY_ON_WRITE
PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT
PERL_OP_PARENT
PERL_PRESERVE_IVUV
PERL_USE_SAFE_PUTENV
USE_64_BIT_ALL
USE_64_BIT_INT
USE_ITHREADS
USE_LARGE_FILES
USE_LOCALE
USE_LOCALE_COLLATE
USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC
USE_LOCALE_TIME
USE_PERLIO
USE_PERL_ATOF
USE_REENTRANT_API
Locally applied patches:
Cygwin: README
Cygwin: use auto-image-base instead of fixed DLL base address
Cygwin: modify hints
Cygwin: Configure correct libsearch
Cygwin: Configure correct libpth
Cygwin: Win32 correct UTF8 handling
Perl: File-Path-2.14 (fixes CVE2017-6512)
Built under cygwin
Compiled at Dec 1 2018 08:21:14
@INC:
/usr/local/lib/perl5/site_perl/5.26/x86_64-cygwin-threads
/usr/local/share/perl5/site_perl/5.26
/usr/lib/perl5/vendor_perl/5.26/x86_64-cygwin-threads
/usr/share/perl5/vendor_perl/5.26
/usr/lib/perl5/5.26/x86_64-cygwin-threads
/usr/share/perl5/5.26
##########################################################################
larry@DESKTOP-5BN0JIL /opt/tools/cbin/source/csv2xls/Text-CSV_XS-1.39
##########################################################################
/* encrypt.h - API to 56 bit DES encryption via calls
encrypt(3), setkey(3) and crypt(3)
Copyright (C) 1991 Jochen Obalek
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef _ENCRYPT_H_
#define _ENCRYPT_H_
#ifdef __cplusplus
extern "C"
{
#endif
#include <_ansi.h>
void _EXFUN(encrypt, (char *block, int edflag));
void _EXFUN(setkey, (char *key));
char * _EXFUN(crypt, (const char *key, const char *salt));
#ifdef __cplusplus
}
#endif
#endif /* _ENCRYPT_H_ */
##########################################################################
larry@DESKTOP-5BN0JIL /opt/tools/cbin/source/csv2xls/Text-CSV_XS-1.39
##########################################################################
$ perl Makefile.PL
make installChecking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Text::CSV_XS
Writing MYMETA.yml and MYMETA.json
##########################################################################
larry@DESKTOP-5BN0JIL /opt/tools/cbin/source/csv2xls/Text-CSV_XS-1.39
##########################################################################
$ make test
Running Mkbootstrap for CSV_XS ()
chmod 644 "CSV_XS.bs"
"/usr/bin/perl.exe" -MExtUtils::Command::MM -e 'cp_nonempty' -- CSV_XS.bs
blib/arch/auto/Text/CSV_XS/CSV_XS.bs 644
"/usr/bin/perl.exe" "/usr/share/perl5/5.26/ExtUtils/xsubpp" -typemap
'/usr/share/perl5/5.26/ExtUtils/typemap' CSV_XS.xs > CSV_XS.xsc
mv CSV_XS.xsc CSV_XS.c
gcc -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -D_GNU_SOURCE -ggdb -O2
-pipe -Wall -Werror=format-security -D_FORTIFY_SOURCE=2
-fstack-protector-strong --param=ssp-buffer-size=4
-fdebug-prefix-map=/mnt/share/maint/perl.x86_64/build=/usr/src/debug/perl-5.26.3-1
-fdebug-prefix-map=/mnt/share/maint/perl.x86_64/src/perl-5.26.3=/usr/src/debug/perl-5.26.3-1
-fwrapv -fno-strict-aliasing -DUSEIMPORTLIB -O3 -DVERSION=\"1.39\"
-DXS_VERSION=\"1.39\" "-I/usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE"
CSV_XS.c
In file included from
/usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/reentr.h:104:0,
from /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/op.h:654,
from
/usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/perl.h:3921,
from CSV_XS.xs:8:
/usr/include/crypt.h:29:22: error: expected ‘)’ before ‘(’ token
void _EXFUN(encrypt, (char *block, int edflag));
^
/usr/include/crypt.h:30:21: error: expected ‘)’ before ‘(’ token
void _EXFUN(setkey, (char *key));
^
/usr/include/crypt.h:31:22: error: expected ‘)’ before ‘(’ token
char * _EXFUN(crypt, (const char *key, const char *salt));
^
make: *** [Makefile:335: CSV_XS.o] Error 1
##########################################################################
larry@DESKTOP-5BN0JIL /opt/tools/cbin/source/csv2xls/Text-CSV_XS-1.39
##########################################################################
$ make install
cp CSV_XS.pm blib/lib/Text/CSV_XS.pm
"/usr/bin/perl.exe" -MExtUtils::Command::MM -e 'cp_nonempty' -- CSV_XS.bs
blib/arch/auto/Text/CSV_XS/CSV_XS.bs 644
gcc -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -D_GNU_SOURCE -ggdb -O2
-pipe -Wall -Werror=format-security -D_FORTIFY_SOURCE=2
-fstack-protector-strong --param=ssp-buffer-size=4
-fdebug-prefix-map=/mnt/share/maint/perl.x86_64/build=/usr/src/debug/perl-5.26.3-1
-fdebug-prefix-map=/mnt/share/maint/perl.x86_64/src/perl-5.26.3=/usr/src/debug/perl-5.26.3-1
-fwrapv -fno-strict-aliasing -DUSEIMPORTLIB -O3 -DVERSION=\"1.39\"
-DXS_VERSION=\"1.39\" "-I/usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE"
CSV_XS.c
In file included from
/usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/reentr.h:104:0,
from /usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/op.h:654,
from
/usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE/perl.h:3921,
from CSV_XS.xs:8:
/usr/include/crypt.h:29:22: error: expected ‘)’ before ‘(’ token
void _EXFUN(encrypt, (char *block, int edflag));
^
/usr/include/crypt.h:30:21: error: expected ‘)’ before ‘(’ token
void _EXFUN(setkey, (char *key));
^
/usr/include/crypt.h:31:22: error: expected ‘)’ before ‘(’ token
char * _EXFUN(crypt, (const char *key, const char *salt));
^
make: *** [Makefile:335: CSV_XS.o] Error 1
Message body is not shown because it is too large.