[Bug binutils/19698] New: [2.26 Regression] mysql qt4 driver plugin not able to open libmysqlclient.so

2016-02-20 Thread dura911111 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19698

Bug ID: 19698
   Summary: [2.26 Regression] mysql qt4 driver plugin not able to
open libmysqlclient.so
   Product: binutils
   Version: 2.26
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: dura91 at gmail dot com
  Target Milestone: ---

When starting akonadiserver, I got this message:
akonadiserver: relocation error: /usr/qt4/plugins/sqldrivers/libqsqlmysql.so:
symbol mysql_real_connect, version libmysqlclient_16 not defined in file
libmysqlclient.so.18 with link time reference

When recompiling mariadb-10.1.11 with binutils-2.25.1, the problem disappears.

A git bisect shows that
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=422f11824b3abf6c71042e2ee3aed572f250fc89
is the first bad commit.

binutils-2.26 with this commit reverted does not exhibit the problem.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/19698] [2.26 Regression] mysql qt4 driver plugin not able to open libmysqlclient.so

2016-02-20 Thread dura911111 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19698

--- Comment #2 from dura at duradsl dot duckdns.org  ---
The problem stills there or I made a mistake with git (my knowledge of git is
quite limited).

I used git like this:
git clone git://sourceware.org/git/binutils-gdb.git
git checkout users/hjl/pr19553/binutils-2_26-branch

and building the same way like when I was bisecting.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/19698] [2.26 Regression] mysql qt4 driver plugin not able to open libmysqlclient.so

2016-02-20 Thread dura911111 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19698

--- Comment #4 from dura  ---
(In reply to H.J. Lu from comment #3)
> Please provide all linker input files and command line options used to
> build libqsqlmysql.so.

This is the command line that build libqsqlmysql.so:
g++
-Wl,-rpath-link,/bsources/qt-everywhere-opensource-src-4.8.7/qt-everywhere-opensource-src-4.8.7/lib
-Wl,-O1 -Wl,-rpath,/usr/qt4/lib -Wl,-rpath,/usr/qt4/lib -shared -o
libqsqlmysql.so .obj/release-shared/main.o .obj/release-shared/qsql_mysql.o
.obj/release-shared/moc_qsql_mysql.o  
-L/bsources/qt-everywhere-opensource-src-4.8.7/qt-everywhere-opensource-src-4.8.7/lib
-L/usr/lib -lmysqlclient -lz -lm -ldl -lssl -lcrypto -lQtSql
-L/bsources/qt-everywhere-opensource-src-4.8.7/qt-everywhere-opensource-src-4.8.7/lib
-lQtCore -lpthread

Can you tell me what should I do for "provide all linker input files"?

For bisecting, I rebuild binutils and mariadb, not QT.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/19698] [2.26 Regression] mysql qt4 driver plugin not able to open libmysqlclient.so

2016-02-21 Thread dura911111 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19698

--- Comment #6 from dura  ---
Created attachment 9022
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9022&action=edit
linker input files for libqsqlmysql.so

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/19698] [2.26 Regression] mysql qt4 driver plugin not able to open libmysqlclient.so

2016-02-21 Thread dura911111 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19698

--- Comment #7 from dura  ---
This is what adding -v to g++ command line give me:
g++ -v
-Wl,-rpath-link,/bsources/qt-everywhere-opensource-src-4.8.7/qt-everywhere-opensource-src-4.8.7/lib
-Wl,-O1 -Wl,-rpath,/usr/qt4/lib -Wl,-rpath,/usr/qt4/lib -shared -o
libqsqlmysql.so .obj/release-shared/main.o .obj/release-shared/qsql_mysql.o
.obj/release-shared/moc_qsql_mysql.o  
-L/bsources/qt-everywhere-opensource-src-4.8.7/qt-everywhere-opensource-src-4.8.7/lib
-L/usr/lib -lmysqlclient -lz -lm -ldl -lssl -lcrypto -lQtSql
-L/bsources/qt-everywhere-opensource-src-4.8.7/qt-everywhere-opensource-src-4.8.7/lib
-lQtCore -lpthread  
Reading specs from /usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/specs
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --disable-static --disable-multilib
--with-native-system-header-dir=/usr/include --with-local-prefix=/usr/local
--prefix=/usr --enable-languages=c,c++ --disable-multilib --disable-bootstrap
--with-cloog --enable-cloog-backend=isl --with-system-zlib
Thread model: posix
gcc version 5.3.0 (GCC) 
COMPILER_PATH=/usr/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0/:/usr/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0/:/usr/libexec/gcc/x86_64-unknown-linux-gnu/:/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/:/usr/lib/gcc/x86_64-unknown-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/:/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../lib/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-shared' '-o' 'libqsqlmysql.so'
'-L/bsources/qt-everywhere-opensource-src-4.8.7/qt-everywhere-opensource-src-4.8.7/lib'
'-L/usr/lib'
'-L/bsources/qt-everywhere-opensource-src-4.8.7/qt-everywhere-opensource-src-4.8.7/lib'
'-shared-libgcc' '-mtune=nehalem' '-march=nehalem'
 /usr/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0/collect2 -plugin
/usr/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0/liblto_plugin.so
-plugin-opt=/usr/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0/lto-wrapper
-plugin-opt=-fresolution=/tmp/ccIMdc7u.res -plugin-opt=-pass-through=-lgcc_s
-plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s --eh-frame-hdr
-m elf_x86_64 -shared -o libqsqlmysql.so
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../lib/crti.o
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/crtbeginS.o
-L/bsources/qt-everywhere-opensource-src-4.8.7/qt-everywhere-opensource-src-4.8.7/lib
-L/usr/lib
-L/bsources/qt-everywhere-opensource-src-4.8.7/qt-everywhere-opensource-src-4.8.7/lib
-L/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0
-L/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../lib -L/usr/lib/../lib
-L/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../.. -rpath-link
/bsources/qt-everywhere-opensource-src-4.8.7/qt-everywhere-opensource-src-4.8.7/lib
-O1 -rpath /usr/qt4/lib -rpath /usr/qt4/lib .obj/release-shared/main.o
.obj/release-shared/qsql_mysql.o .obj/release-shared/moc_qsql_mysql.o
-lmysqlclient -lz -ldl -lssl -lcrypto -lQtSql -lQtCore -lpthread -lstdc++ -lm
-lgcc_s -lc -lgcc_s /usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/crtendS.o
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../lib/crtn.o

I used this command to test the contents of the archive:
ld -nostdlib -o libqsqlmysql.so crti.o crtbeginS.o .obj/release-shared/main.o
.obj/release-shared/qsql_mysql.o .obj/release-shared/moc_qsql_mysql.o -L.
-lmysqlclient -lz -ldl -lssl -lcrypto -lQtSql -lQtCore -lpthread -lstdc++ -lm
-lgcc_s -lc -lgcc_s -lgthread -lglib-2 -lrt -lpcre crtendS.o crtn.o -shared

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/19698] [2.26 Regression] mysql qt4 driver plugin not able to open libmysqlclient.so

2016-02-22 Thread dura911111 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19698

--- Comment #10 from dura  ---
libmysqlclient.so in the tarball was built with command line in comment #7 and
binutils 2.26 commit 422f11824b3abf6c71042e2ee3aed572f250fc89 reversed, so as a
consequence, without PR 19073 which is a correction for this commit.

All my produced libmysqlclient.so with binutils 2.26 show
mysql_real_connect@@libmysqlclient_16 and
mysql_real_connect_cont@@libmysqlclient_18 with or without
422f11824b3abf6c71042e2ee3aed572f250fc89 reversed as a result of "readelf
--symbols libmysqlclient.so"

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/19698] [2.26 Regression] mysql qt4 driver plugin not able to open libmysqlclient.so

2016-02-22 Thread dura911111 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19698

--- Comment #13 from dura  ---
Created attachment 9027
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9027&action=edit
linker input files for libmysqlclient.so

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/19698] [2.26 Regression] mysql qt4 driver plugin not able to open libmysqlclient.so

2016-02-22 Thread dura911111 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19698

--- Comment #14 from dura  ---
This is the linker command line as shown by g++ -v:
/usr/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0/collect2 -plugin
/usr/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0/liblto_plugin.so
-plugin-opt=/usr/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0/lto-wrapper
-plugin-opt=-fresolution=/tmp/ccYF735e.res -plugin-opt=-pass-through=-lgcc_s
-plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s --eh-frame-hdr
-m elf_x86_64 -shared -o libmysqlclient.so.18.0.0 -s -s
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../lib/crti.o
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/crtbeginS.o
-L/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0
-L/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../lib -L/usr/lib/../lib
-L/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../.. -z relro -z now
--no-undefined --no-undefined
/bsources2/mariadb-10.1.11/build/libmysql/libmysql_versions.ld -soname
libmysqlclient.so.18 CMakeFiles/libmysql.dir/libmysql_exports_file.cc.o
-lpthread libclientlib.a ../dbug/libdbug.a ../strings/libstrings.a
../vio/libvio.a ../mysys/libmysys.a ../mysys_ssl/libmysys_ssl.a -lz -lssl
-lcrypto -ldl -ldl ../dbug/libdbug.a ../mysys/libmysys.a
../mysys_ssl/libmysys_ssl.a -lz ../strings/libstrings.a -lssl -lcrypto -ldl
-lpthread -lstdc++ -lm -lgcc_s -lc -lgcc_s
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/crtendS.o
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../lib/crtn.o

I used strace to find out all files used by the linker.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/19698] [2.26 Regression] mysql qt4 driver plugin not able to open libmysqlclient.so

2016-02-24 Thread dura911111 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19698

--- Comment #18 from dura  ---
I can confirm that building mariadb with binutils-2.26, with your patch and
without
422f11824b3abf6c71042e2ee3aed572f250fc89422f11824b3abf6c71042e2ee3aed572f250fc89
reversed produce a libmysqlclient.so that does not show double default
mysql_real_connect and is usable by akonadiserver.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/18289] Support copy relocation in PIE

2016-03-06 Thread dura911111 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=18289

dura  changed:

   What|Removed |Added

 CC||dura91 at gmail dot com

--- Comment #3 from dura  ---
This test failed with:
tmpdir/copyreloc-main.o: In function `main':
(.text.startup+0xc): undefined reference to `a_glob'
collect2: error: ld returned 1 exit status

if --as-needed is given to the linker. Is this normal?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/18289] Support copy relocation in PIE

2016-03-06 Thread dura911111 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=18289

--- Comment #5 from dura  ---
Same problem for these testcase:
FAIL: Build pr18900a
FAIL: Build pr18900a
FAIL: Build pr18900b
FAIL: Build pr18900b
FAIL: Build gotpc1
FAIL: Build gotpc1

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/19774] New: testsuite failures when --as-needed is given to the linker

2016-03-06 Thread dura911111 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19774

Bug ID: 19774
   Summary: testsuite failures when --as-needed is given to the
linker
   Product: binutils
   Version: 2.26
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: hjl.tools at gmail dot com
  Reporter: dura91 at gmail dot com
  Target Milestone: ---

This tests will fail if --as-needed is given to the linker:
FAIL: Build pr18900a
FAIL: Build pr18900b
FAIL: Build gotpc1

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/19784] New: internal error in elf_x86_64_relocate_section with -Bsymbolic-functions

2016-03-07 Thread dura911111 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19784

Bug ID: 19784
   Summary: internal error in elf_x86_64_relocate_section with
-Bsymbolic-functions
   Product: binutils
   Version: 2.27 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: dura91 at gmail dot com
  Target Milestone: ---

Created attachment 9072
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9072&action=edit
Files used by ld

When compiling glibc with linker flag Bsymbolic-functions, I got:
ld: BFD (GNU Binutils) 2.26.51.20160307 internal error, aborting at
elf64-x86-64.c:4247 in elf_x86_64_relocate_section
No assert if Bsymbolic-functions is removed. binutils 2.26 shows same issue.

The linker command line was:
ld -plugin ./liblto_plugin.so -plugin-opt=lto-wrapper
-plugin-opt=-fresolution=/tmp/ccQP0SYe.res --eh-frame-hdr -m elf_x86_64
--hash-style=gnu --as-needed -O1 -Bsymbolic-functions -shared -o libc.so -e
__libc_main -L. -O1 -z defs -dynamic-linker=/lib/ld-linux-x86-64.so.2
--version-script=libc.map -soname=libc.so.6 -z combreloc -z relro
--hash-style=both abi-note.o soinit.os libc_pic.os sofini.os interp.os ld.so
-lgcc -T shlib.lds

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/19789] New: version node not found for symbol with --dynamic-list-cpp-new or --dynamic-list-cpp-typeinfo

2016-03-08 Thread dura911111 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19789

Bug ID: 19789
   Summary: version node not found for symbol with
--dynamic-list-cpp-new or --dynamic-list-cpp-typeinfo
   Product: binutils
   Version: 2.27 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: hjl.tools at gmail dot com
  Reporter: dura91 at gmail dot com
  Target Milestone: ---

Created attachment 9076
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9076&action=edit
Files used by ld

When compiling glibc:
ld -plugin ./liblto_plugin.so -plugin-opt=lto-wrapper
-plugin-opt=-fresolution=/tmp/cc9qcsaE.res --eh-frame-hdr -m elf_x86_64
--dynamic-list-cpp-new -dynamic-linker /lib/ld-linux-x86-64.so.2 -o
librtld.map.o dl-allobjs.os -r libc_pic.a -L. -lgcc -Map librtld.mapT

gives:

ld: librtld.map.o: version node not found for symbol
pthread_cond_wait@@GLIBC_2.3.2
ld: failed to set dynamic section sizes: Bad value

Same problem with --dynamic-list-cpp-typeinfo. No problems if neither
--dynamic-list-cpp-new nor --dynamic-list-cpp-typeinfo is given.

Only head is affected. binutils 2.26 seems to work fine.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils