From dim@tensor.xs4all.nl  Sun Apr 27 14:38:16 2003
Return-Path: <dim@tensor.xs4all.nl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B030437B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 27 Apr 2003 14:38:16 -0700 (PDT)
Received: from tensor.xs4all.nl (tensor.xs4all.nl [194.109.160.97])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 27B2043FAF
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 27 Apr 2003 14:38:16 -0700 (PDT)
	(envelope-from dim@tensor.xs4all.nl)
Received: by tensor.xs4all.nl (Postfix, from userid 1000)
	id 464E8555C; Sun, 27 Apr 2003 23:38:13 +0200 (CEST)
Message-Id: <20030427213813.464E8555C@tensor.xs4all.nl>
Date: Sun, 27 Apr 2003 23:38:13 +0200 (CEST)
From: Dimitry Andric <dim@xs4all.nl>
Reply-To: Dimitry Andric <dim@xs4all.nl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: icewm-1.2.7 port fails on libintl.h
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         51481
>Category:       ports
>Synopsis:       icewm-1.2.7 port fails on libintl.h
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    nakai
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 27 14:40:15 PDT 2003
>Closed-Date:    Fri Jul 11 12:18:41 PDT 2003
>Last-Modified:  Fri Jul 11 12:18:41 PDT 2003
>Originator:     Dimitry Andric
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD tensor.xs4all.nl 4.8-STABLE FreeBSD 4.8-STABLE #0: Sun Apr 20 20:59:19 CEST 2003 root@tensor.xs4all.nl:/usr/obj/usr/src/sys/TENSOR i386
>Description:
Building the icewm-1.2.7 port fails on libintl.h, although the gettext
port is installed properly, and libintl.h is in /usr/local/include.

This is because the CXXFLAGS variable, used for compiling .cc files,
does not contain a -I/usr/local/include option.

Additionally, if such an option is manually added, the compilation
fails later in the linking stage, because the LFLAGS variable, used
with linking, does not contain a -L/usr/local/lib option.
>How-To-Repeat:
Try to build the icewm-1.2.7 port.

===>  Building for icewm-1.2.7
gmake[1]: Entering directory `/usr/ports/x11-wm/icewm/work/icewm-1.2.7/src'
Compiling ymsgbox.o...
In file included from ymsgbox.cc:20:
intl.h:7: libintl.h: No such file or directory
In file included from ymsgbox.cc:17:
wmframe.h: In method `bool YFrameWindow::isFullscreen() const':
wmframe.h:347: warning: can't inline call to `long int YFrameWindow::getState() const'
wmframe.h:263: warning: called from here
ymsgbox.cc: In method `YMsgBox::YMsgBox(int, YWindow * = 0)':
ymsgbox.cc:34: warning: implicit declaration of function `int gettext(...)'
ymsgbox.cc:34: no matching function for call to `YActionButton::setText (int)'
ybutton.h:24: candidates are: void YButton::setText(const char *, int = -1)
ymsgbox.cc:42: no matching function for call to `YActionButton::setText (int)'
ybutton.h:24: candidates are: void YButton::setText(const char *, int = -1)
gmake[1]: *** [ymsgbox.o] Error 1
gmake[1]: Leaving directory `/usr/ports/x11-wm/icewm/work/icewm-1.2.7/src'
gmake: *** [base] Error 2
*** Error code 2

Stop in /usr/ports/x11-wm/icewm.

>Fix:
I'm not sure about the mechanism that the icewm configure script uses
to construct the compilation variables, so I simply hack the Makefiles
after the configure stage, and manually add -I/usr/local/include en
-L/usr/local/lib.  How this is done properly with the autoconf stuff
is quite beyond me. :)
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->nakai 
Responsible-Changed-By: arved 
Responsible-Changed-When: Mon Apr 28 06:24:26 PDT 2003 
Responsible-Changed-Why:  
Over to Maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=51481 
State-Changed-From-To: open->closed 
State-Changed-By: nork 
State-Changed-When: Fri Jul 11 12:18:23 PDT 2003 
State-Changed-Why:  
May be, fixed by ports/53340. 

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