NetBSD Problem Report #52005
From www@NetBSD.org Sat Feb 25 08:40:22 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id B0CFD7A21A
for <gnats-bugs@gnats.NetBSD.org>; Sat, 25 Feb 2017 08:40:22 +0000 (UTC)
Message-Id: <20170225084021.6AE4F7A28D@mollari.NetBSD.org>
Date: Sat, 25 Feb 2017 08:40:21 +0000 (UTC)
From: org.netbsd@pooryorick.com
Reply-To: org.netbsd@pooryorick.com
To: gnats-bugs@NetBSD.org
Subject: e2fsprogs-1.43.1 - libiconv and libpopt - undefined reference to optreset and libintl_gettext
X-Send-Pr-Version: www-1.0
>Number: 52005
>Category: pkg
>Synopsis: e2fsprogs-1.43.1 - libiconv and libpopt - undefined reference to optreset and libintl_gettext
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 25 08:45:00 +0000 2017
>Originator: Poor Yorick
>Release: 2016Q4
>Organization:
>Environment:
Linux xxx 3.10.0-514.el7.x86_64 #1 SMP Wed Oct 19 11:24:13 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux
>Description:
building e2fsprogs-1.43.1, with libiconv and libgetopt alread installed in a
pkgsrc collection in an alternate prefix:
gcc ... -o debugfs debug_cmds.o debugfs.o util.o ncheck.o icheck.o ls.o lsdel.o dump.o set_fields.o logdump.o htree.o unused.o e2freefrag.o filefrag.o extent_cmds.o extent_inode.o zap.o create_inode.o quota.o xattrs.o journal.o revoke.o recovery.o do_journal.o /opt/grid.pfizer.com/pkpd/dev/i64f6m46s6l2632c220i_002/lib/libintl.so /lib64/libc.so ... -Wl,-rpath -Wl,/lib64 ../lib/libsupport.a ../lib/libext2fs.a ../lib/libe2p.a ../lib/libss.a -ldl ../lib/libcom_err.a -lpthread ../lib/libblkid.a ../lib/libuuid.a ../lib/libuuid.a -ldl
util.o: In function `reset_getopt':
util.c:(.text+0x14): undefined reference to `optreset'
../lib/libsupport.a(plausible.o): In function `print_ext2_info':
plausible.c:(.text+0x1d2): undefined reference to `libintl_gettext'
plausible.c:(.text+0x20c): undefined reference to `libintl_gettext'
plausible.c:(.text+0x25a): undefined reference to `libintl_gettext'
plausible.c:(.text+0x29f): undefined reference to `libintl_gettext'
../lib/libsupport.a(plausible.o): In function `check_plausibility':
plausible.c:(.text+0x367): undefined reference to `libintl_gettext'
../lib/libsupport.a(plausible.o):plausible.c:(.text+0x3f3): more undefined refer
>How-To-Repeat:
>Fix:
Adding the following to the $LIBS environment variable resulted in a successful build:
-lgetopt -lintl
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.