From owner-freebsd-ports Fri Mar 22 15:40:12 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id EA56537B404 for ; Fri, 22 Mar 2002 15:40:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2MNe1P55167; Fri, 22 Mar 2002 15:40:01 -0800 (PST) (envelope-from gnats) Received: from tensor.xs4all.nl (tensor.xs4all.nl [213.84.53.200]) by hub.freebsd.org (Postfix) with ESMTP id DF06137B41F for ; Fri, 22 Mar 2002 15:34:58 -0800 (PST) Received: by tensor.xs4all.nl (Postfix, from userid 1000) id 8DAE75651; Sat, 23 Mar 2002 00:34:56 +0100 (CET) Message-Id: <20020322233456.8DAE75651@tensor.xs4all.nl> Date: Sat, 23 Mar 2002 00:34:56 +0100 (CET) From: Dimitry Andric Reply-To: Dimitry Andric To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/36221: icewm port fails to configure Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 36221 >Category: ports >Synopsis: icewm port fails to configure >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 22 15:40:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Dimitry Andric >Release: FreeBSD 4.5-STABLE i386 >Organization: n/a >Environment: System: FreeBSD tensor.xs4all.nl 4.5-STABLE FreeBSD 4.5-STABLE #0: Wed Mar 13 17:38:38 CET 2002 root@tensor.xs4all.nl:/usr/obj/usr/src/sys/TENSOR i386 >Description: The icewm port fails to configure, and thus build, with an error similar to the following: ========== configure:10350: checking for XpmReadFileToPixmap in -lXpm configure:10383: cc -o conftest -fpermissive -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Winline -Woverloaded-virtual -W -fno-exceptions -fno-rtti -O -pipe -I/usr/local/include conftest.cc -lXpm -lSM -lICE -lgiconv -lX11 -L/usr/X11R6/lib >&5 /usr/libexec/elf/ld: cannot find -lgiconv configure:10386: $? = 1 configure: failed program was: #line 10357 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char XpmReadFileToPixmap (); #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { XpmReadFileToPixmap (); ; return 0; } configure:10403: result: no configure:10436: error: libXpm can not be found, you have to enable Imlib ========== In the used compiler command line, you can see that /usr/local/lib is not passed to cc, causing the test for XpmReadFileToPixmap to fail. Analogous errors are found in the configure log for most things that depend on libgiconv (which is properly installed on this system, btw). >How-To-Repeat: cd /usr/ports/x11-wm/icewm && make configure >Fix: I'm not sure what the proper way is to tell the configure script that it has to include $LOCALBASE/lib when trying to link tests. I've simply added LDFLAGS to the configure environment in the Makefile, which seems to fix it, but that may not be the usual way of handling this autoconf stuff. Here is a patch: diff -ud Makefile.orig Makefile --- Makefile.orig Mon Mar 18 12:56:28 2002 +++ Makefile Sat Mar 23 00:11:23 2002 @@ -30,7 +30,8 @@ AUTOCONF= autoconf AUTOCONF_DIR= ${LOCALBASE}/share/autoconf CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ - LIBS="-L${LOCALBASE}/lib" + LIBS="-L${LOCALBASE}/lib" \ + LDFLAGS="-L${LOCALBASE}/lib" CONFIGURE_ARGS= --enable-i18n --enable-nls \ --with-cfgdir=${PREFIX}/share/icewm \ --with-libdir=${PREFIX}/share/icewm \ >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message