Subject: Re: pkg/37271 (graphics/gimp-rawphoto fails to build on Solaris with gcc-4.2.2)
To: None <gnats-bugs@netbsd.org>
From: None <raymond.meyer@rambler.ru>
List: pkgsrc-bugs
Date: 11/26/2007 12:16:28
On Saturday 24 November 2007 04:23:51 obache@netbsd.org wrote:
> Synopsis: graphics/gimp-rawphoto fails to build on Solaris with gcc-4.2.2
>
> Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
> Responsible-Changed-By: obache@netbsd.org
> Responsible-Changed-When: Sat, 24 Nov 2007 04:23:50 +0000
> Responsible-Changed-Why:
> Problem on solaris.
> Add following line to graphics/gimp-rawphoto/Makefile fixes this problem?
> LIBS.SunOS+=-lm

That doesn't seem to work. I added LIBS.SunOS+=-lm to Makefile, but it staill 
fails:

bmake clean
bmake build
...
===> Overriding tools for gimp-rawphoto-1.19nb12
===> Extracting for gimp-rawphoto-1.19nb12
===> Patching for gimp-rawphoto-1.19nb12
=> Applying pkgsrc patches for gimp-rawphoto-1.19nb12
===> Creating toolchain wrappers for gimp-rawphoto-1.19nb12
src=/opt/pkg/lib/pkgconfig/fixesproto.pc  
dst=/opt/pkg.obj/graphics/gimp-rawphoto/work.ultra10/.buildlink/lib/pkgconfig/fixesext.pc;  /usr/bin/mkdir -p /opt/pkg.obj/graphics/gimp-rawphoto/work.ultra10/.buildlink/lib/pkgconfig;  
if test -f ${src}; then  /usr/bin/ln -sf ${src} ${dst};  fi
===> Configuring for gimp-rawphoto-1.19nb12
===> 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 -O0 -g  -c `gimptool --cflags` rawphoto.c
rawphoto.c: In function 'load_preview':
rawphoto.c:806: warning: passing argument 1 of 'swab' from incompatible 
pointer type
rawphoto.c:806: warning: passing argument 2 of 'swab' from incompatible 
pointer type
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

Stop.
bmake: stopped in /opt/pkgsrc/graphics/gimp-rawphoto