Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Mar 2002 00:34:56 +0100 (CET)
From:      Dimitry Andric <dim@xs4all.nl>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/36221: icewm port fails to configure
Message-ID:  <20020322233456.8DAE75651@tensor.xs4all.nl>

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

>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




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