Opened 13 years ago

Closed 11 years ago

#27738 closed defect (worksforme)

webkit-gtk parallel build issue

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: myschizobuddy@…, jeremyhu (Jeremy Huddleston Sequoia)
Port: webkit-gtk

Description

webkit-gtk has a strange build problem for me on Snow Leopard. I get this error:

  CXX    JavaScriptCore/pcre/libJavaScriptCore_la-pcre_tables.lo
In file included from JavaScriptCore/pcre/pcre_tables.cpp:73:
JavaScriptCore/pcre/chartables.c:13: error: conflicting declaration 'const unsigned char jsc_pcre_default_tables [0u]'
JavaScriptCore/pcre/pcre_internal.h:382: error: 'jsc_pcre_default_tables' has a previous declaration as 'const unsigned char jsc_pcre_default_tables [480]'
JavaScriptCore/pcre/chartables.c:32: error: expected primary-expression at end of input
JavaScriptCore/pcre/chartables.c:32: error: expected `}' at end of input
make[1]: *** [JavaScriptCore/pcre/libJavaScriptCore_la-pcre_tables.lo] Error 1
make: *** [all] Error 2

Line 382 of pcre_internal.h reads:

extern const unsigned char jsc_pcre_default_tables[tables_length];

And earlier in that file we have:

#define cbit_length   96      /* Length of the cbits table */
#define cbits_offset  256
#define ctypes_offset (cbits_offset + cbit_length)
#define tables_length (ctypes_offset + 128)

So that looks fine. But in chartables.c on line 13 we have:

const unsigned char jsc_pcre_default_tables[0] = {

That's wrong. And in fact, chartables.c ends with the line:

/* This table is a case flipping table. */

(There should be a lot more after that line.)

If I manually run dftables (the program that creates chartables.c), a complete correct-looking file is created.

If I delete chartables.c and rerun the port install, it recreates chartables.c correctly.

I think it's a parallel build issue. dftables tries to read values from pcre_internal.h, and this will fail if pcre_internal.h has not been written yet.

Change History (1)

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

Cc: jeremyhu@… added
Resolution: worksforme
Status: newclosed

I guess a newer version of webkit-gtk fixed this; I haven't seen this problem in awhile. Please re-open if it's still a problem for anyone.

Note: See TracTickets for help on using tickets.