From dim@tensor.xs4all.nl  Fri Mar 22 15:35:07 2002
Return-Path: <dim@tensor.xs4all.nl>
Received: from tensor.xs4all.nl (tensor.xs4all.nl [213.84.53.200])
	by hub.freebsd.org (Postfix) with ESMTP id DF06137B41F
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <dim@xs4all.nl>
Reply-To: Dimitry Andric <dim@xs4all.nl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: icewm port fails to configure
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         36221
>Category:       ports
>Synopsis:       icewm port fails to configure
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    nakai
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 22 15:40:01 PST 2002
>Closed-Date:    Mon Mar 25 04:56:40 PST 2002
>Last-Modified:  Mon Mar 25 04:56:40 PST 2002
>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:
Responsible-Changed-From-To: freebsd-ports->nakai 
Responsible-Changed-By: pat 
Responsible-Changed-When: Fri Mar 22 23:27:33 PST 2002 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36221 
State-Changed-From-To: open->closed 
State-Changed-By: ijliao 
State-Changed-When: Mon Mar 25 04:56:18 PST 2002 
State-Changed-Why:  
superceded by pr/36297 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36221 
>Unformatted:
