Skip to content
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

build failed on osx #141

Closed
AndorChen opened this issue Jan 2, 2013 · 11 comments
Closed

build failed on osx #141

AndorChen opened this issue Jan 2, 2013 · 11 comments

Comments

@AndorChen
Copy link

I got this error when builded in osx:

linking shared-object peg_multimarkdown.bundle
ld: duplicate symbol _syntax_extensions in markdown_parser.o and markdown_output.o
collect2: ld returned 1 exit status
make: *** [peg_multimarkdown.bundle] Error 1

any ideas on what happened here?

thx

@fletcher
Copy link
Owner

fletcher commented Jan 2, 2013

Did you do make clean first?

Sent from my iPhone

On Jan 2, 2013, at 9:34 AM, Andor Chen notifications@github.com wrote:

I got this error when builded in osx:

linking shared-object peg_multimarkdown.bundle
ld: duplicate symbol _syntax_extensions in markdown_parser.o and
markdown_output.o
collect2: ld returned 1 exit status
make: *** [peg_multimarkdown.bundle] Error 1

any ideas on what happened here?

thx


Reply to this email directly or view it on
GitHubhttps://github.com//issues/141.

@AndorChen
Copy link
Author

@fletcher yes, make clean and then make, but the error stills

@fletcher
Copy link
Owner

fletcher commented Jan 2, 2013

Give me a few hours to get back to computer and look into it, but it compiled fine for me.

Check development branch as well, just in case.

F-

On Jan 2, 2013, at 10:07 AM, Andor Chen wrote:

@fletcher yes, make clean and then make, but the error stills


Reply to this email directly or view it on GitHub.

Fletcher T. Penney
fletcher@fletcherpenney.net

@AndorChen
Copy link
Author

@fletcher thanks very much, and i got some other errors:

compiling odf.c
odf.c:18: error: expected ‘)’ before ‘*’ token
odf.c:180: error: expected ‘)’ before ‘*’ token
make: *** [odf.o] Error 1

@fletcher
Copy link
Owner

fletcher commented Jan 2, 2013

What version of OS X and Xcode are you using?

Sent from my iPhone

On Jan 2, 2013, at 10:22 AM, Andor Chen notifications@github.com wrote:

@fletcher https://github.com/fletcher thanks very much, and i got some
other errors:

compiling odf.c
odf.c:18: error: expected ‘)’ before ‘’ token
odf.c:180: error: expected ‘)’ before ‘
’ token
make: *** [odf.o] Error 1


Reply to this email directly or view it on
GitHubhttps://github.com//issues/141#issuecomment-11811313.

@AndorChen
Copy link
Author

Mac OS X 10.6.8
Xcode 3.2.3

@fletcher
Copy link
Owner

fletcher commented Jan 2, 2013

Are you sure you have a clean copy of the github project? These seem like strange errors.

I compiled today on 10.6.8, but had Xcode 4 (4.2?). Maybe that's the difference, but I have not been able to replicate your issue.

@AndorChen
Copy link
Author

@fletcher maybe the error is related to the glib. i removed the glib.h, GLibFacade.h and GLibFacade.c, and install glib, then the build successed

btw, i was building the c extension in ruby

@fletcher
Copy link
Owner

fletcher commented Jan 3, 2013

Ahh... Burying the lede.... ;)

GLibFacade replaces the routines from glib so that the glib libraries are no longer required. If you're compiling for ruby, it may already have glib declared and included, causing the problem (basically a namespace collision). There shouldn't be any issue with using this approach.

BTW - I had looked (briefly) at adding MMD support to the github wiki software. I don't have a lot of experience with ruby, but it looked like I would need a piece of ruby code, and then to have the MMD software compiled to do the heavy lifting when called via the ruby code. This would allow users to include MultiMarkdown (and not just regular Markdown) in README's and wiki pages on github.

It sounds as though you may have already done the hard part. Any interest in working with me to get this enabled?

@fletcher
Copy link
Owner

fletcher commented Jan 3, 2013

Here's the link where I started digging:

https://github.com/github/markup

@AndorChen
Copy link
Author

@fletcher i have wrapped the lib in a ruby gem, you can install it via gem install rpeg-multimarkdown2, and the source is at https://github.com/AndorChen/rpeg-multimarkdown2

the gem is still under test, so maybe contents errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants