FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian GCC

 
 
LinkBack Thread Tools
 
Old 08-21-2012, 10:00 PM
Svante Signell
 
Default 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
 

Thread Tools




All times are GMT. The time now is 03:46 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org