Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Mar 2001 17:31:17 -0800 (PST)
From:      vanmaren@fast.cs.utah.edu
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/26190: new port request: libelf
Message-ID:  <200103290131.f2T1VHf03400@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         26190
>Category:       ports
>Synopsis:       new port request: libelf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          wish
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 28 17:40:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Kevin Van Maren
>Release:        4.2-RELEASE
>Organization:
>Environment:
FreeBSD machine.bogus.domain 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Mon Nov 20 13:02:55 GMT 2000     jkh@bento.FreeBSD.org:/usr/src/sys/compile/GENERIC  i386
>Description:
libelf is a library for manipulating ELF object files and is available on SVR4 machines and as a RPM for RedHat Linux.  A "free" version (as opposed to the "real" SVR4 one) is available at http://www.stud.uni-hannover.de/~michael/software/, the latest version being 0.7.0.

>How-To-Repeat:
Try to compile something on FreeBSD that requires libelf, commonly used in SVR4, and isn't currently available in the FreeBSD ports collection.

>Fix:
Create a FreeBSD port (probably devel/libelf) using the following information:

1. fetch http://www.stud.uni-hannover.de/~michael/software/libelf-0.7.0.tar.gz
2. (maybe) read the included README, also available at http://www.stud.uni-hannover.de/~michael/software/libelf-0.7.0.README
3. apply the following patch (to get it to not think FreeBSD's elf.h is the same as the SVR4/Linux elf.h, since it expects it to have certain #defines if it exists):

=== start of patch ===
--- libelf-0.7.0/configure.orig Wed Mar 28 19:04:42 2001
+++ libelf-0.7.0/configure      Wed Mar 28 19:04:56 2001
@@ -1038,7 +1038,8 @@

 fi

-for ac_hdr in unistd.h elf.h sys/elf.h
+# for ac_hdr in unistd.h elf.h sys/elf.h
+for ac_hdr in unistd.h sys/elf.h
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
=== end of patch ===
4. cd libelf-0.7.0
5. ./configure
6. make
7. make install (as root), which installs header files in /usr/local/include/libelf and libelf.a in /usr/local/lib

You may want to enable the shared-library version and/or disable the NLS support (there are no message files) as described in the README.

The README also lists mirror sites for the software:
    ftp://sunsite.unc.edu/pub/Linux/libs/
    ftp://ftp.stud.uni-hannover.de/pub/users/michael/
    http://www.stud.uni-hannover.de/~michael/software/

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103290131.f2T1VHf03400>