New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #33496 (closed defect: invalid)

Opened 3 years ago

Last modified 3 years ago

tiff @3.9.5_0 Build error

Reported by: Skratchie@… Owned by: waqar@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc: ryandesign@…
Port: tiff

Description (last modified by ryandesign@…) (diff)

When trying to upgrade tiff on Mac OS Lion with the newest XCode 4.3 from the App store via

sudo port upgrade tiff

I get

Error: Target org.macports.build returned: shell command failed (see log for details)

looking at the log, I find:

:info:build tiffgt.c:35:11: fatal error: 'OpenGL/gl.h' file not found
:info:build # include <OpenGL/gl.h>

The log is attached.

Attachments

main.log (5.5 KB) - added by Skratchie@… 3 years ago.
the log
main.2.log (71.9 KB) - added by Skratchie@… 3 years ago.
config.log (70.1 KB) - added by Skratchie@… 3 years ago.

Change History

comment:1 Changed 3 years ago by Skratchie@…

  • Cc Skratchie@… added

Cc Me!

comment:2 Changed 3 years ago by ryandesign@…

  • Owner changed from macports-tickets@… to waqar@…
  • Cc Skratchie@… removed
  • Description modified (diff)
  • Port set to tiff

comment:3 Changed 3 years ago by ryandesign@…

  • Cc ryandesign@… added

The log is incomplete. Please "sudo port clean tiff" and try again and attach the new complete main.log if it fails again.

Changed 3 years ago by Skratchie@…

the log

comment:4 Changed 3 years ago by Skratchie@…

added log after "sudo port clean tiff". sorry, didn't think of that.

comment:5 Changed 3 years ago by ryandesign@…

That's still an incomplete log -- it contains lines saying "Skipping completed". Please "sudo port clean tiff", then run "sudo port install tiff" only once. Verify that the main.log file does not contain any occurrences of the string "Skipping completed ". Then, without running any other port command in between, attach the main.log to this ticket.

It builds fine for me on Snow Leopard, and Lion has been around since last year and we haven't heard any other complaints about this, so there must be something unique about your system that's causing this; hopefully the full main.log file will contain enough details to identify it.

Actually, please also attach the config.log file; it may provide further insight. It's in the directory identified by the command "port work tiff".

Changed 3 years ago by Skratchie@…

comment:6 Changed 3 years ago by Skratchie@…

... I uploaded the wrong file. The new one has no "skipping" ...

Changed 3 years ago by Skratchie@…

comment:7 Changed 3 years ago by ryandesign@…

Thanks. Your logs look pretty normal, up to the point where they cannot find the OpenGL headers:

:info:build tiffgt.c:35:11: fatal error: 'OpenGL/gl.h' file not found
:info:build # include <OpenGL/gl.h>
:info:build           ^
:info:build 1 error generated.

The OpenGL framework is an integral part of OS X. Is it there? It should be in /System/Library/Frameworks/OpenGL.framework. gl.h specifically should be in /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl.h. If these are missing, you may need to reinstall OS X.

comment:8 follow-up: ↓ 9 Changed 3 years ago by Skratchie@…

The framework is there, but without the folder "Headers":

>ls /System/Library/Frameworks/OpenGL.framework/Versions/A/        
Libraries	OpenGL		PlugIns		Resources	_CodeSignature

Interestingly, /System/Library/Frameworks/OpenCL.framework/Versions/A/Headers/cl_gl.h seems to be there:

>locate gl.h
/System/Library/Frameworks/OpenCL.framework/Versions/A/Headers/cl_gl.h
/opt/local/include/Qt/qgl.h
/opt/local/include/QtOpenGL/qgl.h
/opt/local/include/libgnomeprint-2.2/libgnomeprint/gnome-pgl.h
/opt/local/share/doc/qt4/html/activeqt-opengl.html
/opt/local/share/doc/qt4/html/examples-opengl.html
/opt/local/share/doc/qt4/html/opengl-hellogl.html
/opt/local/share/doc/qt4/html/qaxserver-demo-opengl.html
/opt/local/share/doc/qt4/html/qgl.html
/opt/local/share/doc/qt4/html/qt-embeddedlinux-opengl.html
/opt/local/share/doc/qt4/html/qtopengl.html
/opt/local/share/doc/qt4/html/windowsce-opengl.html
/opt/local/share/gtk-doc/html/libgnomeprint/libgnomeprint-gnome-pgl.html
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt3-mac/work/qt-mac-free-3.3.8/doc/html/opengl.html
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt3-mac/work/qt-mac-free-3.3.8/doc/html/qaxserver-demo-opengl.html
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt3-mac/work/qt-mac-free-3.3.8/doc/html/qaxserver-example-opengl.html
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt3-mac/work/qt-mac-free-3.3.8/doc/html/qgl.html
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt3-mac/work/qt-mac-free-3.3.8/include/qgl.h
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt3-mac/work/qt-mac-free-3.3.8/src/opengl/qgl.h
/opt/local/var/macports/software/libgnomeprint/2.18.8_0/opt/local/include/libgnomeprint-2.2/libgnomeprint/gnome-pgl.h
/opt/local/var/macports/software/libgnomeprint/2.18.8_0/opt/local/share/gtk-doc/html/libgnomeprint/libgnomeprint-gnome-pgl.html
/opt/local/var/macports/software/qt4-mac/4.7.3_0+quartz/opt/local/include/Qt/qgl.h
/opt/local/var/macports/software/qt4-mac/4.7.3_0+quartz/opt/local/include/QtOpenGL/qgl.h
/opt/local/var/macports/software/qt4-mac/4.7.3_0+quartz/opt/local/share/doc/qt4/html/activeqt-opengl.html
/opt/local/var/macports/software/qt4-mac/4.7.3_0+quartz/opt/local/share/doc/qt4/html/examples-opengl.html
/opt/local/var/macports/software/qt4-mac/4.7.3_0+quartz/opt/local/share/doc/qt4/html/opengl-hellogl.html
/opt/local/var/macports/software/qt4-mac/4.7.3_0+quartz/opt/local/share/doc/qt4/html/qaxserver-demo-opengl.html
/opt/local/var/macports/software/qt4-mac/4.7.3_0+quartz/opt/local/share/doc/qt4/html/qgl.html
/opt/local/var/macports/software/qt4-mac/4.7.3_0+quartz/opt/local/share/doc/qt4/html/qt-embeddedlinux-opengl.html
/opt/local/var/macports/software/qt4-mac/4.7.3_0+quartz/opt/local/share/doc/qt4/html/qtopengl.html
/opt/local/var/macports/software/qt4-mac/4.7.3_0+quartz/opt/local/share/doc/qt4/html/windowsce-opengl.html
/usr/X11/include/GL/gl.h
/usr/X11/include/GL/mesa_wgl.h

comment:9 in reply to: ↑ 8 Changed 3 years ago by ryandesign@…

Replying to Skratchie@…:

The framework is there, but without the folder "Headers":

>ls /System/Library/Frameworks/OpenGL.framework/Versions/A/        
Libraries	OpenGL		PlugIns		Resources	_CodeSignature

You'll have to restore that from your backups then, or reinstall OS X.

Interestingly, /System/Library/Frameworks/OpenCL.framework/Versions/A/Headers/cl_gl.h seems to be there:

That's a different file and a different framework; not directly related.

comment:10 Changed 3 years ago by Skratchie@…

Crazy -- I restored the folder from TimeMachine and now everything works fine. From the time-stamps in TimeMachine it seems like the Lion-update removed the folder...

Thanks a lot for your help!

comment:11 Changed 3 years ago by ryandesign@…

  • Status changed from new to closed
  • Resolution set to invalid

Glad that worked!

comment:12 Changed 3 years ago by eusden.shing@…

For anyone else having this issue -

XCode 4.3 stopped distributing the proprietary headers according to https://github.com/mxcl/homebrew/issues/9179#issuecomment-4006785

You can get the OpenGL headers by installing Command Line Tools from Apple at https://developer.apple.com/downloads/index.action?name=for%20Xcode%20-

After that you should be able to do sudo port install tiff

comment:13 Changed 3 years ago by ryandesign@…

Installing the command line tools is and has always been required; consult our Guide and other documentation.

Note: See TracTickets for help on using tickets.