#1692 Sample extension doesn't work on FreeBSD

obsolete: 8.3.3
closed-fixed
5
2002-03-06
2001-11-29
No

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.

Discussion

  • Don Porter

    Don Porter - 2001-11-29

    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.

     
  • Don Porter

    Don Porter - 2001-11-29
    • labels: 105676 --> 70. Sample Extension
    • assigned_to: dgp --> andreas_kupries
     
  • Andres Garcia Garcia

    Logged In: YES
    user_id=316500

    I have attached to this comment the output of the
    configure, make and make install commands.

     
  • Andres Garcia Garcia

    Compiling output

     
  • Andreas Kupries

    Andreas Kupries - 2001-12-06

    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.

     
  • Andreas Kupries

    Andreas Kupries - 2001-12-06
    • status: open --> pending
     
  • Don Porter

    Don Porter - 2001-12-07

    Logged In: YES
    user_id=80530

    1. Does the sample extension require GNU make?
    2. Is the submitter of this report using GNU make?

     
  • Don Porter

    Don Porter - 2001-12-07
    • status: pending --> open
     
  • Andreas Kupries

    Andreas Kupries - 2001-12-07

    Logged In: YES
    user_id=75003

    IIRC TEA does rely on GNU make. I will check this with Jeff.

     
  • Andreas Kupries

    Andreas Kupries - 2001-12-11
    • assigned_to: andreas_kupries --> hobbs
     
  • Andreas Kupries

    Andreas Kupries - 2001-12-11

    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.

     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2002-03-06
    • status: open --> closed-fixed
     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2002-03-06

    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.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks