pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/52556: graphics/libimagequant fails to build on Solaris 11 with GCC 4.9.4



The following reply was made to PR pkg/52556; it has been noted by GNATS.

From: =?UTF-8?Q?J=c3=b6rn_Clausen?= <joern.clausen%uni-bielefeld.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/52556: graphics/libimagequant fails to build on Solaris 11
 with GCC 4.9.4
Date: Mon, 25 Sep 2017 09:26:12 +0200

 There's no more to see:
 
 => Replacing sh interpreter in configure.
 warning: unknown switch '--without-openmp' (see ./configure --help for 
 the list)
 
 ld: fatal: bad section layout: .SUNW_ldynsym must precede and be 
 adjacent to .dynsym
 collect2: error: ld returned 1 exit status
    Compiler: error ... gcc failed to compile anything (make sure it's 
 installed and supports C99)
 
 *** Error code 1
 
 Stop.
 bmake[1]: stopped in /opt/pkgsrc/pkg-hrz/pkgsrc/graphics/libimagequant
 *** Error code 1
 
 Stop.
 bmake: stopped in /opt/pkgsrc/pkg-hrz/pkgsrc/graphics/libimagequant
 
 
 The problem is this code from the configure script:
 
 if ! echo "int main(){}" | "$CC" -xc -std=c99 -o /tmp/gcccheck - > 
 /dev/null; then
 
 Compiling from a pipe does not seem to work:
 
 $ echo "int main(){}" | gcc -xc -o /tmp/gcccheck -
 ld: fatal: bad section layout: .SUNW_ldynsym must precede and be 
 adjacent to .dynsym
 
 And it is indeed the linker:
 
 $ echo "int main(){}" | gcc -xc -c -o /tmp/gcccheck -
 
 succeeds.
 
 So this change to the configure script fixes the package for me:
 
 --- work.pkgsrc-sol11i86/libimagequant-2.10.2/configure.pkgsrc  Mon Sep 
 25 09:22:32 2017
 +++ work.pkgsrc-sol11i86/libimagequant-2.10.2/configure Mon Sep 25 
 09:23:15 2017
 @@ -124,7 +124,7 @@
   fi
 
   # /tmp, because mingw has problems opening /dev/null and gives false 
 negative
 -if ! echo "int main(){}" | "$CC" -xc -std=c99 -o /tmp/gcccheck - > 
 /dev/null; then
 +if ! echo "int main(){}" | "$CC" -c -xc -std=c99 -o /tmp/gcccheck - > 
 /dev/null; then
       error "Compiler" "$CC failed to compile anything (make sure it's 
 installed and supports C99)"
   fi
 
 
 The actual build never uses GCC in a pipe.
 
 -- 
 Jörn Clausen
 Plattformen & Serverdienste
 BITS - Bielefelder IT-Servicezentrum
 
 Universität Bielefeld
 Universitätsstraße 25
 33615 Bielefeld
 Telefon: +49 521 106-12601
 E-Mail: joern.clausen%uni-bielefeld.de@localhost
 
 http://www.uni-bielefeld.de/bits
 


Home | Main Index | Thread Index | Old Index