Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2018-11-01
13:58 • Closed ticket [6db51b2bcd]: dragonflybsd: build for itcl, sqlite fails due to mi... artifact: 395706e018 user: dgp
2018-10-30
16:09 • Ticket [6db51b2bcd]: 3 changes artifact: 11fc030d7e user: dgp
15:42 • Ticket [6db51b2bcd]: 3 changes artifact: 9264f39c44 user: bll
15:05 • Ticket [6db51b2bcd]: 3 changes artifact: 2a93fb5970 user: dgp
14:57 • Ticket [6db51b2bcd]: 3 changes artifact: ca37b6cc55 user: bll
14:38 • Ticket [6db51b2bcd]: 3 changes artifact: c43fd80bf7 user: dgp
13:02 • Ticket [6db51b2bcd]: 3 changes artifact: 8050e8e84e user: bll
12:43 • New ticket [6db51b2bcd]. artifact: b89cede8c8 user: bll

dragonflybsd: build for itcl, sqlite fails due to missing linker command

Closed / Fixed6db51b2bcd1be96d28cbc83fd2c6b5e42eebf751Created 8 years agoUpdated 8 years ago
Descriptionplain2018-10-30 12:43:00
I don't use anything in pkgs/, so I will just remove these and move on.
Though I do hope that the thread package builds, haven't gotten there yet.

rm -f libitcl4.1.1
-o libitcl4.1.1 itcl2TclOO.o itclBase.o itclBuiltin.o itclClass.o itclCmd.o itclEnsemble.o itclHelpers.o itclInfo.o itclLinkage.o itclMethod.o itclObject.o itclParse.o itclStubs.o itclStubInit.o itclResolve.o itclTclIntStubsFcn.o itclUtil.o itclMigrate2TclCore.o itclTestRegisterC.o  -L/home/bll/t/tcl868/tcl8.6.8/unix -ltclstub8.6
make[1]: exec(-o) failed (No such file or directory)
*** Error code 1

rm -f libsqlite3.21.0
-o libsqlite3.21.0 tclsqlite3.o -lpthread -L/home/bll/t/tcl868/tcl8.6.8/unix -ltclstub8.6
make[1]: exec(-o) failed (No such file or directory)
*** Error code 1

Edit:

To get the thread packages to build, I edited:
a) unix/Makefile
   a1) added -fPIC to CFLAGS
b) pkgs/thread*/Makefile
   b1) changed SHLIB_CFLAGS to include -shared
   b2) changed SHLIB_LD to be ${CC} ${SHLIB_CFLAGS} (was empty).
bll Ticket [6db51b2bcd]: 3 changes [History diff]2018-10-30 13:02:59
dgpplain2018-10-30 14:38:04
Tcl+pkgs redistributes these packages in source code distribution form.

If this problem manifests in the upstream packages, best to report the build problem there directly.

If somehow the Tcl+pkgs harness is to blame, then some more detail on how to fix would be appreciated.
bllplain2018-10-30 14:57:25
I want to try the build on FreeBSD and OpenBSD and see what differences
show up compared to DragonflyBSD.

I believe at this point that the SHLIB_* parameters in tclConfig.sh are
incorrect, and all the pkgs/* builds fail due to this.  But I want to
do a comparison first with the other *BSDs first and try and see what 
is different.

DragonflyBSD is using gcc as opposed to clang, but that
shouldn't make any difference.   I want to try a gcc build on FreeBSD
to verify this.
dgpplain2018-10-30 15:05:52
Thing is that the "pkgs/* builds" aren't intended to be any different from how someone would build the package after downloading it independently for themselves.

So if the Itcl build is broken, Itcl needs to fix it, and so on.

Thanks for the testing and reporting.
bllplain2018-10-30 15:42:04
Looks like the basic problem is that configure has hard-coded system types
in a case statement and DragonFly is not there (yuck, so glad I never
went the autoconf route (wrote my own)).

In 'configure', I changed 
   FreeBSD-*)
to:
   DragonFly-*|FreeBSD-*)

and tclConfig.sh looks correct.
Had to change pkgs/thread*/configure also.
dgpplain2018-10-30 16:09:53
Ok, with that info, we should be able to push the fix back to its autoconf origins.
dgpplain2018-11-01 13:58:51
Once this fix to tclconfig,

https://core.tcl.tk/tclconfig/info/6ff48b25e2bd487e

gets propogated, this matter should be resolved.
Log in (anonymous is fine) to add a comment.