NetBSD Problem Report #40958

From www@NetBSD.org  Wed Mar  4 09:41:03 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 52E9F63BD3B
	for <gnats-bugs@gnats.netbsd.org>; Wed,  4 Mar 2009 09:41:03 +0000 (UTC)
Message-Id: <20090304094102.D9B3963BAB8@www.NetBSD.org>
Date: Wed,  4 Mar 2009 09:41:02 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: x11/lesstif depends on libXft
X-Send-Pr-Version: www-1.0

>Number:         40958
>Category:       pkg
>Synopsis:       x11/lesstif depends on libXft
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 04 09:45:00 +0000 2009
>Last-Modified:  Mon Mar 09 08:45:00 +0000 2009
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
SunOS opensolaris 5.11 snv_101b i86pc i386 i86pc

>Description:
x11/lesstif uses libXft, but does mention it as dependency.
>How-To-Repeat:

>Fix:
--- Makefile.orig       Mon Jul 14 05:56:18 2008
+++ Makefile    Tue Mar  3 23:45:49 2009
@@ -68,6 +68,7 @@

 .include "../../fonts/fontconfig/buildlink3.mk"
 .include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libXft/buildlink3.mk"
 .include "../../x11/libXp/buildlink3.mk"
 .include "../../x11/libXrender/buildlink3.mk"
 .include "../../x11/libXt/buildlink3.mk"

>Audit-Trail:
From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/40958
Date: Fri, 6 Mar 2009 19:37:15 -0600 (CST)

 What type of error do you get regarding lesstif missing dependency of
 libXft?

 (I looked at lesstif 0.95.0nb1 libraries and binaries and they don't link 
 with libXft as far as I see.)


From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@NetBSD.org, gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/40958
Date: Mon, 09 Mar 2009 09:44:51 +0100

 Use the source...

 gmake[2]: Entering directory 
 `/opt/pkgsrc/pkgsrc/x11/lesstif/work.ssc/lesstif-0.95.0/lib/Xm-2.1'
 [...]
 /opt/pkg/ssc/bin/pdksh ../../libtool --tag=CC --mode=compile cc 
 -DHAVE_CONFIG_H -I. -I. -I../../include  -I../../include/Motif-2.1 
 -I../../include/Motif-2.1 -I/opt/pkg/ssc/include -I/opt/pkg/ssc/include 
 -I/opt/pkg/ssc/include/freetype2 -I/opt/pkg/ssc/include/freetype2 
 -I/opt/pkg/ssc/include -I/opt/pkg/ssc/include  -O -I/opt/pkg/ssc/include 
 -I/opt/pkg/ssc/include/freetype2 -c -o Print.lo Print.c
   cc -DHAVE_CONFIG_H -I. -I../../include -I../../include/Motif-2.1 
 -I/opt/pkgsrc/pkgsrc/x11/lesstif/work.ssc/.buildlink/include 
 -I/opt/pkgsrc/pkgsrc/x11/lesstif/work.ssc/.buildlink/include/freetype2 
 -O -c Print.c  -KPIC -DPIC -o .libs/Print.o
 "../../include/Motif-2.1/XmI/XmI.h", line 50: cannot find include file: 
 <X11/Xft/Xft.h>
 "../../include/Motif-2.1/XmI/XmI.h", line 101: syntax error before or 
 at: XftPattern
 "../../include/Motif-2.1/XmI/XmI.h", line 502: warning: old-style 
 declaration or incorrect type for: XftDraw
 "../../include/Motif-2.1/XmI/XmI.h", line 502: syntax error before or at: *
 "../../include/Motif-2.1/XmI/XmI.h", line 502: warning: old-style 
 declaration or incorrect type for: _XmXftDrawCreate
 "../../include/Motif-2.1/XmI/XmI.h", line 503: syntax error before or 
 at: XftDraw
 "../../include/Motif-2.1/XmI/XmI.h", line 503: warning: undefined or 
 missing type for: XftDraw
 cc: acomp failed for Print.c
 gmake[2]: *** [Print.lo] Error 1
 gmake[2]: Leaving directory 
 `/opt/pkgsrc/pkgsrc/x11/lesstif/work.ssc/lesstif-0.95.0/lib/Xm-2.1'
 gmake[1]: *** [all-recursive] Error 1
 gmake[1]: Leaving directory 
 `/opt/pkgsrc/pkgsrc/x11/lesstif/work.ssc/lesstif-0.95.0/lib'
 gmake: *** [all-recursive] Error 1
 *** Error code 2

 I tried this on OpenSolaris 11, and it happens only with the Sun Studio 
 Compiler, not with GCC. Ah, because USE_XFT is not defined in the latter 
 case. Hmm, even when adding the dependency on libXft in Makefile, when 
 using GCC, configure does not pick up libXft.

 -- 
   Jörn Clausen                             joern.clausen@uni-bielefeld.de
   Hochschulrechenzentrum                 http://www.uni-bielefeld.de/hrz/
   Universität Bielefeld

NetBSD Home
NetBSD PR Database Search

(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.