-
Notifications
You must be signed in to change notification settings - Fork 3
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
won't build on OpenBSD #8
Comments
I'm running OpenBSD 6.0-stable amd64, GHC 7.10.3, cabal lib 1.22.8.0, BerkeleyDB 4.6.21p3v0. |
I tried both |
Can you verify you've had BerkeleyDB installed in your system? Which system prefix did you install it to? From the error it looks like the names can't be found (but they are actually in the file); can you download the package from here https://hackage.haskell.org/package/BerkeleyDB and try installing from that local copy? |
BerkeleyDB is installed. Its in /usr/local, see below:
I just downloaded the tarball, extracted, and ran |
OK, let me take a look over the weekend and then get back to you. |
Tested on Mac OS (unfortunately don't have access on an OpenBSD) without any problem. Can you do |
Here you are:
And the install version:
|
Thanks, I appreciate it! |
Sorry for coming back to this so late - can you check in your |
ok, I checked out the code from the repo
Taking the first undeclared constant and searching the codebase we see this:
|
The |
Gotcha. I'll grab the BerkeleyDB code used by the OpenBSD port and take a look.
…On 11/21, Lingnan Dai wrote:
The db.h is from your BerkeleyDB installation (not related to haskell).
The haskell code is trying to read these preprocessor constants but
fails.
—
You are receiving this because you authored the thread.
Reply to this email directly, [1]view it on GitHub, or [2]mute the
thread.
References
1. #8 (comment)
2. https://github.com/notifications/unsubscribe-auth/AADQusUZSzlCpmu69hB2U63e7cmYndmHks5rAj0WgaJpZM4KacnB
|
Looks like the OpenBSD port grabs the source from: http://download.oracle.com/berkeley-db/db-4.6.21.tar.gz and then applies 4 patches to it: The first 'undeclared' constant from the above list does show up:
|
Can you check the installed header file in your system rather than those in the build directory? |
Yes.
|
Can you check /usr/include/db.h? |
It does NOT include those defines, see:
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/include/db.h?rev=1.12&content-type=text/x-cvsweb-markup
…On 12/08, Lingnan Dai wrote:
Can you check /usr/include/db.h?
—
You are receiving this because you authored the thread.
Reply to this email directly, [1]view it on GitHub, or [2]mute the
thread.
References
1. #8 (comment)
2. https://github.com/notifications/unsubscribe-auth/AADQurEq2jOLqu94epAi5NnuwwwV-0d9ks5rGJlegaJpZM4KacnB
|
I'm afraid that's the problem here... I'll see if I can remove this dependency altogether - but for the moment I'm closing this since it's not clear how to move on for OpenBSD with only small fix. |
Makes sense. Thanks for giving this some thought!
|
VIMonad looks awesome, so I thought I'd try it on my laptop. I was able to build xmonad, but xmonad-contrib isn't cooperating:
I tried ripping out the code that depends on BerkeleyDB, the CIM stuff, to see if I could build it without that feature, but soon realized the surgery wouldn't require more knowledge of the code that I currently have.
So, just in case you're interested, I thought I'd share.
The text was updated successfully, but these errors were encountered: