nwellnhof / perl-commonmark

Perl bindings for the CommonMark C library
https://metacpan.org/release/CommonMark
Other
5 stars 7 forks source link

Compilation error on 0.280301 #6

Closed bes-internal closed 6 years ago

bes-internal commented 6 years ago

compilation:

cpanm (App::cpanminus) 1.7039 on perl 5.024003 built for x86_64-linux-thread-multi
Work directory is /home/bes/.cpanm/work/1513253311.18449
You have make /usr/bin/make
You have LWP 6.15
You have /bin/tar: tar (GNU tar) 1.29
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
--> Working on /home/bes/tmp/
Entering /home/bes/tmp
Configuring /home/bes/tmp
-> OK
Checking if you have CommonMark 0 ... No
==> Found dependencies: CommonMark
Searching CommonMark (0) on cpanmetadb ...
--> Working on CommonMark
Fetching http://cpan.metacpan.org/authors/id/N/NW/NWELLNHOF/CommonMark-0.280301.tar.gz
-> OK
Unpacking CommonMark-0.280301.tar.gz
Copying CommonMark-0.280301.tar.gz to /home/bes/tmp/local/cache/authors/id/N/NW/NWELLNHOF/CommonMark-0.280301.tar.gz
Entering CommonMark-0.280301
Checking configure dependencies from META.yml
Checking if you have Devel::CheckLib 0 ... Yes (1.11)
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.10_02)
Configuring CommonMark-0.280301
Running Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for CommonMark
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.10_02)
Building CommonMark-0.280301
cp lib/CommonMark/Iterator.pod blib/lib/CommonMark/Iterator.pod
cp lib/CommonMark.pod blib/lib/CommonMark.pod
cp README.pod blib/lib/README.pod
cp lib/CommonMark/Parser.pod blib/lib/CommonMark/Parser.pod
cp lib/CommonMark.pm blib/lib/CommonMark.pm
cp lib/CommonMark/Node.pod blib/lib/CommonMark/Node.pod
Running Mkbootstrap for CommonMark ()
chmod 644 "CommonMark.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- CommonMark.bs blib/arch/auto/CommonMark/CommonMark.bs 644
"/usr/bin/perl" "/usr/lib64/perl5/5.24.3/ExtUtils/xsubpp"  -typemap '/usr/lib64/perl5/5.24.3/ExtUtils/typemap' -typemap '/home/bes/.cpanm/work/1513253311.18449/CommonMark-0.280301/typemap'  CommonMark.xs > CommonMark.xsc
mv CommonMark.xsc CommonMark.c
x86_64-pc-linux-gnu-gcc -c   -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=native -pipe -fomit-frame-pointer   -DVERSION=\"0.280301\" -DXS_VERSION=\"0.280301\" -fPIC "-I/usr/lib64/perl5/5.24.3/x86_64-linux-thread-multi/CORE"   CommonMark.c
CommonMark.xs: In function 'boot_CommonMark':
CommonMark.xs:238:31: error: 'CMARK_OPT_NOBREAKS' undeclared (first use in this function)
             { "OPT_NOBREAKS", CMARK_OPT_NOBREAKS },
                               ^
CommonMark.xs:238:31: note: each undeclared identifier is reported only once for each function it appears in
make: *** [Makefile:342: CommonMark.o] Error 1

cmark 0.28.0 gcc 5.4.0

$ grep NOBR /usr/include/cmark.h
#define CMARK_OPT_NOBREAKS (1 << 4)
nwellnhof commented 6 years ago

Are you sure there aren't any other cmark header files lying around that are used by accident? It looks like an older version of cmark.h is included with a newer version of cmark_version.h.

bes-internal commented 6 years ago

sorry, my mistake