Subject: pkg/37271: graphics/gimp-rawphoto fails to build on Solaris with gcc-4.2.2
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <raymond.meyer@rambler.ru>
List: pkgsrc-bugs
Date: 11/03/2007 19:25:01
>Number:         37271
>Category:       pkg
>Synopsis:       graphics/gimp-rawphoto fails to build on Solaris with gcc-4.2.2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 03 19:25:00 +0000 2007
>Originator:     raymond
>Release:        
>Organization:
>Environment:
SunOS ultra10 5.10 Generic_118833-33 sun4u sparc SUNW,Ultra-5_10
>Description:
===> Building for gimp-rawphoto-1.19nb12
/usr/bin/ln -sf /opt/pkg/bin/gimptool-2.0  /opt/pkg.obj/graphics/gimp-rawphoto/work.ultra10/.buildlink/bin/gimptool
gcc -Wall -g -o ./rawphoto rawphoto.o `gimptool --libs`
Undefined                       first referenced
 symbol                             in file
exp                                 rawphoto.o  (symbol belongs to implicit dependency /usr/lib/libm.so.2)
log                                 rawphoto.o  (symbol belongs to implicit dependency /usr/lib/libm.so.2)
pow                                 rawphoto.o  (symbol belongs to implicit dependency /usr/lib/libm.so.2)
ld: fatal: Symbol referencing errors. No output written to ./rawphoto
collect2: ld returned 1 exit status
*** Error code 1

Stop.
bmake: stopped in /opt/pkg.obj/graphics/gimp-rawphoto/work.ultra10/rawphoto-200410220910/src
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/graphics/gimp-rawphoto
*** Error code 1

>How-To-Repeat:

>Fix:
Compiler command is missing -lm flag