Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian GCC (http://www.linux-archive.org/debian-gcc/)
-   -   Bug#685561: gnat-4.6: Add -lrt flag to link libgnarl-4.6.so.1 (http://www.linux-archive.org/debian-gcc/696481-bug-685561-gnat-4-6-add-lrt-flag-link-libgnarl-4-6-so-1-a.html)

Svante Signell 08-21-2012 10:00 PM

Bug#685561: gnat-4.6: Add -lrt flag to link libgnarl-4.6.so.1
 
Package: gnat-4.6
Version: 4.6.3-5
Severity: important
Tags: patch
Usertags: hurd
User: debian-hurd@lists.debian.org

When building polyorb-2.8~20110207 for GNU/Hurd linking of
DYNAMIC/tools/po_catref/po_catref fails due to an undefined reference:
/usr/lib/i386-gnu/libgnarl-4.6.so.1: undefined reference to
`clock_gettime'

The reason for that is that libgnarl-4.6.so.1 is not linked with
librt.so.1. The solution is to add -lrt to the THREADSLIB variable.
Preferably it could be applied by modifying the patch:
gcc_ada_gcc-interface_Makefile.in.diff
--- a/debian/patches/gcc_ada_gcc-interface_Makefile.in.diff 2012-07-19
00:12:30.000000000 +0200
+++ b/debian/patches/gcc_ada_gcc-interface_Makefile.in.diff 2012-08-21
23:52:59.000000000 +0200
@@ -24,7 +24,7 @@
+ indepsw.adb<indepsw-gnu.adb
+
+ EH_MECHANISM=-gcc
-+ THREADSLIB = -lpthread
++ THREADSLIB = -lpthread -lrt
+ GNATLIB_SHARED = gnatlib-shared-dual
+ GMEM_LIB = gmemlib
+ LIBRARY_VERSION := $(LIB_VERSION)


--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/1345586415.25812.57.camel@hp.my.own.domain


All times are GMT. The time now is 01:27 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.