Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 24712

Summary: ghostscript ijs fails to build, no -fPIC during compile
Product: Gentoo Linux Reporter: Nico Baggus <mlspamcb>
Component: Current packagesAssignee: Printing Team <printing>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: Alpha   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Nico Baggus 2003-07-17 23:11:49 UTC
The error message during linking indicated a missing -fPIC. 
If -fPIC is added to the compile options for ijs it compiles & links 

Reproducible: Always
Steps to Reproduce:
1. emerge ghostscript 
 
Actual Results:  
Error during linking of ijs modules 

Expected Results:  
Just build & install 

gcc ... -fPIC ... during compile of ijs modules... (everything else does, why 
not this one...?)
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2003-07-18 06:33:03 UTC
try to replace 
 
cd ijs 
econf --prefix=${D}/usr 
make || die "make failed" 
cd. . 
 
with  
 
cd ijs 
econf --prefix=${D}/usr 
emake || die "make failed" 
cd .. 
Comment 2 Nico Baggus 2003-07-18 08:55:13 UTC
I will try this in about three weeks from now... 
Comment 3 Nico Baggus 2003-07-18 09:39:23 UTC
Well I't was quicker than I thought... 
 
configure: WARNING: If you wanted to set the --build type, don't use --host. 
    If a cross compiler is detected then cross compile mode will be used. 
checking for alphaev56-unknown-linux-gnu-gcc... gcc 
checking for C compiler default output... a.out 
checking whether the C compiler works... yes 
checking whether we are cross compiling... no 
checking for suffix of executables... 
checking for suffix of object files... o 
checking whether we are using the GNU C compiler... yes 
checking whether gcc accepts -g... yes 
checking for alphaev56-unknown-linux-gnu-ranlib... no 
checking for ranlib... ranlib 
checking for a BSD-compatible install... /bin/install -c 
configure: creating ./config.status 
config.status: creating Makefile 
config.status: creating ijs-config 
config.status: executing default commands 
gcc -g -Wall -ansi -pedantic -Wmissing-prototypes   -c -o ijs.o ijs.c 
gcc -g -Wall -ansi -pedantic -Wmissing-prototypes   -c -o ijs_client.o 
ijs_client.c 
gcc -g -Wall -ansi -pedantic -Wmissing-prototypes   -c -o ijs_server.o 
ijs_server.c 
gcc -g -Wall -ansi -pedantic -Wmissing-prototypes   -c -o ijs_exec_unix.o 
ijs_exec_unix.c 
gcc -g -Wall -ansi -pedantic -Wmissing-prototypes   -c -o ijs_client_example.o 
ijs_client_example.c 
ijs_client_example.c: In function `example_set_params': 
ijs_client_example.c:208: warning: int format, different type arg (arg 3) 
ijs_client_example.c:222: warning: int format, different type arg (arg 4) 
gcc -g -Wall -ansi -pedantic -Wmissing-prototypes   -c -o ijs_server_example.o 
ijs_server_example.c 
rm -f libijs.a 
ar qc libijs.a ijs.o ijs_client.o ijs_server.o ijs_exec_unix.o 
ranlib libijs.a 
gcc -shared ijs.o ijs_client.o ijs_server.o ijs_exec_unix.o -o libijs.so 
/usr/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.2.3/../../../../alphaev56-unknown-linux-gnu/bin/ld: 
ijs_server.o: gp-relative relocation against dynamic symbol ijs_server_procs 
/usr/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.2.3/../../../../alphaev56-unknown-linux-gnu/bin/ld: 
ijs_server.o: gp-relative relocation against dynamic symbol ijs_server_procs 
collect2: ld returned 1 exit status 
make: *** [libijs.so] Error 1 
make: *** Waiting for unfinished jobs.... 
ijs_server_example.c: In function `main': 
ijs_server_example.c:413: warning: implicit declaration of function `fdopen' 
ijs_server_example.c:413: warning: assignment makes pointer from integer 
without a cast 
 
!!! ERROR: app-text/ghostscript-7.05.6-r3 failed. 
!!! Function src_compile, Line 75, Exitcode 2 
!!! make failed 
 
when using gcc with -fPIC added to it, it will link & install.... 
 
emake / make doesn't make a difference 
Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2003-07-18 09:46:35 UTC
arch=alpha? 
Comment 5 Heinrich Wendel (RETIRED) gentoo-dev 2003-07-18 09:49:16 UTC
what about "emerge info" ;) 
Comment 6 Heinrich Wendel (RETIRED) gentoo-dev 2003-07-29 06:01:53 UTC
thx, fixed (also on amd64)