Opened 12 years ago

Closed 12 years ago

#34376 closed defect (fixed)

encfs @1.7.4: configure fails to find boost when using custom prefix

Reported by: tj.trevelyan@… Owned by: Markus.Ueberall@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: encfs

Description

Hello,

I can't convince encfs to compile, see attached log.

Before creating this log, and opening this ticket, I did:

  • port selfupdate
  • port upgrade outdated
  • port clean encfs
  • then: port -dv install encfs

I tried search for existing tickets with similar problems, but only found stuff that was 3 years old.

The only thing that might be unusual about my setup is that I installed macports into /opt/ports

Attachments (1)

encfs_debug.log (32.1 KB) - added by tj.trevelyan@… 12 years ago.
Output from port -dv install encfs

Download all attachments as: .zip

Change History (10)

Changed 12 years ago by tj.trevelyan@…

Attachment: encfs_debug.log added

Output from port -dv install encfs

comment:1 Changed 12 years ago by tj.trevelyan@…

Cc: tj.trevelyan@… added

Cc Me!

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added; tj.trevelyan@… removed
Keywords: encfs removed
Owner: changed from macports-tickets@… to Markus.Ueberall@…

The relevant messages in the log seem to be:

checking for boostlib >= 1.34... yes
checking whether the Boost::System library is available... yes
configure: WARNING: BOOST_CPPFLAGS
checking whether the Boost::Serialization library is available... yes
configure: error: Could not link against  !

One might ask: what about BOOST_CPPFLAGS? What could not be linked against? Curious.

It installs fine on my system, which is OS X 10.6.8 with Xcode 3.2.6. That suggests perhaps it's a compiler issue, and you could try using a different compiler as a workaround.

comment:3 in reply to:  2 Changed 12 years ago by tj.trevelyan@…

There is no BOOST_CPPFLAGS set in the shell I call port from. If it's set, it being done in the port process.

I tried both the llvm and apple-gcc compiler, as documented on that page for Xcode 4.2 and above. I got the same error.

If you want to see BOOST_CPPFLAGS, then please tell what I should do so that port will echo it.

comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

I only meant that the error messages that the port printed out—"WARNING: BOOST_CPPFLAGS" and "Could not link against !"—seem to be incomplete, and I was commenting that that was curious. I don't know what it means, why it does that on your system but not mine, or how to fix it. Hopefully the port's maintainer, Markus.Ueberall, to whom this ticket is assigned, will have some ideas.

comment:5 in reply to:  4 Changed 12 years ago by Markus.Ueberall@…

Replying to ryandesign@…:

Hopefully the port's maintainer, Markus.Ueberall, to whom this ticket is assigned, will have some ideas.

I'm afraid I don't use Lion (will stay on SL until ML gets released), so I don't have the means to locally reproduce these messages. What I could do is experiment with different revisions of boostlib next week (hoping that it's related to that), but then so can the original reporter...

comment:6 Changed 12 years ago by tj.trevelyan@…

Could you please point me to a page on how to do that? and I try to give it a go.

comment:7 Changed 12 years ago by tj.trevelyan@…

Hi all,

symlinking /opt/local to /opt/ports (where I installed macports) fixed this. That means that /opt/local is hardcoded somewhere in encfs' build, does it not?

After installing encfs, I removed the /opt/local symlink and encfs continued to work. So it was only needed at build time.

Regards, Thorben

comment:8 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Thanks for that tip. Yes, that seems to be the problem. Unfortunately I think the boost developers distribute a snippet that explicitly searches /opt/local and /usr/local for dependencies, so that nonsense makes its way into many programs that use boost, and need to be patched out in each such program.

comment:9 Changed 12 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Summary: encfs 1.7.4 not compiling on Lion 10.7.3 (Xcode 4.3.2)encfs @1.7.4: configure fails to find boost when using custom prefix

r96858 should be all that's needed here.

Note: See TracTickets for help on using tickets.