ports/123056: net/libnet-devel is unusable

Antoine Brodin antoine.brodin at laposte.net
Thu Apr 24 18:00:04 UTC 2008


>Number:         123056
>Category:       ports
>Synopsis:       net/libnet-devel is unusable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 24 18:00:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Antoine Brodin
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
none
>Environment:
System: FreeBSD barton.dreadbsd.org. 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sat Apr 19 22:15:51 CEST 2008 root at barton.dreadbsd.org.:/usr/obj/usr/src/sys/GENERIC i386


>Description:
net/libnet-devel is unusable
>How-To-Repeat:
install net/libnet-devel
> cat > test.c << EOF
#include <libnet.h>

int
main(void)
{
        char errbuf[LIBNET_ERRBUF_SIZE];
        libnet_t *l;

        l = libnet_init(LIBNET_LINK, NULL, errbuf);
        return (0);
}
EOF
> gcc `libnet113-config --cflags` `libnet113-config --defines` `libnet113-config --libs` test.c -o test
> ldd test
test:   
        libnet.so.1 => not found (0x0)
        libc.so.7 => /lib/libc.so.7 (0x2807d000)
> ./test
/libexec/ld-elf.so.1: Shared object "libnet.so.1" not found, required by "test"

>Fix:

Add something like this to net/libnet-devel/Makefile:
USE_LDCONFIG=${PREFIX}/lib/libnet${SHORT_VER}


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



More information about the freebsd-ports-bugs mailing list