<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>23879</bug_id>
          
          <creation_ts>2010-08-11 21:13:39 +0400</creation_ts>
          <short_desc>не собирается -m32</short_desc>
          <delta_ts>2010-09-03 13:34:06 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>gcc-common</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>23878</dependson>
          <blocked>23877</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Zerg">anubix</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>at</cc>
    
    <cc>glebfm</cc>
    
    <cc>kas</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>sbolshakov</cc>
    
    <cc>vt</cc>
    
    <cc>zerg</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>111146</commentid>
    <comment_count>0</comment_count>
    <who name="Zerg">anubix</who>
    <bug_when>2010-08-11 21:13:39 +0400</bug_when>
    <thetext>nspluginwrapper не собирается с диагностикой

g++ -m32 -O2 -g -mtune=generic -o npviewer-cxxabi-compat.o -c /home/zerg/test/nspluginwrapper-1.3.0/src/cxxabi-compat.cpp -I. -I/home/zerg/test/nspluginwrapper-1.3.0 -m32 -O2 -g -mtune=generic -I/home/zerg/test/nspluginwrapper-1.3.0/lsb-build/headers -I/home/zerg/test/nspluginwrapper-1.3.0/lsb-build/headers/glib-2.0 -I/home/zerg/test/nspluginwrapper-1.3.0/lsb-build/headers/gtk-2.0 -I/home/zerg/test/nspluginwrapper-1.3.0/npapi -I/home/zerg/test/nspluginwrapper-1.3.0/npapi/nspr -DBUILD_VIEWER
In file included from /usr/lib64/gcc/x86_64-alt-linux/4.4.2/../../../../include/c++/4.4.2/new:39,
                 from /home/zerg/test/nspluginwrapper-1.3.0/src/cxxabi-compat.cpp:36:
/usr/lib64/gcc/x86_64-alt-linux/4.4.2/../../../../include/c++/4.4.2/cstddef:43:28: error: bits/c++config.h: Нет такого файла или каталога</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111147</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2010-08-12 05:13:23 +0400</bug_when>
    <thetext>apt-get install i586-libstdc++4.4-devel</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111151</commentid>
    <comment_count>2</comment_count>
    <who name="Zerg">anubix</who>
    <bug_when>2010-08-12 10:47:23 +0400</bug_when>
    <thetext>i586-libstdc++4.4-devel стоит</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111154</commentid>
    <comment_count>3</comment_count>
    <who name="Zerg">anubix</who>
    <bug_when>2010-08-12 11:29:53 +0400</bug_when>
    <thetext>(В ответ на комментарий №2)
&gt; i586-libstdc++4.4-devel стоит
У меня он криво заAREPOан. Ссылки не хватает на 32</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111155</commentid>
    <comment_count>4</comment_count>
    <who name="Zerg">anubix</who>
    <bug_when>2010-08-12 11:52:37 +0400</bug_when>
    <thetext>А что можно сделать с:

gcc -std=c99 -m32 -o npviewer.bin npviewer-npw-viewer.o npviewer-npw-common.o npviewer-npw-malloc.o npviewer-npw-rpc.o npviewer-rpc.o npviewer-debug.o npviewer-utils.o npviewer-npruntime.o npviewer-cxxabi-compat.o -m32 -Llsb-build-i386 -lgtk-x11-2.0 -lgdk-x11-2.0 -lgobject-2.0 -ldl -lglib-2.0 -lX11 -lXt -ldl -lpthread -lgthread-2.0 -Wl,--export-dynamic -Wl,--version-script,/home/zerg/test/nspluginwrapper-1.3.0/src/npw-viewer.map -lsupc++
/usr/lib64/gcc/x86_64-alt-linux/4.4.2/32/libsupc++.a(eh_alloc.o): In function `global constructors keyed to eh_alloc.cc&apos;:
eh_alloc.cc:(.text._GLOBAL__I_eh_alloc.cc+0x82): undefined reference to `__stack_chk_fail_local&apos;
/usr/lib64/gcc/x86_64-alt-linux/4.4.2/32/libsupc++.a(cp-demangle.o): In function `sprintf&apos;:
/usr/include/bits/stdio2.h:34: undefined reference to `__sprintf_chk&apos;
/usr/lib64/gcc/x86_64-alt-linux/4.4.2/32/libsupc++.a(cp-demangle.o): In function `d_print_comp&apos;:
/usr/src/RPM/BUILD/gcc-4.4.2-20091222/obj-i586-alt-linux/i586-alt-linux/libstdc++-v3/libsupc++/cp-demangle.c:4061: undefined reference to `__stack_chk_fail_local&apos;
/usr/lib64/gcc/x86_64-alt-linux/4.4.2/32/libsupc++.a(cp-demangle.o): In function `d_demangle_callback&apos;:
/usr/src/RPM/BUILD/gcc-4.4.2-20091222/obj-i586-alt-linux/i586-alt-linux/libstdc++-v3/libsupc++/cp-demangle.c:4552: undefined reference to `__stack_chk_fail_local&apos;
/usr/bin/ld: npviewer.bin: hidden symbol `__stack_chk_fail_local&apos; isn&apos;t defined
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status

?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111185</commentid>
    <comment_count>5</comment_count>
    <who name="Sergey V Turchin">zerg</who>
    <bug_when>2010-08-13 16:06:15 +0400</bug_when>
    <thetext>Можно подсказать, где бага? У меня в голове (я не нашел, какие ключи линковки можно указать) или в gcc?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111247</commentid>
    <comment_count>6</comment_count>
    <who name="Sergey V Turchin">zerg</who>
    <bug_when>2010-08-18 17:49:22 +0400</bug_when>
    <thetext>Это обходиться
http://cvs.fedoraproject.org/viewvc/devel/nspluginwrapper/nspluginwrapper-1.3.0-comp.patch?view=markup</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111867</commentid>
    <comment_count>7</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2010-09-03 02:05:59 +0400</bug_when>
    <thetext>(In reply to comment #4)
&gt; А что можно сделать с:
&gt; 
&gt; gcc -std=c99 -m32 -o npviewer.bin npviewer-npw-viewer.o npviewer-npw-common.o
&gt; npviewer-npw-malloc.o npviewer-npw-rpc.o npviewer-rpc.o npviewer-debug.o
&gt; npviewer-utils.o npviewer-npruntime.o npviewer-cxxabi-compat.o -m32
&gt; -Llsb-build-i386 -lgtk-x11-2.0 -lgdk-x11-2.0 -lgobject-2.0 -ldl -lglib-2.0
&gt; -lX11 -lXt -ldl -lpthread -lgthread-2.0 -Wl,--export-dynamic
&gt; -Wl,--version-script,/home/zerg/test/nspluginwrapper-1.3.0/src/npw-viewer.map
&gt; -lsupc++
&gt; /usr/lib64/gcc/x86_64-alt-linux/4.4.2/32/libsupc++.a(eh_alloc.o): In function
&gt; `global constructors keyed to eh_alloc.cc&apos;:
&gt; eh_alloc.cc:(.text._GLOBAL__I_eh_alloc.cc+0x82): undefined reference to
&gt; `__stack_chk_fail_local&apos;
&gt; /usr/lib64/gcc/x86_64-alt-linux/4.4.2/32/libsupc++.a(cp-demangle.o): In
&gt; function `sprintf&apos;:
&gt; /usr/include/bits/stdio2.h:34: undefined reference to `__sprintf_chk&apos;

Ну, например, __sprintf_chk живёт в libc.so.6.

(In reply to comment #6)
&gt; Это обходиться
&gt; http://cvs.fedoraproject.org/viewvc/devel/nspluginwrapper/nspluginwrapper-1.3.0-comp.patch?view=markup

Ты, видимо, имел в виду http://pkgs.fedoraproject.org/gitweb/?p=nspluginwrapper.git;a=blob_plain;f=nspluginwrapper-1.3.0-comp.patch

Ну так приложи его.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111885</commentid>
    <comment_count>8</comment_count>
    <who name="Sergey V Turchin">zerg</who>
    <bug_when>2010-09-03 13:34:06 +0400</bug_when>
    <thetext>(В ответ на комментарий №7)
&gt; Ты, видимо, имел в виду
&gt; nspluginwrapper-1.3.0-comp.patch
&gt; Ну так приложи его.
Да-да. Я ж закрыл уже багу</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>