<?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>29638</bug_id>
          
          <creation_ts>2009-09-22 05:13:14 -0700</creation_ts>
          <short_desc>link errors due to wrong UNICODE_LIBS on Ubuntu Jaunty</short_desc>
          <delta_ts>2009-09-22 09:25:34 -0700</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>PC</rep_platform>
          <op_sys>Linux</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>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Philippe Normand">pnormand</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>christian</cc>
    
    <cc>jmalonzo</cc>
    
    <cc>xan.lopez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>149010</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2009-09-22 05:13:14 -0700</bug_when>
    <thetext>On Jaunty icu-config --ldflags returns &quot;-lm -L/usr/lib -licui18n -licuuc -licudata -lm&quot;
On Fedora: -licui18n -licuuc -licudata -lpthread -lm

I had link errors caused by the presence of -L/usr/lib before -L/myprefix (where most of my webkit deps are installed( in libwebkit-1.0.la. 

Changing the call to icu-config to icu-config --ldflags-libsonly fixed the issue for me, thanks to Xan!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>149012</commentid>
    <comment_count>1</comment_count>
      <attachid>39913</attachid>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2009-09-22 05:32:08 -0700</bug_when>
    <thetext>Created attachment 39913
proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>149018</commentid>
    <comment_count>2</comment_count>
    <who name="Jan Alonzo">jmalonzo</who>
    <bug_when>2009-09-22 05:37:37 -0700</bug_when>
    <thetext>Hi Philippe. What&apos;s the error? I&apos;m using Debian and I have the same --ldflags as Ubuntu but no link errors. Can you post the errors here? 

Also in the future if your patch is for review, please mark it as r? so it will end up in the review queue. Please see http://webkit.org/coding/contributing.html for more info.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>149030</commentid>
    <comment_count>3</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2009-09-22 06:19:53 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Hi Philippe. What&apos;s the error? I&apos;m using Debian and I have the same --ldflags
&gt; as Ubuntu but no link errors. Can you post the errors here? 

The error (as he pasted it to me) is:

libtool: link: gcc -fno-strict-aliasing -I./JavaScriptCore/ForwardingHeaders -I./WebKit/gtk -I./WebKit/gtk -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type -Wformat -Wformat-security -Wno-format-y2k -Wundef -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-unused-parameter -Wno-parentheses -fno-exceptions -fvisibility=hidden -pthread -I/home/pnormand/gst/jhbuild/install/include/glib-2.0 -I/home/pnormand/gst/jhbuild/install/lib/glib-2.0/include -I/home/pnormand/gst/jhbuild/install/include/gtk-2.0 -I/home/pnormand/gst/jhbuild/install/lib/gtk-2.0/include -I/home/pnormand/gst/jhbuild/install/include/atk-1.0 -I/home/pnormand/gst/jhbuild/install/include/cairo -I/home/pnormand/gst/jhbuild/install/include/pango-1.0 -I/home/pnormand/gst/jhbuild/install/include/glib-2.0 -I/home/pnormand/gst/jhbuild/install/lib/glib-2.0/include -I/home/pnormand/gst/jhbuild/install/include/pixman-1 -I/home/pnormand/gst/jhbuild/install/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/home/pnormand/gst/jhbuild/install/include/libsoup-2.4 -I/home/pnormand/gst/jhbuild/install/include/glib-2.0 -I/home/pnormand/gst/jhbuild/install/lib/glib-2.0/include -I/usr/include/libxml2 -O2 -o Programs/unittests/testloading WebKit/gtk/tests/Programs_unittests_testloading-testloading.o -pthread  ./.libs/libwebkit-1.0.so -L/usr/lib -L/home/pnormand/gst/jhbuild/install/lib -lgobject-2.0 -lgthread-2.0 -lglib-2.0 /home/pnormand/gst/jhbuild/install/lib/libenchant.so /home/pnormand/gst/jhbuild/install/lib/libgailutil.so -lXext -lXinerama -lXrandr -lXcursor -lXcomposite -lXdamage -lXfixes /home/pnormand/gst/jhbuild/install/lib/libgstvideo-0.10.so /home/pnormand/gst/jhbuild/install/lib/libgstbase-0.10.so /home/pnormand/gst/jhbuild/install/lib/libgstreamer-0.10.so -ljpeg /home/pnormand/gst/jhbuild/install/lib/libxslt.so -lsqlite3 -licui18n -licuuc -licudata -lXt -lSM /home/pnormand/gst/jhbuild/install/lib/libgtk-x11-2.0.so /home/pnormand/gst/jhbuild/install/lib/libgdk-x11-2.0.so /home/pnormand/gst/jhbuild/install/lib/libatk-1.0.so /home/pnormand/gst/jhbuild/install/lib/libgdk_pixbuf-2.0.so /home/pnormand/gst/jhbuild/install/lib/libpangocairo-1.0.so /home/pnormand/gst/jhbuild/install/lib/libpangoft2-1.0.so /home/pnormand/gst/jhbuild/install/lib/libcairo.so /home/pnormand/gst/jhbuild/install/lib/libpixman-1.so -lpng12 -lXrender -lX11 /home/pnormand/gst/jhbuild/install/lib/libpango-1.0.so -lm /home/pnormand/gst/jhbuild/install/lib/libfontconfig.so /usr/lib/libfreetype.so -lexpat /home/pnormand/gst/jhbuild/install/lib/libsoup-2.4.so /home/pnormand/gst/jhbuild/install/lib/libgthread-2.0.so -lpthread -lrt /usr/lib/libxml2.so /usr/lib/libgnutls.so /usr/lib/libtasn1.so -lz /lib/libgcrypt.so /home/pnormand/gst/jhbuild/install/lib/libgio-2.0.so -lresolv /home/pnormand/gst/jhbuild/install/lib/libgobject-2.0.so /home/pnormand/gst/jhbuild/install/lib/libgmodule-2.0.so -ldl /home/pnormand/gst/jhbuild/install/lib/libglib-2.0.so -pthread -Wl,-rpath -Wl,/home/pnormand/gst/jhbuild/build/WebKit/.libs -Wl,-rpath -Wl,/home/pnormand/gst/jhbuild/install/lib -Wl,-rpath -Wl,/home/pnormand/gst/jhbuild/install/lib
/home/pnormand/gst/jhbuild/install/lib/libsoup-2.4.so: undefined reference to `g_main_context_push_thread_default&apos;
/home/pnormand/gst/jhbuild/install/lib/libgio-2.0.so: undefined reference to `g_mkstemp_full&apos;
/home/pnormand/gst/jhbuild/install/lib/libgio-2.0.so: undefined reference to `g_byte_array_unref&apos;
/home/pnormand/gst/jhbuild/install/lib/libgtk-x11-2.0.so: undefined reference to `g_array_get_element_size&apos;
/home/pnormand/gst/jhbuild/install/lib/libgio-2.0.so: undefined reference to `g_hostname_to_ascii&apos;
/home/pnormand/gst/jhbuild/install/lib/libgio-2.0.so: undefined reference to `g_byte_array_get_type&apos;
/home/pnormand/gst/jhbuild/install/lib/libgio-2.0.so: undefined reference to `g_error_new_valist&apos;
/home/pnormand/gst/jhbuild/install/lib/libgio-2.0.so: undefined reference to `g_ptr_array_new_with_free_func&apos;
/home/pnormand/gst/jhbuild/install/lib/libsoup-2.4.so: undefined reference to `g_main_context_pop_thread_default&apos;
/home/pnormand/gst/jhbuild/install/lib/libgtk-x11-2.0.so: undefined reference to `g_array_unref&apos;
/home/pnormand/gst/jhbuild/install/lib/libgio-2.0.so: undefined reference to `g_array_get_type&apos;
/home/pnormand/gst/jhbuild/install/lib/libgio-2.0.so: undefined reference to `g_main_context_get_thread_default&apos;
./.libs/libwebkit-1.0.so: undefined reference to `g_mapped_file_unref&apos;
/home/pnormand/gst/jhbuild/install/lib/libgio-2.0.so: undefined reference to `g_hostname_is_non_ascii&apos;
/home/pnormand/gst/jhbuild/install/lib/libsoup-2.4.so: undefined reference to `g_hostname_is_ip_address&apos;
collect2: ld returned 1 exit status
make[1]: *** [Programs/unittests/testloading] Error 1
make[1]: Leaving directory `/home/pnormand/gst/jhbuild/build/WebKit&apos;
make: *** [all] Error 2

&gt; 
&gt; Also in the future if your patch is for review, please mark it as r? so it will
&gt; end up in the review queue. Please see
&gt; http://webkit.org/coding/contributing.html for more info.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>149032</commentid>
    <comment_count>4</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2009-09-22 06:21:06 -0700</bug_when>
    <thetext>And the issue comes here:

-L/usr/lib -L/home/pnormand/gst/jhbuild/install/lib
-lgobject-2.0 -lgthread-2.0 -lglib-2.0

-L/usr/lib coming first, the system will first try to get the libraries from there, succeed, and use the wrong ones when linking.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>149056</commentid>
    <comment_count>5</comment_count>
    <who name="Christian Dywan">christian</who>
    <bug_when>2009-09-22 08:29:48 -0700</bug_when>
    <thetext>I see the same problem on archlinux 64bit and the fix suggested by Philippe solves it for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>149068</commentid>
    <comment_count>6</comment_count>
      <attachid>39913</attachid>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2009-09-22 09:25:14 -0700</bug_when>
    <thetext>Comment on attachment 39913
proposed patch

OK, let&apos;s do this :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>149069</commentid>
    <comment_count>7</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2009-09-22 09:25:34 -0700</bug_when>
    <thetext>Landed in r48636, closing.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>39913</attachid>
            <date>2009-09-22 05:32:08 -0700</date>
            <delta_ts>2009-09-22 09:25:14 -0700</delta_ts>
            <desc>proposed patch</desc>
            <filename>0001-build-Call-icu-config-with-ldflags-libsonly.patch</filename>
            <type>text/plain</type>
            <size>1371</size>
            <attacher name="Philippe Normand">pnormand</attacher>
            
              <data encoding="base64">RnJvbSBlZDVhY2QyMTVmYmUyMjU0YjAzMmE2Nzc5NmJmMDA2MjZlMzdlYmUwIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBQaGlsaXBwZSBOb3JtYW5kIDxwbm9ybWFuZEBpZ2FsaWEuY29t
PgpEYXRlOiBUdWUsIDIyIFNlcCAyMDA5IDE0OjI5OjM4ICswMjAwClN1YmplY3Q6IFtQQVRDSF0g
YnVpbGQ6IENhbGwgaWN1LWNvbmZpZyB3aXRoIGxkZmxhZ3MtbGlic29ubHkKCi0tLQogQ2hhbmdl
TG9nICAgICAgICAgICB8ICAgMTEgKysrKysrKysrKysKIGF1dG90b29scy93ZWJraXQubTQgfCAg
ICAyICstCiAyIGZpbGVzIGNoYW5nZWQsIDEyIGluc2VydGlvbnMoKyksIDEgZGVsZXRpb25zKC0p
CgpkaWZmIC0tZ2l0IGEvQ2hhbmdlTG9nIGIvQ2hhbmdlTG9nCmluZGV4IGEyNThiNDYuLjU4NTM2
YmMgMTAwNjQ0Ci0tLSBhL0NoYW5nZUxvZworKysgYi9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxNCBA
QAorMjAwOS0wOS0yMiAgUGhpbGlwcGUgTm9ybWFuZCAgPHBub3JtYW5kQGlnYWxpYS5jb20+CisK
KyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgQ2FsbCBpY3Ut
Y2NvbmZpZyB3aXRoIGxkZmxhZ3MtbGlic29ubHkgdG8gcHJldmVudAorICAgICAgICBoYXZpbmcg
YSAtTCBzdGF0ZW1lbnQgdGhhdCBjb3VsZCBvdmVycmlkZSBsaWJzCisgICAgICAgIGluc3RhbGxl
ZCBpbiBhbm90aGVyIHByZWZpeC4KKwlodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5j
Z2k/aWQ9Mjk2MzgKKworICAgICAgICAqIGF1dG90b29scy93ZWJraXQubTQ6CisKIDIwMDktMDkt
MjEgIFhhbiBMb3BleiAgPHhsb3BlekBpZ2FsaWEuY29tPgogCiAgICAgICAgIFJldmlld2VkIGJ5
IEd1c3Rhdm8gTm9yb25oYS4KZGlmZiAtLWdpdCBhL2F1dG90b29scy93ZWJraXQubTQgYi9hdXRv
dG9vbHMvd2Via2l0Lm00CmluZGV4IDkyZmU1ZGIuLjViYjRmNjUgMTAwNjQ0Ci0tLSBhL2F1dG90
b29scy93ZWJraXQubTQKKysrIGIvYXV0b3Rvb2xzL3dlYmtpdC5tNApAQCAtMTYwLDcgKzE2MCw3
IEBAIGlmIHRlc3QgIiR3aXRoX3VuaWNvZGVfYmFja2VuZCIgPSAiaWN1IiAtbyAiJHdpdGhfdW5p
Y29kZV9iYWNrZW5kIiA9ICJnbGliIjsgdGhlCiAJCSMgbmVjZXNzYXJpbHkgd2FudCwgbGlrZSBk
ZWJ1Z2dpbmcgYW5kIG9wdGltaXphdGlvbiBmbGFncwogCQkjIFNlZSBtYW4gKDEpIGljdS1jb25m
aWcgZm9yIG1vcmUgaW5mby4KIAkJVU5JQ09ERV9DRkxBR1M9YCRpY3VfY29uZmlnIC0tY3BwZmxh
Z3NgCi0JCVVOSUNPREVfTElCUz1gJGljdV9jb25maWcgLS1sZGZsYWdzYAorCQlVTklDT0RFX0xJ
QlM9YCRpY3VfY29uZmlnIC0tbGRmbGFncy1saWJzb25seWAKIAlmaQogZmkKIAotLSAKMS42LjAu
NAoK
</data>
<flag name="review"
          id="21072"
          type_id="1"
          status="+"
          setter="xan.lopez"
    />
    <flag name="commit-queue"
          id="21073"
          type_id="3"
          status="-"
          setter="xan.lopez"
    />
          </attachment>
      

    </bug>

</bugzilla>