Package: cl-sql
Version: 6.5.0-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu ubuntu-patch utopic

There was a problem when building the package:

ld -L/usr/local/lib64/mysql -L/usr/local/lib/mysql -L/usr/lib64/mysql
-L/usr/lib/mysql -L/sw/lib -L/opt/local/lib/mysql
-L/opt/local/lib/mysql5/mysql -L/usr/local/mysql/lib
-L/usr/lib/gcc/i686-pc-cygwin/3.4.4 -lmysqlclient -lz -lc
-Bsymbolic-functions -Wl,-z,relro -shared -soname=clsql_mysql
clsql_mysql.o -o clsql_mysql64.so
ld: unrecognized option '-Wl,-z,relro'

cl-sql fails to compile when building with some LDFLAGS options which
are sent with -Wl options; those are standard when linking with gcc, so
switching from LD to gcc.


+Index: cl-sql-6.5.0/db-mysql/Makefile
+===================================================================
+--- cl-sql-6.5.0.orig/db-mysql/Makefile
++++ cl-sql-6.5.0/db-mysql/Makefile
+@@ -64,14 +64,14 @@ else
+         else
+           ifneq ($(OS_LINUX64),0)
+           gcc $(CFLAGS) -fPIC -c $(source) -o $(object)
+-          ld $(LDFLAGS) -shared -soname=$(base) $(object) -o  $(shared64_lib)
++          gcc $(LDFLAGS) -fPIC -shared -Wl,-soname=$(base) $(object) -o
$(shared64_lib)
+           rm $(object)
+           @echo "Ensure that you have multiarch i386 build tools and
libraries if you want to build 32-bit library"
+           -gcc $(CFLAGS32) -fPIC -c $(source) -o $(object)
+           -ld -shared -soname=$(base) $(object) $(LDFLAGS32) -o $(shared_lib)
+           else
+           gcc $(CFLAGS) -fPIC -c $(source) -o $(object)
+-          ld -shared -soname=$(base) $(object) $(LDFLAGS) -o $(shared_lib)
++          gcc -shared -fPIC -Wl,-soname=$(base) $(object) $(LDFLAGS) -o
$(shared_lib)
+           endif
+         endif
+       endif
+Index: cl-sql-6.5.0/uffi/Makefile
+===================================================================
+--- cl-sql-6.5.0.orig/uffi/Makefile
++++ cl-sql-6.5.0/uffi/Makefile
+@@ -55,14 +55,14 @@ else
+         else
+           ifneq ($(OS_LINUX64),0)
+           gcc $(CFLAGS) -fPIC -DPIC -c $(source) -o $(object)
+-          ld $(LDFLAGS) -shared -soname=$(base) -lc $(object) -o
$(shared64_lib)
++          gcc $(LDFLAGS) -fPIC -shared -Wl,-soname=$(base) -lc $(object) -o
$(shared64_lib)
+           rm -f $(object)
+           @echo "Ensure that you have multiarch i386 build tools if you
want to build 32-bit library"
+           -gcc -m32 $(CFLAGS) -fPIC -DPIC -c $(source) -o $(object)
+           -ld -melf_i386 $(LDFLAGS) -shared -soname=$(base) -lc $(object)
-o $(shared_lib)
+           else
+           gcc -fPIC -DPIC -c $(source) -o $(object)
+-          ld -shared -soname=$(base) -lc $(object) -o $(shared_lib)
++          gcc -fPIC -shared -Wl,-soname=$(base) -lc $(object) -o $(shared_lib)
+         endif
+       endif
+     endif



Regards,

Pierre-André MOREY


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to