<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>88407</bug_id>
          
          <creation_ts>2012-06-06 03:25:39 -0700</creation_ts>
          <short_desc>WebKit-GTK 1.8.1 does not build on OS X 10.7</short_desc>
          <delta_ts>2014-01-04 11:41:45 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>126492</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Timo Dörr">timo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>berto</cc>
    
    <cc>cgarcia</cc>
    
    <cc>commit-queue</cc>
    
    <cc>jeremyhu</cc>
    
    <cc>pnormand</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>642331</commentid>
    <comment_count>0</comment_count>
    <who name="Timo Dörr">timo</who>
    <bug_when>2012-06-06 03:25:39 -0700</bug_when>
    <thetext>Latest WebKit-GTK 1.8.1 (maybe earlier versions, too) does not build on OS X 10.7 Lion.

The error message I get is:

   + make -j2
  GEN    DerivedSources/WebCore/idl_supplemental_dependencies
  GEN    DerivedSources/webkit/webkitdom.h
  GEN    DerivedSources/webkit/webkitdomdefines.h
  GEN    stamp-webkitmarshal.cpp
  GEN    stamp-webkitmarshal.h
i686-apple-darwin11-llvm-gcc-4.2: warning: &apos;-x c++&apos; after last input file has no effect
i686-apple-darwin11-llvm-gcc-4.2: no input files
Can&apos;t call method &quot;fileName&quot; without a package or object reference at Source/WebCore/bindings/scripts/IDLParser.pm line 112.
make: *** [DerivedSources/WebCore/idl_supplemental_dependencies] Error 1
 

I&apos;ve found via google that someone else already had the same error and posted it at the webkit-help mailinglist, but without responses: http://lists.webkit.org/pipermail/webkit-help/2012-March/003025.html
 
Here are the parameters I used with the configure script:
 
./configure --prefix=&quot;/Users/td/banshee-dev/bockbuild/profiles/banshee/build-root/_install&quot; --disable-video --disable-geolocation --disable-xslt --with-target=quartz --with-gtk=2.0 --disable-gtk-doc
 
and the configure report:
 
WebKit was configured with the following options:
 
Build configuration:
 Enable debugging (slow)                                  : no
 Compile with debug symbols (slow)                        : no
 Enable debug features (slow)                             : no
 Enable GCC build optimization                            : yes
 Code coverage support                                    : no
 Unicode backend                                          : icu
 Font backend                                             : freetype
 Optimized memory allocator                               : yes
 Accelerated Compositing                                  : no
 
Features:
 WebGL                                                    : no
 Blob support                                             : yes
 DOM mutation observer support                            : no
 DeviceOrientation support                                : no
 Directory upload                                         : no
 Fast Mobile Scrolling                                    : no
 JIT compilation                                          : autodetect
 Filters support                                          : yes
 Geolocation support                                      : no
 JavaScript debugger/profiler support                     : yes
 Gamepad support                                          : no
 MathML support                                           : yes
 Media source                                             : no
 Media statistics                                         : no
 MHTML support                                            : no
 HTML5 channel messaging support                          : yes
 HTML5 meter element support                              : yes
 HTML5 microdata support                                  : no
 Page Visibility API support                              : no
 HTML5 progress element support                           : yes
 HTML5 client-side session and persistent storage support : yes
 SQL client-side database storage support                 : yes
 HTML5 datagrid support                                   : no
 HTML5 data transfer items support                        : no
 HTML5 FileSystem API support                             : no
 Quota API support                                        : no
 HTML5 sandboxed iframe support                           : yes
 HTML5 video element support                              : no
 HTML5 track element support                              : no
 Fullscreen API support                                   : yes
 Media stream support                                     : no
 Icon database support                                    : yes
 Image resizer support                                    : no
 Link prefetch support                                    : no
 Opcode stats                                             : no
 Shadow DOM support                                       : yes
 SharedWorkers support                                    : yes
 Color input support                                      : no
 Speech input support                                     : no
 SVG support                                              : yes
 SVG fonts support                                        : yes
 Web Audio support                                        : no
 Web Sockets support                                      : yes
 Web Timing support                                       : no
 Web Workers support                                      : yes
 XSLT support                                             : no
 Spellcheck support                                       : yes
 Animation API                                            : no
 RequestAnimationFrame support                            : yes
 Touch Icon Loading support                               : no
 Register Protocol Handler support                        : no
 WebKit2 support                                          : no
 WebKit2 plugin process                                   : no
 
GTK+ configuration:
 GTK+ version                                             : 2.0
 GDK target                                               : quartz
 Hildon UI extensions                                     : no
 GStreamer version                                        : 0.10
 Introspection support                                    : no
 Generate documentation                                   : no


I have also tried to use clang as a compiler, which gives a very similar error:
$ make
  GEN    DerivedSources/WebCore/idl_supplemental_dependencies
clang: error: no input files
Can&apos;t call method &quot;fileName&quot; without a package or object reference at Source/WebCore/bindings/scripts/IDLParser.pm line 112.
make: *** [DerivedSources/WebCore/idl_supplemental_dependencies] Error 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>698913</commentid>
    <comment_count>1</comment_count>
    <who name="Jeremy Huddleston Sequoia">jeremyhu</who>
    <bug_when>2012-08-17 22:09:12 -0700</bug_when>
    <thetext>I&apos;ve been hitting this as well in trying to update MacPorts&apos; webkit-gtk.  We&apos;ve been stuck at 1.6.3 because of this issue...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>698927</commentid>
    <comment_count>2</comment_count>
    <who name="Jeremy Huddleston Sequoia">jeremyhu</who>
    <bug_when>2012-08-17 23:34:59 -0700</bug_when>
    <thetext>Here&apos;s the actual command that is used to generate idl_supplemental_dependencies, with an extra --verbose:

~/src/macports/dports/www/webkit-gtk/work/webkit-1.8.2 $ /opt/local/bin/perl -I./Source/WebCore/bindings/scripts ./Source/WebCore/bindings/scripts/resolve-supplemental.pl --defines &quot;LANGUAGE_JAVASCRIPT=1 ENABLE_CHANNEL_MESSAGING=1   ENABLE_METER_TAG=1 ENABLE_PROGRESS_TAG=1 ENABLE_JAVASCRIPT_DEBUGGER=1  ENABLE_SQL_DATABASE=1 ENABLE_DATALIST=1            ENABLE_VIDEO=1   ENABLE_FULLSCREEN_API=1   ENABLE_XSLT=1 ENABLE_WORKERS=1 ENABLE_SHADOW_DOM=1 ENABLE_SHARED_WORKERS=1 ENABLE_FILTERS=1 ENABLE_GEOLOCATION=1 ENABLE_CLIENT_BASED_GEOLOCATION=1 ENABLE_MATHML=1  ENABLE_SVG=1 ENABLE_SVG_FONTS=1  ENABLE_WEB_SOCKETS=1 ENABLE_BLOB=1  ENABLE_REQUEST_ANIMATION_FRAME=1 ENABLE_WEBGL=1     &quot; --idlFilesList ./DerivedSources/WebCore/idl_files_list --supplementalDependencyFile DerivedSources/WebCore/idl_supplemental_dependencies --verbose
Resolving [Supplemental=XXX] dependencies in all IDL files.
 | *** Starting to parse -n...
 |
i686-apple-darwin11-llvm-gcc-4.2: warning: &apos;-x c++&apos; after last input file has no effect
i686-apple-darwin11-llvm-gcc-4.2: no input files
 | *** Finished parsing!
Can&apos;t call method &quot;fileName&quot; without a package or object reference at Source/WebCore/bindings/scripts/IDLParser.pm line 112.

---

That &quot;Starting to parse&quot; line comes from:
print &quot; | *** Starting to parse $fileName...\n |\n&quot; unless $beQuiet;

which shows that $fileName is being set to &quot;-n&quot; for some reason...

---

And here&apos;s why:

 $ head ./DerivedSources/WebCore/idl_files_list
-n
./Source/WebCore/css/CSSCharsetRule.idl
./Source/WebCore/css/CSSFontFaceRule.idl
./Source/WebCore/css/CSSImportRule.idl
./Source/WebCore/css/CSSMediaRule.idl
./Source/WebCore/css/CSSPageRule.idl
./Source/WebCore/css/CSSPrimitiveValue.idl
./Source/WebCore/css/CSSRule.idl
./Source/WebCore/css/CSSRuleList.idl
./Source/WebCore/css/CSSStyleDeclaration.idl</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>698928</commentid>
    <comment_count>3</comment_count>
    <who name="Jeremy Huddleston Sequoia">jeremyhu</who>
    <bug_when>2012-08-17 23:41:47 -0700</bug_when>
    <thetext>Which comes from:

webkit-1.8.2 $ sudo make V=1
echo -n &gt; ./DerivedSources/WebCore/idl_files_list
...

Workaround is to use /bin/echo rather than the shell&apos;s builtin.  If /bin/sh is the shell being used by make, then &quot;echo -n&quot; will simply echo &quot;-n&quot; ...

sed -i &apos;s:echo -n:/bin/echo -n:g&apos; GNUmakefile{.in,}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>698929</commentid>
    <comment_count>4</comment_count>
    <who name="Jeremy Huddleston Sequoia">jeremyhu</who>
    <bug_when>2012-08-17 23:47:27 -0700</bug_when>
    <thetext>And it looks like the ultimate source of the issue is with Source/WebCore/GNUmakefile.am</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>721910</commentid>
    <comment_count>5</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2012-09-17 07:33:35 -0700</bug_when>
    <thetext>The first echo -n:

	$(AM_V_at)echo -n &gt; $(idl_files_list)

can be replaced by:

        &gt;$(idl_files_list)

And for:

        $(AM_V_at)($(foreach idl, $(dom_binding_idls), echo $(idl) &amp;&amp;) echo -n) &gt;&gt; $(idl_files_list)

Hum, not sure. My shell programming skills are rusty :) Is that echo -n call really needed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>964102</commentid>
    <comment_count>6</comment_count>
      <attachid>220304</attachid>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2014-01-03 08:11:37 -0800</bug_when>
    <thetext>Created attachment 220304
Patch

(In reply to comment #5)
&gt; $(AM_V_at)($(foreach idl, $(dom_binding_idls), echo $(idl) &amp;&amp;) echo -n) &gt;&gt; $(idl_files_list)

&gt; Hum, not sure. My shell programming skills are rusty :) Is that echo
&gt; -n call really needed?

That&apos;s because you need a final command after the last &amp;&amp;.

I think we can replace &apos;echo -n&apos; with &apos;true&apos; or &apos;:&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>964166</commentid>
    <comment_count>7</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2014-01-03 10:37:48 -0800</bug_when>
    <thetext>Committed r161267: &lt;http://trac.webkit.org/changeset/161267&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>220304</attachid>
            <date>2014-01-03 08:11:37 -0800</date>
            <delta_ts>2014-01-03 10:34:19 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>88407.diff</filename>
            <type>text/plain</type>
            <size>1903</size>
            <attacher name="Alberto Garcia">berto</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZwppbmRleCA3MDg4MWU2Li42ZGM3NjJhIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViQ29y
ZS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTQg
QEAKKzIwMTQtMDEtMDMgIEFsYmVydG8gR2FyY2lhICA8YmVydG9AaWdhbGlhLmNvbT4KKworICAg
ICAgICBXZWJLaXQtR1RLIDEuOC4xIGRvZXMgbm90IGJ1aWxkIG9uIE9TIFggMTAuNworICAgICAg
ICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9ODg0MDcKKworICAgICAg
ICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBSZXBsYWNlIG5vbi1wb3J0
YWJsZSAnZWNobyAtbicgd2l0aCAndHJ1ZScuCisKKyAgICAgICAgKiBHTlVtYWtlZmlsZS5hbToK
KwogMjAxNC0wMS0wMyAgQW5kcmVhcyBLbGluZyAgPGFrbGluZ0BhcHBsZS5jb20+CiAKICAgIC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zL3NjcmlwdHMvcHJlcHJvY2Vzcy1pZGxzLnBsIC0tZGVm
aW5lcyAiTEFOR1VBR0VfSkFWQVNDUklQVD0xICQoZmVhdHVyZV9kZWZpbmVzKSIgLS1pZGxGaWxl
c0xpc3QgJChpZGxfZmlsZXNfbGlzdCkgLS13aW5kb3dDb25zdHJ1Y3RvcnNGaWxlICQod2luZG93
X2NvbnN0cnVjdG9yc19maWxlKSAtLXdvcmtlckdsb2JhbFNjb3BlQ29uc3RydWN0b3JzRmlsZSAk
KHdvcmtlcmdsb2JhbHNjb3BlX2NvbnN0cnVjdG9yc19maWxlKSAtLXNoYXJlZFdvcmtlckdsb2Jh
bFNjb3BlQ29uc3RydWN0b3JzRmlsZSAkKHNoYXJlZHdvcmtlcmdsb2JhbHNjb3BlX2NvbnN0cnVj
dG9yc19maWxlKSAtLWRlZGljYXRlZFdvcmtlckdsb2JhbFNjb3BlQ29uc3RydWN0b3JzRmlsZSAk
KGRlZGljYXRlZHdvcmtlcmdsb2JhbHNjb3BlX2NvbnN0cnVjdG9yc19maWxlKSAtLXN1cHBsZW1l
bnRhbERlcGVuZGVuY3lGaWxlICRACiAKIC5QSE9OWTogJCh3aW5kb3dfY29uc3RydWN0b3JzX2Zp
bGUpICQod29ya2VyZ2xvYmFsc2NvcGVfY29uc3RydWN0b3JzX2ZpbGUpICQoc2hhcmVkd29ya2Vy
Z2xvYmFsc2NvcGVfY29uc3RydWN0b3JzX2ZpbGUpICQoZGVkaWNhdGVkd29ya2VyZ2xvYmFsc2Nv
cGVfY29uc3RydWN0b3JzX2ZpbGUpCg==
</data>
<flag name="review"
          id="244003"
          type_id="1"
          status="+"
          setter="cgarcia"
    />
          </attachment>
      

    </bug>

</bugzilla>