This repository has been archived by the owner. It is now read-only.

crossroads failed to build on 10.8.2 #15217

Closed
ilya-epifanov opened this Issue Oct 1, 2012 · 5 comments

Comments

Projects
None yet
4 participants
> brew install crossroads --with-pgm                            
==> Downloading http://download.crossroads.io/libxs-1.2.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/crossroads-1.2.0.tar.gz
==> ./configure --prefix=/usr/local/Cellar/crossroads/1.2.0 --with-pgm
==> make
2 errors generated.
make[2]: *** [libpgm_noinst_la-string.lo] Error 1
make[2]: *** [libpgm_noinst_la-thread.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Error: crossroads did not build
Logs: /Users/hajile/Library/Logs/Homebrew/crossroads/
Help: https://github.com/mxcl/homebrew/wiki/troubleshooting

--env=std didn't change anything (incl. make log)

Contributor

2bits commented Oct 2, 2012

I can reproduce this with all compilers using supernev or std. This needs to be reported upstream to their developers.

Member

mxcl commented Oct 2, 2012

The problem is with libpgm, apparently it conflicts with netinet that comes with OS X. They both declare the same struct.

One of pgm or crossroads needs to be modified.

@2bits 2bits pushed a commit to 2bits/homebrew that referenced this issue Oct 2, 2012

nibbles 2bits crossroads: fix pgm build errors
crossroads builds an internal libpgm from source, but that causes
build errors because of a conflicting struct definition with OSX
`netinet.h`.  So instead of dealing with that, link crossroads
against our libpgm-5.2 which builds without error.  Add a couple
of ENV vars to override `pkg-config` and help crossroads find
the libpgm we now depend on, which it can't find otherwise because
it's looking for `openpgm-5.1.pc` and we offer `openpgm-5.2.pc`.
Crossroads passes `make check` on 10.8.2 with XCode-4.5.

Fixes #15217
b0949c7
Contributor

2bits commented Oct 2, 2012

That should fix it for you. I now have it depend on Homebrew's libpgm-5.2, not their internal libpgm-5.1 which doesn't compile. Thanks for the bug report.

@adamv adamv closed this in 47cfcad Oct 2, 2012

@snakeyroc3 snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012

@adamv nibbles 2bits + adamv crossroads: fix pgm build errors
crossroads builds an internal libpgm from source, but that causes
build errors because of a conflicting struct definition with OSX
`netinet.h`.  So instead of dealing with that, link crossroads
against our libpgm-5.2 which builds without error.  Add a couple
of ENV vars to override `pkg-config` and help crossroads find
the libpgm we now depend on, which it can't find otherwise because
it's looking for `openpgm-5.1.pc` and we offer `openpgm-5.2.pc`.
Crossroads passes `make check` on 10.8.2 with XCode-4.5.

Fixes #15217

Closes #15255.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
6305618

@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016

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