tdbc is built without -fPIC option
Closed / Duplicate2501258fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2009-01-12 12:20:43
Hi! Currently tdbc shared library is built without -fPIC option, which may cause build problems on architectures other than x86. You can see build failures on x86_64 (http://experimental.debian.net/fetch.php?&pkg=tcl8.6&ver=8.6.0%7Eb1-1&arch=amd64&stamp=1230511061&file=log&as=raw) and HP PA-RISC (http://experimental.debian.net/fetch.php?&pkg=tcl8.6&ver=8.6.0%7Eb1-1&arch=hppa&stamp=1230521525&file=log&as=raw) architectures. To fix this bug it should be sufficient to add $(SHLIB_CFLAGS) to COMPILE definition: --- tcl8.6-8.6.0~b1.orig/pkgs/tdbc1.0b1/Makefile.in +++ tcl8.6-8.6.0~b1/pkgs/tdbc1.0b1/Makefile.in @@ -167,7 +167,7 @@ LIBS= @PKG_LIBS@ @LIBS@ AR= @AR@ CFLAGS= @CFLAGS@ -COMPILE= $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +COMPILE= $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(SHLIB_CFLAGS) #======================================================================== # Start of user-definable TARGETS section
dkf Ticket [2501258fff]: 2 changes
[History diff]2009-01-12 20:17:22
dgpplain2009-01-12 21:23:35
kbk, do you really want bugs reported here, or redirected to the tdbc project bug tracker?
kennykbplain2009-01-13 08:20:44
Either way. I read both :)
kennykbplain2009-01-13 08:29:09
I think this is tripping over a misleading compiler error message. The code in fact is being built with -fPIC, but the stubs table definition includes one relocation that -fPIC cannot handle. http://tdbc.tcl.tk/index.cgi/tktview?name=28616c6f8c describes the bug as I understand it. Both the current Tcl HEAD and the 1.0b6 version of tdbc http://tdbc.tcl.tk/index.cgi/vinfo/4a926e130b795592063d0db968ee407fb2dd7a44 ought to fix it. Can you verify?
sf-robotplain2009-03-19 01:51:34
allow_comments - 1 This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).
Log in (anonymous is fine) to add a comment.