Opened 12 years ago

Closed 12 years ago

#32011 closed defect (fixed)

protobuf-python26: error: 'google/protobuf/descriptor.h' file not found

Reported by: thekilon@… Owned by: blair (Blair Zajac)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: protobuf-python26

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Macports can't install protobuf-python26 on Lion.

here is the log file

http://www.pasteall.org/26232

I tried both my macs I am getting exactly the same error , both having Lion installed and of course the latest Xcode

Tried this

sudo port clean protobuf-python26
sudo port install protobuf-python26 configure.compiler=llvm-gcc-4.2

and this

sudo port clean protobuf-python26
sudo port install apple-gcc42
sudo port install protobuf-python26 configure.compiler=apple-gcc-4.2 configure.cxx=g++-apple-4.2

still the same error

another use that tries the same thing but from snow leopard does not have this issue

Attachments (1)

main.log (23.1 KB) - added by thekilon@… 12 years ago.
error log

Download all attachments as: .zip

Change History (8)

Changed 12 years ago by thekilon@…

Attachment: main.log added

error log

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

Cc: ryandesign@… added
Description: modified (diff)
Keywords: protobuf python 26 2.6 removed
Milestone: MacPorts 2.0.4
Owner: changed from macports-tickets@… to blair@…
Priority: HighNormal
Summary: Error: Failed to install protobuf-python26protobuf-python26: error: 'google/protobuf/descriptor.h' file not found

You are certain the error "error: 'google/protobuf/descriptor.h' file not found" is the same when using llvm-gcc-4.2? That file should have been provided by dependency protobuf-cpp (was it? -- check with "port contents protobuf-cpp") and I was going to guess the error was because you're using clang, and clang doesn't use CPATH / LIBRARY_PATH, but that wouldn't affect llvm-gcc-4.2.

comment:2 Changed 12 years ago by blair (Blair Zajac)

Thanks, I can reproduce it. I have the package installed on Lion, but now it fails to compile.

Commenting out all the PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp lines in the Portfile gets it to compile, but it should continue to work.

comment:3 Changed 12 years ago by blair (Blair Zajac)

Status: newassigned

comment:4 Changed 12 years ago by blair (Blair Zajac)

Found a fix, working on a patch now.

comment:5 in reply to:  1 Changed 12 years ago by thekilon@…

Replying to ryandesign@…:

You are certain the error "error: 'google/protobuf/descriptor.h' file not found" is the same when using llvm-gcc-4.2? That file should have been provided by dependency protobuf-cpp (was it? -- check with "port contents protobuf-cpp") and I was going to guess the error was because you're using clang, and clang doesn't use CPATH / LIBRARY_PATH, but that wouldn't affect llvm-gcc-4.2.

yes ryan the file does exist, and yes it reports the same error, don't know why it can't compile it. Maybe blair does ;) thank you both for responding so quickly.

I was trying to compile mypaint on Lion and came against this error but even if i try to install it separately again I get the error.

comment:6 Changed 12 years ago by blair (Blair Zajac)

Fixed in r87096. Your next 'port -v sync' that updates your Portfiles should fix it.

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

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.