Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2010-01-04
04:17 • Closed ticket [1636685fff]: FreeBSD's ld does not understand -pthread pl... artifact: 3f49d0b1f5 user: dkf
04:14 • Ticket [1636685fff]: 1 change artifact: da8a5fb010 user: dkf
04:14 • Ticket [1636685fff]: 4 changes artifact: b49a261ee0 user: dkf
2010-01-01
20:28 • Ticket [1636685fff]: 4 changes artifact: f94039d456 user: dkf
20:25 • Ticket [1636685fff]: 4 changes artifact: ff87fa75c2 user: dkf
20:25 • Ticket [1636685fff]: 4 changes artifact: e4f42b06df user: dkf
20:25 • Add attachment tcl.m4.patch to ticket [1636685fff] artifact: 9356339953 user: dkf
20:24 • Ticket [1636685fff] FreeBSD's ld does not understand -pthread status sti... artifact: 66ac3cae27 user: dkf
20:24 • Ticket [1636685fff]: 4 changes artifact: f32ebf2182 user: dkf
2009-06-18
15:38 • Ticket [1636685fff]: 2 changes artifact: 6240489b6c user: dkf
2007-01-17
18:59 • Ticket [1636685fff]: 4 changes artifact: 72a1cf9677 user: rebum
18:58 • Ticket [1636685fff]: 4 changes artifact: cdad45483b user: rebum
18:00 • Ticket [1636685fff]: 4 changes artifact: 7156079d97 user: rebum
17:54 • Ticket [1636685fff]: 4 changes artifact: ee7ee376b1 user: rebum
17:54 • Ticket [1636685fff]: 4 changes artifact: 93f5f02372 user: rebum
2007-01-16
17:47 • Ticket [1636685fff]: 4 changes artifact: 0258247a1c user: rebum
10:47 • New ticket [1636685fff]. artifact: 48af32f793 user: rebum

FreeBSD's ld does not understand -pthread

Closed / Accepted1636685fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 17 years ago
Descriptionplain2007-01-16 10:47:20
FreeBSD's linker does not understand the -pthread option.
Since FreeBSD 5.3 on all architectures except alpha and sparc64 -lpthread is used. The mentioned two use -lkse. See attached patch.
rebumplain2007-01-16 17:47:22
File Added - 211501: tcl.m4.patch
rebumplain2007-01-17 17:54:10
Logged In: YES 
user_id=41220
Originator: YES

Looks like I was not quite right.
rebumplain2007-01-17 17:54:13
File Deleted - 211501:
rebumplain2007-01-17 18:00:03
File Added - 211669: tcl.m4.patch

Logged In: YES 
user_id=41220
Originator: YES

I removed the patch attached and replaced it by a new one.

Inspiration:

Patch for TCL configure in the FreeBSD ports tree
ports/lang/tcl84/files/patch-configure:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/tcl84/files/patch-configure?rev=1.10&content-type=text/x-cvsweb-markup

PTHREAD_CFLAGS and PTHREAD_LIBS are initialized in ports/Mk/bsd.port.mk:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/Mk/bsd.port.mk?rev=1.545&content-type=text/x-cvsweb-markup

SHLIB_MAJOR in src/share/mk/bsd.lib.mk, it is commonly used in FreeBSD ports:
http://www.freebsd.org/cgi/cvsweb.cgi/src/share/mk/bsd.lib.mk?rev=1.179&content-type=text/x-cvsweb-markup
File Added: tcl.m4.patch
rebumplain2007-01-17 18:58:27
File Deleted - 211669:
rebumplain2007-01-17 18:59:17
File Added - 211674: tcl.m4.patch

Logged In: YES 
user_id=41220
Originator: YES

File Added: tcl.m4.patch
dkf Ticket [1636685fff]: 2 changes [History diff]2009-06-18 15:38:55
dkfplain2010-01-01 20:24:31
Patch no longer applies to the HEAD nicely, and possibly interferes with NetBSD or ancient FreeBSD support. Suggested new patch (distilled from the old one except in a slightly different way) attached; let me know if it is right and I'll get it applied ASAP.
dkf Ticket [1636685fff]: 1 change [History diff]2010-01-01 20:24:32
dkfplain2010-01-01 20:25:01
File Added - 357319: tcl.m4.patch
dkfplain2010-01-01 20:25:20
File Deleted - 211674:
dkfplain2010-01-01 20:28:25
BTW, my patch should bring tcl.m4 into alignment with that used in the most current ports. (Thanks for the link, that let me check this directly.)
dkfplain2010-01-04 04:14:42
Applied to HEAD and TEA. Since this is the configuration that is used in FreeBSD builds (and it looks very good) I've not had to spend so long hanging around waiting for confirmation.
dkf Ticket [1636685fff]: 1 change [History diff]2010-01-04 04:14:43
dkfplain2010-01-04 04:17:22
allow_comments - 1

And to 8.5 branch too
Log in (anonymous is fine) to add a comment.

Attachments: