NetBSD Problem Report #40711

From www@NetBSD.org  Sat Feb 21 16:58:59 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id DAB7463BB35
	for <gnats-bugs@gnats.netbsd.org>; Sat, 21 Feb 2009 16:58:59 +0000 (UTC)
Message-Id: <20090221165859.AD41B63B8C3@narn.NetBSD.org>
Date: Sat, 21 Feb 2009 16:58:59 +0000 (UTC)
From: kawakubo.pr@gmail.com
Reply-To: kawakubo.pr@gmail.com
To: gnats-bugs@NetBSD.org
Subject: print/ja-vfxdvik needs LDFLAGS -lm on Solaris
X-Send-Pr-Version: www-1.0

>Number:         40711
>Category:       pkg
>Synopsis:       print/ja-vfxdvik needs LDFLAGS -lm on Solaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    solaris-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 21 17:00:00 +0000 2009
>Last-Modified:  Sat Feb 21 22:14:19 +0000 2009
>Originator:     KAWAKUBO Hiroshi
>Release:        pkgsrc-current on Solaris 10
>Organization:
>Environment:
SunOS XXX 5.10 Generic_137138-09 i86pc i386 i86pc
>Description:
print/ja-vfxdvik fails to compile on Solaris 10 with the following error:

gcc -o vfxdvi.bin -L/usr/pkg/gcc34/lib/gcc/i386-pc-solaris2.10/3.4.6 -Wl,-R/usr/pkg/gcc34/lib/gcc/i386-pc-solaris2.10/3.4.6 -L/usr/pkg/gcc34/lib -Wl,-R/usr/pkg/gcc34/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/gcc34/lib/gcc/i386-pc-solaris2.10/3.4.6/ -L/usr/lib -Wl,-R/usr/lib -L/usr/openwin/lib -Wl,-R/usr/openwin/lib xdvi.o dvi-draw.o dvi-init.o events.o font-open.o string-utils.o my-snprintf.o my-vsnprintf.o help-window.o message-window.o statusline.o xserver-info.o gf.o pk.o psdps.o psgs.o psheader.o psnews.o special.o util.o vf.o sfDir.o sfDraw.o sfPath.o sfSelFile.o hypertex.o mime.o wwwfetch.o zeit.o dnpzeit.o toc.o markpage.o markring.o print.o paper.o tategaki.o vfontmap.o vf2ft.o alloca.o dvips.o tfmload.o -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lwwwxml -lxmltok -lxmlparse -lwwwzip -lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -ln
 sl -lsocket -lz -L/usr/pkg/lib -lssl -lcrypto -Wl,-R/usr/pkg/lib -lt1 -L/usr/openwin/lib -R/usr/openwin/lib -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11 -lsocket -lnsl -lVFlib2 -lttf ../kpathsea/STATIC/libkpathsea.a
Undefined			first referenced
 symbol  			    in file
cos                                 special.o  (symbol belongs to implicit dependency /usr/lib/libm.so.2)
pow                                 events.o  (symbol belongs to implicit dependency /usr/lib/libm.so.2)
sin                                 special.o  (symbol belongs to implicit dependency /usr/lib/libm.so.2)
atan                                special.o  (symbol belongs to implicit dependency /usr/lib/libm.so.2)
sqrt                                special.o  (symbol belongs to implicit dependency /usr/lib/libm.so.2)
floor                               special.o  (symbol belongs to implicit dependency /usr/lib/libm.so.2)
ld: fatal: Symbol referencing errors. No output written to vfxdvi.bin
collect2: ld returned 1 exit status
gmake: *** [vfxdvi.bin] Error 1
*** Error code 2
>How-To-Repeat:

>Fix:
Add LDFLAGS.SunOS+=-lm to the Makefile.

Please note that LIBS.SunOS+=-lm has no effect due to patch-aa.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sat, 21 Feb 2009 22:14:19 +0000
Responsible-Changed-Why:
Solaris pkgsrc problem.


>Unformatted:

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.