fletcher / peg-multimarkdown

An implementation of MultiMarkdown in C, using a PEG grammar - a fork of jgm's peg-markdown. No longer under active development - see MMD 5.
Other
523 stars 55 forks source link

Building on Mac results in problems #88

Closed milkypostman closed 13 years ago

milkypostman commented 13 years ago

Sorry if this is a duplicate that I couldn't find, but having this problem when installing on Mac:

dcurtis@hendrix:~/Downloads/fletcher-peg-multimarkdown-7aacba2 > make
CC=gcc make -C peg-0.1.4
/usr/bin/llvm-gcc -c -O3 -march=core2 -w -pipe -o markdown_output.o markdown_output.c
/usr/bin/llvm-gcc -c -O3 -march=core2 -w -pipe -o markdown_lib.o markdown_lib.c
/usr/bin/llvm-gcc -c -O3 -march=core2 -w -pipe -o GLibFacade.o GLibFacade.c
gcc -g -Wall -O3 -DNDEBUG  -I/usr/local/Cellar/libiconv/1.14/include -I/usr/local/Cellar/gettext/0.18.1.1/include  -c -o peg.o peg.c
gcc -g -Wall -O3 -DNDEBUG  -I/usr/local/Cellar/libiconv/1.14/include -I/usr/local/Cellar/gettext/0.18.1.1/include  -c -o tree.o tree.c
gcc -g -Wall -O3 -DNDEBUG  -I/usr/local/Cellar/libiconv/1.14/include -I/usr/local/Cellar/gettext/0.18.1.1/include  -c -o compile.o compile.c
gcc -g -Wall -O3 -DNDEBUG  -I/usr/local/Cellar/libiconv/1.14/include -I/usr/local/Cellar/gettext/0.18.1.1/include  -c -o leg.o leg.c
In file included from peg.c:48:
peg.peg-c: In function ‘yy_Sequence’:
peg.peg-c:666: warning: label ‘l77’ defined but not used
peg.c: At top level:
peg.peg-c:64: warning: ‘yytextmax’ defined but not used
gcc -g -Wall -O3 -DNDEBUG  -o peg-new peg.o tree.o compile.o
mv peg-new peg
gcc -g -Wall -O3 -DNDEBUG  -o leg-new leg.o tree.o compile.o
mv leg-new leg
peg-0.1.4/leg -o markdown_parser.c markdown_parser.leg
rule 'DocForOPML' defined but not used
rule 'AutoLabels' defined but not used
rule 'Notes' defined but not used
rule 'InlineNote' defined but not used
rule 'NonAlphanumeric' defined but not used
rule 'References' defined but not used
rule 'MetaDataOnly' defined but not used
rule 'DocWithMetaData' defined but not used
/usr/bin/llvm-gcc -c -O3 -march=core2 -w -pipe -o markdown_parser.o markdown_parser.c
/usr/bin/llvm-gcc -O3 -march=core2 -w -pipe -o multimarkdown markdown_parser.o markdown_output.o markdown_lib.o GLibFacade.o markdown.c
In file included from markdown.c:27:
markdown_peg.h:16: error: ‘link’ redeclared as different kind of symbol
/usr/include/unistd.h:503: error: previous declaration of ‘link’ was here
make: *** [multimarkdown] Error 1

This is holding up an upgrade on @mxcl/homebrew from going through to 3.2 also.