<?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>136626</bug_id>
          
          <creation_ts>2014-09-08 06:09:45 -0700</creation_ts>
          <short_desc>WEbKitGTK 2.5.3 - undefined references on build</short_desc>
          <delta_ts>2022-07-06 06:29:50 -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>Unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominique Leuenberger">dimstar</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>berto</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>pachoramos1</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1033837</commentid>
    <comment_count>0</comment_count>
    <who name="Dominique Leuenberger">dimstar</who>
    <bug_when>2014-09-08 06:09:45 -0700</bug_when>
    <thetext>While building webkitgtk 2.5.3, the build on openSUSE aborts with:

[ 4158s] /home/abuild/rpmbuild/BUILD/webkitgtk-2.5.3/Source/WebKit2/WebProcess/gtk/WebGtkInjectedBundleMain.cpp:34: undefined reference to `WebKit::WebGtkExtensionManager::shared()&apos;
[ 4158s] /home/abuild/rpmbuild/BUILD/webkitgtk-2.5.3/Source/WebKit2/WebProcess/gtk/WebGtkInjectedBundleMain.cpp:34: undefined reference to `WebKit::WebGtkExtensionManager::initializ
e(OpaqueWKBundle const*, void const*)&apos;
[ 4158s] collect2: error: ld returned 1 exit status</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1034266</commentid>
    <comment_count>1</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2014-09-10 04:34:26 -0700</bug_when>
    <thetext>What&apos;s the architecture? x86? amd64? What are the build (cmake) options that you are using?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1034379</commentid>
    <comment_count>2</comment_count>
    <who name="Dominique Leuenberger">dimstar</who>
    <bug_when>2014-09-10 13:23:18 -0700</bug_when>
    <thetext>I saw this on i586 and x86_64

the standard %cmake macro used on openSUSE expands to:

    /usr/bin/cmake .. \
        -DCMAKE_INSTALL_PREFIX:PATH=/usr \
        -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib64 \
        -DINCLUDE_INSTALL_DIR:PATH=/usr/include \
        -DLIB_INSTALL_DIR:PATH=/usr/lib64 \
        -DSYSCONF_INSTALL_DIR:PATH=/etc \
        -DSHARE_INSTALL_PREFIX:PATH=/usr/share \
        -DCMAKE_BUILD_TYPE=None \
        -DCMAKE_C_FLAGS=&quot;${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables} -DNDEBUG&quot; \
        -DCMAKE_CXX_FLAGS=&quot;${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables} -DNDEBUG&quot; \
        -DCMAKE_Fortran_FLAGS=&quot;${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables} -DNDEBUG&quot; \
        -DCMAKE_EXE_LINKER_FLAGS=&quot;-Wl,--as-needed -Wl,--no-undefined -Wl,-z,now&quot; \
        -DCMAKE_MODULE_LINKER_FLAGS=&quot;-Wl,--as-needed -Wl,--no-undefined -Wl,-z,now&quot; \
        -DCMAKE_SHARED_LINKER_FLAGS=&quot;-Wl,--as-needed -Wl,--no-undefined -Wl,-z,now&quot; \
%if &quot;lib64&quot; == &quot;lib64&quot; 
        -DLIB_SUFFIX=64 \
%endif 
        -DCMAKE_SKIP_RPATH:BOOL=ON \
        -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
        -DBUILD_SHARED_LIBS:BOOL=ON \
        -DBUILD_STATIC_LIBS:BOOL=OFF \
        -DCMAKE_COLOR_MAKEFILE:BOOL=OFF \
        -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF \
        -DCMAKE_MODULES_INSTALL_DIR=/usr/share/cmake/Modules \
        -DCMAKE_USER_MAKE_RULES_OVERRIDE=&quot;/usr/share/cmake/Modules/opensuse_rules.cmake&quot;


(
for now I worke around it by overwriting 
  -DCMAKE_EXE_LINKER_FLAGS=&quot;-Wl,--as-needed -Wl,-z,now&quot; \
  -DCMAKE_MODULE_LINKER_FLAGS=&quot;-Wl,--as-needed -Wl,-z,now&quot; \
  -DCMAKE_SHARED_LINKER_FLAGS=&quot;-Wl,--as-needed -Wl,-z,now&quot;

)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1034543</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2014-09-10 23:57:00 -0700</bug_when>
    <thetext>Could it be that it&apos;s not using the symbols file? There should be something like -Wl,--version-script,${CMAKE_MODULE_PATH}/gtksymbols.filter</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1053345</commentid>
    <comment_count>4</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2014-12-08 03:31:11 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; for now I worke around it by overwriting
&gt;   -DCMAKE_EXE_LINKER_FLAGS=&quot;-Wl,--as-needed -Wl,-z,now&quot; \
&gt;   -DCMAKE_MODULE_LINKER_FLAGS=&quot;-Wl,--as-needed -Wl,-z,now&quot; \
&gt;   -DCMAKE_SHARED_LINKER_FLAGS=&quot;-Wl,--as-needed -Wl,-z,now&quot;
&gt;
&gt; )

I can build 2.6.x without any of these, check if you have the version script somewhere in the command-line that fails, I have this:

-Wl,--version-script,Source/cmake/gtksymbols.filter</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1880948</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2022-07-06 06:29:50 -0700</bug_when>
    <thetext>Closing since this looks quite old.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>