Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Sample extension doesn't work on FreeBSD

Closed / Fixed486768ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2001-11-29 00:44:09
I tried getting the sample extensio to work in FreeBSD 
4.2, I did the following:

- I created a 'configure' script in Linux using 
autoconf configure.in > configure. I did it Linux since
the FreeBSD install didn't seem to include it. And by the
way, in Linux the extension works fine.

- I followed the usual secuence:
- ./configure
- make
- make install

During the make install appeared the following error:

eval pkg_mkIndex exampleA0.2 ../libexampleA0.2.so 
*.tcl
warning: error while loading ../libexampleA0.2.so: 
couldn't load file "./../libexampleA0.2.so": 
./../libexampleA0.2.so: invalid shared object: 
e_phentsize != sizeof(Elf_Phdr)

The result is that the pkgIndex.tcl has no 'package 
ifneeded' line.
dgpplain2001-11-29 14:01:25
Logged In: YES 
user_id=80530

OK, it looks like the bug is in the sampleextension
module itself.  Something's gone wrong in the build so
that the libexampleA0.2.so is not actually a [load]-able
file on your FreeBSD platform.

The output from the 'make' might be helpful, revealing
details of how the extension was built.  In particular,
what compiler/linker combination are you using?

Not sure who the "maintainer" for the TEA sample extension
is, but I think it might be Andreas, or he'll know who is.
fandomplain2001-11-30 06:46:43
Logged In: YES 
user_id=316500

I have attached to this comment the output of the
configure, make and make install commands.
fandomplain2001-11-30 06:46:44
File Added - 13963: salida
andreas_kupriesplain2001-12-07 04:06:43
Logged In: YES 
user_id=75003

AFAIK we have no maintainer for the sample extension.

Regarding the output of make, I see the 'ld' command, but 
no objects which are link into the library.
dgpplain2001-12-07 11:52:00
Logged In: YES 
user_id=80530

1. Does the sample extension require GNU make?
2. Is the submitter of this report using GNU make?
andreas_kupriesplain2001-12-08 00:22:43
Logged In: YES 
user_id=75003

IIRC TEA does rely on GNU make. I will check this with Jeff.
andreas_kupriesplain2001-12-12 00:40:36
Logged In: YES 
user_id=75003

Ok, Jeff tells me that TEA does not depend on gnu make.
He asked me to shunt this item to him. Doing that now.
hobbsplain2002-03-06 15:47:50
Logged In: YES 
user_id=72656

this had to do with FreeBSD's regular make not handling 
$($@_OBJECTS) substitutions that had .'s in them (or 
something like that).  Anyway, gmake works just fine, but 
I've reworked the whole TEA stuff and sampleextension to be 
much more portable.
Log in (anonymous is fine) to add a comment.

Attachments: