New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue building on OSX 10.11 (El Capitan) / Perl 5.20.2 #46

Closed
jonasbn opened this Issue Nov 20, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@jonasbn
Collaborator

jonasbn commented Nov 20, 2015

I am experiencing some issues building on OSX 10.11 (El Capitan) / Perl 5.20.2. My perl is a perlbrew perl installation (see details at the bottom)

[jonasbn:~/Downloads/Crypt-OpenSSL-X509-1.806] $ 
> make
cp X509.pm blib/lib/Crypt/OpenSSL/X509.pm
Running Mkbootstrap for Crypt::OpenSSL::X509 ()
chmod 644 X509.bs
/Users/jonasbn/perl5/perlbrew/perls/perl-5.20.2/bin/perl "-Iinc" /Users/jonasbn/perl5/perlbrew/perls/perl-5.20.2/lib/5.20.2/ExtUtils/xsubpp  -typemap /Users/jonasbn/perl5/perlbrew/perls/perl-5.20.2/lib/5.20.2/ExtUtils/typemap -typemap typemap  X509.xs > X509.xsc && mv X509.xsc X509.c
cc -c  -I/usr/include/openssl -I/usr/local/include/ssl -I/usr/local/ssl/include -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O2 -g -Wall -Werror -Wno-deprecated-declarations   -DVERSION=\"1.806\" -DXS_VERSION=\"1.806\"  "-I/Users/jonasbn/perl5/perlbrew/perls/perl-5.20.2/lib/5.20.2/darwin-2level/CORE"   X509.c
In file included from X509.xs:2:
In file included from /Users/jonasbn/perl5/perlbrew/perls/perl-5.20.2/lib/5.20.2/darwin-2level/CORE/perl.h:5199:
/Users/jonasbn/perl5/perlbrew/perls/perl-5.20.2/lib/5.20.2/darwin-2level/CORE/inline.h:311:9: error: 
      nonnull parameter 'pv' will evaluate to 'true' on first encounter
      [-Werror,-Wpointer-bool-conversion]
    if (pv && len > 1) {
        ^~ ~~
1 error generated.
make: *** [X509.o] Error 1

Perl version information:

> clear ; perl -V

Summary of my perl5 (revision 5 version 20 subversion 2) configuration:

  Platform:
    osname=darwin, osvers=14.3.0, archname=darwin-2level
    uname='darwin jonasbn.dkhm 14.3.0 darwin kernel version 14.3.0: mon mar 23 11:59:05 pdt 2015; root:xnu-2782.20.48~5release_x86_64 x86_64 '
    config_args='-de -Dprefix=/Users/jonasbn/perl5/perlbrew/perls/perl-5.20.2 -Aeval:scriptdir=/Users/jonasbn/perl5/perlbrew/perls/perl-5.20.2/bin'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include',
    optimize='-O3',
    cppflags='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.49)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.1.0/lib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib /usr/lib
    libs=-lgdbm -ldbm -ldl -lm -lutil -lc
    perllibs=-ldl -lm -lutil -lc
    libc=, so=dylib, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector'


Characteristics of this binary (from libperl): 
  Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
                        PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP
                        PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV
                        USE_64_BIT_ALL USE_64_BIT_INT USE_LARGE_FILES
                        USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
                        USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
  Locally applied patches:
    Devel::PatchPerl 1.30
  Built under darwin
  Compiled at May 19 2015 12:43:02
  %ENV:
    PERLBREW_BASHRC_VERSION="0.73"
    PERLBREW_HOME="/Users/jonasbn/.perlbrew"
    PERLBREW_MANPATH="/Users/jonasbn/perl5/perlbrew/perls/perl-5.20.2/man"
    PERLBREW_PATH="/Users/jonasbn/perl5/perlbrew/bin:/Users/jonasbn/perl5/perlbrew/perls/perl-5.20.2/bin"
    PERLBREW_PERL="perl-5.20.2"
    PERLBREW_ROOT="/Users/jonasbn/perl5/perlbrew"
    PERLBREW_VERSION="0.73"
    PERL_CARTON_MIRROR="http://cpan2000/"
  @INC:
    /Users/jonasbn/perl5/perlbrew/perls/perl-5.20.2/lib/site_perl/5.20.2/darwin-2level
    /Users/jonasbn/perl5/perlbrew/perls/perl-5.20.2/lib/site_perl/5.20.2
    /Users/jonasbn/perl5/perlbrew/perls/perl-5.20.2/lib/5.20.2/darwin-2level
    /Users/jonasbn/perl5/perlbrew/perls/perl-5.20.2/lib/5.20.2
    .
[jonasbn:~/Downloads/Crypt-OpenSSL-X509-1.806] $ 
> 
@jonasbn

This comment has been minimized.

Show comment
Hide comment
@jonasbn

jonasbn Jan 20, 2017

Collaborator

I have not observed this issue with my latest work related to PR: #56, so I will close this for now. I made a basic PR for perl-crypt-openssl-pkcs12, but it is a hack and I am not proud of it.

The hack basically turns an error into a warning - in general not a good idea.

I will revisit the PR for: perl-crypt-openssl-pkcs12

Have a nice weekend,

jonasbn

Collaborator

jonasbn commented Jan 20, 2017

I have not observed this issue with my latest work related to PR: #56, so I will close this for now. I made a basic PR for perl-crypt-openssl-pkcs12, but it is a hack and I am not proud of it.

The hack basically turns an error into a warning - in general not a good idea.

I will revisit the PR for: perl-crypt-openssl-pkcs12

Have a nice weekend,

jonasbn

@jonasbn jonasbn closed this Jan 20, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment