Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

crossroads failed to build on 10.8.2 #15217

Closed
hajile opened this Issue · 5 comments

4 participants

Ilya Epifanov 2bits Max Howell Adam Vandenberg
Ilya Epifanov
> 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
Ilya Epifanov

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

2bits

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

Max Howell
Owner

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 referenced this issue from a commit in 2bits/homebrew
2bits 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
2bits

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.

Adam Vandenberg adamv closed this issue from a commit
2bits 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

Closes #15255.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
47cfcad
Adam Vandenberg adamv closed this in 47cfcad
allen huang allenhuang referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
2bits 2bits referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
theirix theirix referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
snakeyroc3 snakeyroc3 referenced this issue from a commit in snakeyroc3/homebrew
2bits 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

Closes #15255.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
6305618
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.