Opened 11 years ago

Last modified 11 years ago

#39885 closed defect

webkit-gtk 2.0.4 fails to build under macports 2.2.0 on Lion — at Initial Version

Reported by: andrew.long@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc:
Port: webkit-gtk

Description

Another issue in webkit-gtk, or another example of an existing one?

Trying to install chat-gnome after cleaning out all ports and doing re-install, fails to build webkit-gtk 2.0.4 (most of the other ports invoked seem to come as pre-built binaries). looking at the log file, there are syntax errors being reported in .H files loaded from some of the standard 'include' libraries.

In particular, first reports are from /usr/lib/clang/4.2/incldue/stddef.h at 31 & 33

:info:build /usr/lib/clang/4.2/include/stddef.h:31: syntax error, unexpected '(' in 'typedef typeof(((int*)0)-((int*)0)) ptrdiff_t;' at '(' :info:build /usr/lib/clang/4.2/include/stddef.h:35: syntax error, unexpected SIZEOF in 'typedef typeof(sizeof(int)) size_t;' at 'sizeof'

and then from /usr/include/time.h at 131

:info:build /usr/include/time.h:131: syntax error, unexpected identifier in 'size_t strftime(char * restrict , size_t, const char * restrict, const struct tm * restrict) asm("_" "strftime" );' at 'size_t' :info:build /usr/include/time.h:131: syntax error, unexpected ',', expecting identifier or '(' in 'size_t strftime(char * restrict, size_t, const char * restrict, const struct tm * restrict) asm("_" "strftime" );' at ',' :info:build /usr/include/time.h:131: syntax error, unexpected ',', expecting identifier or '(' in 'size_t strftime(char * restrict, size_t, const char * restrict, const struct tm * restrict) asm("_" "strftime" );' at ',' :info:build /usr/include/time.h:131: syntax error, unexpected ')', expecting identifier or '(' in 'size_t strftime(char * restrict, size_t, const char * restrict, const struct tm * restrict) asm("_" "strftime" );' at ')'

and then there's multiple reports in /usr/incldue/pthread.h , unistd.h, stdio.h

This is not new behaviour. I have been having problems with webkit-gtk for some time now and have just been limping on without pressing the issue. However I thought that following the recent upgrade to macports 2.2.0 I should raise a ticket.

Sequence of events as follows:-

  1. sudo port selfupdate
  2. sudo port upgrade outdated - fails in webkit-gtk
  3. sudo port uninstall installed
  4. sudo port clean all
  5. make default copies of macpots.conf & variants.conf (previous variants.conf had +universal & +bash-completion)
  6. sudo port install <some basic ports>
  7. sudo port install xchat-gnome - fails as described above

Regards, Andy

Change History (0)

Note: See TracTickets for help on using tickets.