<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: GCC libgcc will not link correctly - PERL / MYSQL in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/gcc-libgcc-will-not-link-correctly-perl-mysql/m-p/5055581#M93772</link>
    <description>The problem I am running into is that even if I do say to link gcc, it still fails. The good side is I finally got MYSQL to compile with openssl support. &lt;BR /&gt;&lt;BR /&gt;Directly editing Makefile to test...&lt;BR /&gt;If I point it to a directory without the libgcc libraries it does fail. Below is what I'm seeing.&lt;BR /&gt;&lt;BR /&gt;LDDLFLAGS = -b -L/lib/pa20_64 -L/opt/pacbin/lib -lgcc&lt;BR /&gt;LDFLAGS = -L/lib/pa20_64 -L/opt/pacbin/lib -lgcc&lt;BR /&gt;&lt;BR /&gt;rm *.o&lt;BR /&gt;make&lt;BR /&gt;&lt;BR /&gt;gcc -c   -D_HPUX_SOURCE -mpa-risc-2-0 -DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O   -DVERSION=\"0.06\" -DXS_VERSION=\"0.06\" -fPIC "-I../.."   byterun.c&lt;BR /&gt;byterun.c: In function 'byterun':&lt;BR /&gt;byterun.c:173: warning: comparison is always false due to limited range of data type&lt;BR /&gt;byterun.c:899: warning: comparison is always false due to limited range of data type&lt;BR /&gt;gcc -c   -D_HPUX_SOURCE -mpa-risc-2-0 -DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O   -DVERSION=\"0.06\" -DXS_VERSION=\"0.06\" -fPIC "-I../.."   ByteLoader.c&lt;BR /&gt;Running Mkbootstrap for ByteLoader ()&lt;BR /&gt;chmod 644 ByteLoader.bs&lt;BR /&gt;&lt;BR /&gt;rm -f ../../lib/auto/ByteLoader/ByteLoader.sl&lt;BR /&gt;/usr/bin/ld  -b -L/lib/pa20_64 -L/opt/pacbin/lib -lgcc byterun.o ByteLoader.o  -o ../../lib/auto/ByteLoader/ByteLoader.sl \&lt;BR /&gt;                \&lt;BR /&gt;          &lt;BR /&gt;Warning: Some debug info sections were missing.&lt;BR /&gt;PXDB aborted.&lt;BR /&gt;chmod 755 ../../lib/auto/ByteLoader/ByteLoader.sl&lt;BR /&gt;cp ByteLoader.bs ../../lib/auto/ByteLoader/ByteLoader.bs&lt;BR /&gt;chmod 644 ../../lib/auto/ByteLoader/ByteLoader.bs&lt;BR /&gt;&lt;BR /&gt;It still fails the make test.&lt;BR /&gt;&lt;BR /&gt;../../lib/auto/ByteLoader/ByteLoader.sl:&lt;BR /&gt;         64-bit ELF shared library&lt;BR /&gt;         shared library dynamic path search:&lt;BR /&gt;             LD_LIBRARY_PATH    enabled  first &lt;BR /&gt;             SHLIB_PATH         enabled  second&lt;BR /&gt;             embedded path      enabled  third  /lib/pa20_64:/opt/pacbin/lib&lt;BR /&gt;         shared library mapped private disabled&lt;BR /&gt;         shared vtable support disabled&lt;BR /&gt;         explicit unloading enabled &lt;BR /&gt;         linkage table protection disabled &lt;BR /&gt;         segments:&lt;BR /&gt;             index type     address      flags size&lt;BR /&gt;                 5 text 4000000000000000 z---c-    D (default)&lt;BR /&gt;                 6 data 8000000100000000 ---m--    D (default)&lt;BR /&gt;         static branch prediction disabled&lt;BR /&gt;         kernel assisted branch prediction enabled &lt;BR /&gt;         lazy swap allocation for dynamic segments disabled&lt;BR /&gt;         nulptr dereferences trap disabled&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo $LD_LIBRARY_PATH &lt;BR /&gt;/opt/pacbin/lib&lt;BR /&gt;&lt;BR /&gt;ll /opt/pacbin/lib/libgcc*&lt;BR /&gt;-r-xr-xr-x   1 root       sys         368544 Jun 28 22:30 /opt/pacbin/lib/libgcc.a&lt;BR /&gt;-rw-r--r--   1 root       sys         165554 Jun 28 22:30 /opt/pacbin/lib/libgcc_eh.a&lt;BR /&gt;-r-xr-xr-x   1 root       sys         303852 Jun 27 22:32 /opt/pacbin/lib/libgcc_s.4&lt;BR /&gt;lrwxr-xr-x   1 root       sys             10 Jun 28 22:07 /opt/pacbin/lib/libgcc_s.sl -&amp;gt; libgcc_s.4&lt;BR /&gt;-rw-r--r--   1 root       sys           4666 Jun 28 22:30 /opt/pacbin/lib/libgcc_stub.a&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I know I must be missing something very basic and simple, though I am stuck.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 29 Jun 2007 00:03:38 GMT</pubDate>
    <dc:creator>Eric Hagen</dc:creator>
    <dc:date>2007-06-29T00:03:38Z</dc:date>
    <item>
      <title>GCC libgcc will not link correctly - PERL / MYSQL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gcc-libgcc-will-not-link-correctly-perl-mysql/m-p/5055579#M93770</link>
      <description>Hello all,&lt;BR /&gt;&lt;BR /&gt;I have been spending far too much time trying to get PERL and MYSQL to play nicely with linked 64bit libgcc objects. Does anyone know of a 64bit version of GCC that plays nicely with the latest OPENSSL, MYSQL and most importantly PERL and the libgcc functions? &lt;BR /&gt;&lt;BR /&gt;At first I thought it may be generic gcc builds so I installed gcc (GCC) 4.1.2 and it works almost, but the outcome is the same as with the GCC from HP, The porting center, and Merijn. (Thanks to everyone for those great resources).&lt;BR /&gt;&lt;BR /&gt;PERL compiles, but nothing I do seems to actually use the -static-libgcc flag option and move it into the Makefiles. MYSQL compiles fine and works great up until I try to compile with openssl to support PKI authentication. Then the same libgcc errors show up.&lt;BR /&gt;&lt;BR /&gt;Below are the configure options I’m using, I will attempt to keep this very short.&lt;BR /&gt;&lt;BR /&gt;./configure --prefix=/opt/pacbin/mysql --with-low-memory --enable-thread-safe-client --without-debug \&lt;BR /&gt;--with-openssl=/opt/pacbin/openssl  --with-openssl-includes=/opt/pacbin/include/openssl \&lt;BR /&gt; --enable-local-infile --with-pthread --with-lib-ccflags=-fPIC --disable-shared \&lt;BR /&gt; --with-extra-charsets=none --enable-assembler&lt;BR /&gt;&lt;BR /&gt;/opt/pacdev/bin/ld: warning: libgcc_s.sl, needed by /opt/pacbin/lib/libpthread.sl, &lt;BR /&gt;not found (try using -rpath or -rpath-link)&lt;BR /&gt;/opt/pacdev/bin/ld: conf_to_src: hidden symbol `__divdi3' in /opt/pacbin/lib/libgcc.a(_divdi3.o) is referenced by DSO&lt;BR /&gt;/opt/pacdev/bin/ld: final link failed: Nonrepresentable section on output&lt;BR /&gt;&lt;BR /&gt;perl-5.8.8&lt;BR /&gt;sh Configure -A prepend:libswanted='pthread ' -de -Dcc=gcc -DfPIC -Dcl -Dprefix=/opt/pacbin \&lt;BR /&gt;    -Dcccdlflags='-fPIC' \&lt;BR /&gt;    -Dlddlflags='-shared -static-libgcc -fPIC' \&lt;BR /&gt;    -Dlddlflags='-b -L/opt/pacdev/lib -L/lib/pa20_64' \&lt;BR /&gt;    -Dldflags='-L/opt/pacdev/lib -L/lib/pa20_64' \&lt;BR /&gt;    -Dlibpth=='/opt/pacdev/lib /opt/pacbin/lib /lib/pa20_64 /lib /usr/lib /usr/ccs/lib'&lt;BR /&gt;&lt;BR /&gt;EXAMPLE FAILED TEST.&lt;BR /&gt;ext/Digest/MD5/t/files..................../usr/lib/pa20_64/dld.sl: Unsatisfied code symbol '__divdi3' in load module '../lib/auto/MIME/Base64/Base64.sl'.&lt;BR /&gt;ext/Unicode/Normalize/t/fcdc............../usr/lib/pa20_64/dld.sl: Unsatisfied code symbol '__umoddi3' in load module '../lib/auto/Unicode/Normalize/Normalize.sl'.&lt;BR /&gt;Failed 19 test scripts out of 919, 97.93% okay.</description>
      <pubDate>Thu, 28 Jun 2007 16:49:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gcc-libgcc-will-not-link-correctly-perl-mysql/m-p/5055579#M93770</guid>
      <dc:creator>Eric Hagen</dc:creator>
      <dc:date>2007-06-28T16:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: GCC libgcc will not link correctly - PERL / MYSQL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gcc-libgcc-will-not-link-correctly-perl-mysql/m-p/5055580#M93771</link>
      <description>I believe it is telling you exactly what is wrong. The libs Base64.sl and Normalize.sl were linked incorrectly and didn't include __divdi3 and __umoddi3 when they were created:&lt;BR /&gt;/opt/pacdev/bin/ld: conf_to_src: hidden symbol __divdi3 in /opt/pacbin/lib/libgcc.a(_divdi3.o) is referenced by DSO&lt;BR /&gt;&lt;BR /&gt;So you need to include -lgcc when building those two libs.</description>
      <pubDate>Thu, 28 Jun 2007 22:31:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gcc-libgcc-will-not-link-correctly-perl-mysql/m-p/5055580#M93771</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-06-28T22:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: GCC libgcc will not link correctly - PERL / MYSQL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gcc-libgcc-will-not-link-correctly-perl-mysql/m-p/5055581#M93772</link>
      <description>The problem I am running into is that even if I do say to link gcc, it still fails. The good side is I finally got MYSQL to compile with openssl support. &lt;BR /&gt;&lt;BR /&gt;Directly editing Makefile to test...&lt;BR /&gt;If I point it to a directory without the libgcc libraries it does fail. Below is what I'm seeing.&lt;BR /&gt;&lt;BR /&gt;LDDLFLAGS = -b -L/lib/pa20_64 -L/opt/pacbin/lib -lgcc&lt;BR /&gt;LDFLAGS = -L/lib/pa20_64 -L/opt/pacbin/lib -lgcc&lt;BR /&gt;&lt;BR /&gt;rm *.o&lt;BR /&gt;make&lt;BR /&gt;&lt;BR /&gt;gcc -c   -D_HPUX_SOURCE -mpa-risc-2-0 -DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O   -DVERSION=\"0.06\" -DXS_VERSION=\"0.06\" -fPIC "-I../.."   byterun.c&lt;BR /&gt;byterun.c: In function 'byterun':&lt;BR /&gt;byterun.c:173: warning: comparison is always false due to limited range of data type&lt;BR /&gt;byterun.c:899: warning: comparison is always false due to limited range of data type&lt;BR /&gt;gcc -c   -D_HPUX_SOURCE -mpa-risc-2-0 -DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O   -DVERSION=\"0.06\" -DXS_VERSION=\"0.06\" -fPIC "-I../.."   ByteLoader.c&lt;BR /&gt;Running Mkbootstrap for ByteLoader ()&lt;BR /&gt;chmod 644 ByteLoader.bs&lt;BR /&gt;&lt;BR /&gt;rm -f ../../lib/auto/ByteLoader/ByteLoader.sl&lt;BR /&gt;/usr/bin/ld  -b -L/lib/pa20_64 -L/opt/pacbin/lib -lgcc byterun.o ByteLoader.o  -o ../../lib/auto/ByteLoader/ByteLoader.sl \&lt;BR /&gt;                \&lt;BR /&gt;          &lt;BR /&gt;Warning: Some debug info sections were missing.&lt;BR /&gt;PXDB aborted.&lt;BR /&gt;chmod 755 ../../lib/auto/ByteLoader/ByteLoader.sl&lt;BR /&gt;cp ByteLoader.bs ../../lib/auto/ByteLoader/ByteLoader.bs&lt;BR /&gt;chmod 644 ../../lib/auto/ByteLoader/ByteLoader.bs&lt;BR /&gt;&lt;BR /&gt;It still fails the make test.&lt;BR /&gt;&lt;BR /&gt;../../lib/auto/ByteLoader/ByteLoader.sl:&lt;BR /&gt;         64-bit ELF shared library&lt;BR /&gt;         shared library dynamic path search:&lt;BR /&gt;             LD_LIBRARY_PATH    enabled  first &lt;BR /&gt;             SHLIB_PATH         enabled  second&lt;BR /&gt;             embedded path      enabled  third  /lib/pa20_64:/opt/pacbin/lib&lt;BR /&gt;         shared library mapped private disabled&lt;BR /&gt;         shared vtable support disabled&lt;BR /&gt;         explicit unloading enabled &lt;BR /&gt;         linkage table protection disabled &lt;BR /&gt;         segments:&lt;BR /&gt;             index type     address      flags size&lt;BR /&gt;                 5 text 4000000000000000 z---c-    D (default)&lt;BR /&gt;                 6 data 8000000100000000 ---m--    D (default)&lt;BR /&gt;         static branch prediction disabled&lt;BR /&gt;         kernel assisted branch prediction enabled &lt;BR /&gt;         lazy swap allocation for dynamic segments disabled&lt;BR /&gt;         nulptr dereferences trap disabled&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo $LD_LIBRARY_PATH &lt;BR /&gt;/opt/pacbin/lib&lt;BR /&gt;&lt;BR /&gt;ll /opt/pacbin/lib/libgcc*&lt;BR /&gt;-r-xr-xr-x   1 root       sys         368544 Jun 28 22:30 /opt/pacbin/lib/libgcc.a&lt;BR /&gt;-rw-r--r--   1 root       sys         165554 Jun 28 22:30 /opt/pacbin/lib/libgcc_eh.a&lt;BR /&gt;-r-xr-xr-x   1 root       sys         303852 Jun 27 22:32 /opt/pacbin/lib/libgcc_s.4&lt;BR /&gt;lrwxr-xr-x   1 root       sys             10 Jun 28 22:07 /opt/pacbin/lib/libgcc_s.sl -&amp;gt; libgcc_s.4&lt;BR /&gt;-rw-r--r--   1 root       sys           4666 Jun 28 22:30 /opt/pacbin/lib/libgcc_stub.a&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I know I must be missing something very basic and simple, though I am stuck.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Jun 2007 00:03:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gcc-libgcc-will-not-link-correctly-perl-mysql/m-p/5055581#M93772</guid>
      <dc:creator>Eric Hagen</dc:creator>
      <dc:date>2007-06-29T00:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: GCC libgcc will not link correctly - PERL / MYSQL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gcc-libgcc-will-not-link-correctly-perl-mysql/m-p/5055582#M93773</link>
      <description>I was going to say I know lots more about HP compilers than g++ but your error turns out to be pretty obvious.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;/usr/bin/ld -b -L/lib/pa20_64 -L/opt/pacbin/lib -lgcc byterun.o ByteLoader.o -o ByteLoader.sl&lt;BR /&gt;&lt;BR /&gt;Libraries, especially archives must be last on the list, after objects!&lt;BR /&gt;&lt;BR /&gt;The linker sees -lgcc, and thinks that's interesting and ignores it since it isn't needed yet.  Then it sees the objects and when it gets to the end, there is nothing it can do.&lt;BR /&gt;&lt;BR /&gt;You can either reorder your LDDLFLAGS and LDFLAGS or you can add -Wl,+n.  This will cause ld to work harder and interate over the command line, until no progress.&lt;BR /&gt;&lt;BR /&gt;You should also remove the default lib path:&lt;BR /&gt;-L/lib/pa20_64&lt;BR /&gt;(And this isn't correct in the first place, it should really be /usr/lib/pa20_64, since /lib is an illusion.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I know I must be missing something very basic and simple,&lt;BR /&gt;&lt;BR /&gt;Well it was if you really look at it. ;-)&lt;BR /&gt;You could also see the order with "-Wl,-t".&lt;BR /&gt;&lt;BR /&gt;This may be the reason there are lots of libs in the Porting Center with this same unsat problem.</description>
      <pubDate>Fri, 29 Jun 2007 01:27:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gcc-libgcc-will-not-link-correctly-perl-mysql/m-p/5055582#M93773</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-06-29T01:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: GCC libgcc will not link correctly - PERL / MYSQL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gcc-libgcc-will-not-link-correctly-perl-mysql/m-p/5055583#M93774</link>
      <description>Thank you, I'm a system admin guy and when it comes to the C language, well lets just say I rather use PERL.&lt;BR /&gt;&lt;BR /&gt;I did have "-Wl,+n" set, but for some reason it still did not work. However, by going into the sections having this problem:&lt;BR /&gt;ByteLoader/&lt;BR /&gt;MIME/Base64/&lt;BR /&gt;Unicode/Normalize&lt;BR /&gt;Deleting the ofending *.sl and relinking it, IE:&lt;BR /&gt; /usr/bin/ld  -b -L/opt/pacbin/lib byterun.o ByteLoader.o -lgcc -o ../../lib/auto/ByteLoader/ByteLoader.sl&lt;BR /&gt;&lt;BR /&gt;Has resolved the issue. Once again thank you very much.&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Jun 2007 15:48:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gcc-libgcc-will-not-link-correctly-perl-mysql/m-p/5055583#M93774</guid>
      <dc:creator>Eric Hagen</dc:creator>
      <dc:date>2007-06-29T15:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: GCC libgcc will not link correctly - PERL / MYSQL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gcc-libgcc-will-not-link-correctly-perl-mysql/m-p/5055584#M93775</link>
      <description>Manual relinking of objects failing test.</description>
      <pubDate>Fri, 29 Jun 2007 16:04:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gcc-libgcc-will-not-link-correctly-perl-mysql/m-p/5055584#M93775</guid>
      <dc:creator>Eric Hagen</dc:creator>
      <dc:date>2007-06-29T16:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: GCC libgcc will not link correctly - PERL / MYSQL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gcc-libgcc-will-not-link-correctly-perl-mysql/m-p/5055585#M93776</link>
      <description>Another way to fix it would be to have two sets of make linker macros.  The LDFLAGS you have.  And another LIBS or somesuch you add to the end.</description>
      <pubDate>Fri, 29 Jun 2007 19:05:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gcc-libgcc-will-not-link-correctly-perl-mysql/m-p/5055585#M93776</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-06-29T19:05:36Z</dc:date>
    </item>
  </channel>
</rss>

