Subject: pkg/21943: pkgsrc/graphics/xpm fails to build under Solaris2.8
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rquinn@sec.sprint.net>
List: netbsd-bugs
Date: 06/20/2003 13:54:42
>Number: 21943
>Category: pkg
>Synopsis: pkgsrc/graphics/xpm fails to build under Solaris2.8
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jun 20 13:55:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Rob Quinn
>Release: pkgsrc as of 20 June 2003
>Organization:
>Environment:
SunOS crn-oss 5.8 Generic_108528-19 sun4u sparc SUNW,Netra-T4
>Description:
Can't build xpm under Solaris2.8. There are errors during the compile about
"unrecognized option `-Kpic'" and lots of "Text relocation remains against symbol" errors
when trying to create libXpm.so.4.11~.
>How-To-Repeat:
crn-oss:/usr/pkgsrc/graphics/xpm #gcc -v
Reading specs from /usr/pkg/gcc-3.3/lib/gcc-lib/sparc-sun-solaris/3.3/specs
Configured with: ./configure --host=sparc-sun-solaris --infodir=/usr/pkg/info --prefix=/usr/pkg/gcc-3.3 --enable-shared
Thread model: posix
gcc version 3.3
crn-oss:/usr/pkgsrc/graphics/xpm #bmake
[....]
gcc -fpcc-struct-return -c -O2 -I. -I/usr/openwin/include -Dsun -Dsparc -DSVR4 -DSYSV -Kpic create.c
gcc: unrecognized option `-Kpic'
rm -f misc.o unshared/misc.o
gcc -fpcc-struct-return -c -I. -I/usr/openwin/include -Dsun -Dsparc -DSVR4 -DSYSV -O2 misc.c
mv misc.o unshared/misc.o
rm -f misc.o
gcc -fpcc-struct-return -c -O2 -I. -I/usr/openwin/include -Dsun -Dsparc -DSVR4 -DSYSV -Kpic misc.c
gcc: unrecognized option `-Kpic'
[....]
rm -f WrFFrBuf.o
gcc -fpcc-struct-return -c -O2 -I. -I/usr/openwin/include -Dsun -Dsparc -DSVR4 -DSYSV -Kpic WrFFrBuf.c
gcc: unrecognized option `-Kpic'
*** Error code 1 (ignored)
*** Error code 2 (ignored)
rm -f libXpm.so.4.11~
LD_RUN_PATH=/usr/openwin/lib /usr/ccs/bin/ld -o libXpm.so.4.11~ -G -z text -M mapfile -h libXpm.so.4.11 data.o create.o misc.o rgb.o scan.o parse.o hashtab.o CrBufFrI.o CrDatFrP.o CrPFrBuf.o RdFToI.o WrFFrI.o CrBufFrP.o CrIFrBuf.o CrPFrDat.o RdFToP.o WrFFrP.o CrDatFrI.o CrIFrDat.o RdFToDat.o WrFFrDat.o Attrib.o CrIFrP.o CrPFrI.o Image.o Info.o RdFToBuf.o WrFFrBuf.o
Text relocation remains referenced
against symbol offset in file
<unknown> 0x136c create.o
<unknown> 0x1370 create.o
<unknown> 0x1374 create.o
<unknown> 0x1378 create.o
<unknown> 0x137c create.o
<unknown> 0x1380 create.o
[...]
strcmp 0x2fb0 create.o
strcmp 0xad8 parse.o
strcmp 0xe0 hashtab.o
xpmHashTableFree 0x2b94 create.o
xpmHashTableFree 0x2bb4 create.o
xpmHashTableFree 0x1594 parse.o
[...]
<unknown> 0x8 WrFFrBuf.o
<unknown> 0x10 WrFFrBuf.o
ld: fatal: relocations remain against allocatable but non-writable sections
*** Error code 1
make: Fatal error: Command failed for target `libXpm.so.4.11'
Current working directory /usr/obj/pkg/graphics/xpm/work/xpm-3.4k/lib
*** Error code 1
make: Fatal error: Command failed for target `all'
Current working directory /usr/obj/pkg/graphics/xpm/work/xpm-3.4k
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/graphics/xpm
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/graphics/xpm
>Fix:
I edited several Makefiles and change "-Kpic" to "-fPIC".
>Release-Note:
>Audit-Trail:
>Unformatted: