Compile error for GNUstep on x86_64 SUSE

View: New views
2 Messages — Rating Filter:   Alert me  

Compile error for GNUstep on x86_64 SUSE

by Simon Walker-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I received this compile error for GNUstep on SUSE x86_64, from the
GNUstep-startup-0.23.0 package. The error is in 04-base.log, and it
claims that I should try and recompile with the -fPIC flag.

How would I go about that? Which script do I need to edit to add to
CFLAGS? I have tried running gnustep-build's configure script with
CFLAGS+=-fPIC but I get the error:

gnustep-base-1.19.1> ./configure --prefix=$HOME/build
--with-config-file=$HOME/etc/GNUstep.conf
./configure: line 1401: gnustep-config: command not found
configure: error: You must have the gnustep-make package installed and
set up the GNUSTEP_MAKEFILES environment variable to contain the path to
the makefiles directory before configuring!

I'm sure this is not a bug, but something I have missed in the compile
options but your help would be appreciated. I have tried running

./InstallGNUstep --prefix=$HOME/build
--config-file=$HOME/etc/GNUstep.conf CFLAGS+=-fPIC

but this failed with the same error message.

Thanks

Simon Walker


_______________________________________________
Bug-gnustep mailing list
Bug-gnustep@...
http://lists.gnu.org/mailman/listinfo/bug-gnustep

logs.tar.gz (58K) Download Attachment

Re: Compile error for GNUstep on x86_64 SUSE

by Adam Fedor-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Oct 19, 2009, at 3:29 AM, Simon Walker wrote:

> Hi
>
> I received this compile error for GNUstep on SUSE x86_64, from the
> GNUstep-startup-0.23.0 package. The error is in 04-base.log, and it
> claims that I should try and recompile with the -fPIC flag.
>
> How would I go about that? Which script do I need to edit to add to
> CFLAGS? I have tried running gnustep-build's configure script with
> CFLAGS+=-fPIC but I get the error:
>
GNUstep always compiles with -fPIC, so that is not the problem. The  
problem is one of the system libraries on your computer (libbfd) which  
was not compiled with fPIC. You can either fix that problem, or use --
disable-bfd to build without bfd. With the startup package, you can do  
this:

./InstallGNUstep --config-options=--disable-bfd


> gnustep-base-1.19.1> ./configure --prefix=$HOME/build
> --with-config-file=$HOME/etc/GNUstep.conf
> ./configure: line 1401: gnustep-config: command not found
> configure: error: You must have the gnustep-make package installed and
> set up the GNUSTEP_MAKEFILES environment variable to contain the  
> path to
> the makefiles directory before configuring!

You need to make sure the path to the GNUstep files is in your PATH  
first. The easy way to do this is:

. /usr/GNUstep/System/Library/Makefiles/GNUstep.sh

(if that is where GNUstep is installed, which it should be if you are  
using startup).


_______________________________________________
Bug-gnustep mailing list
Bug-gnustep@...
http://lists.gnu.org/mailman/listinfo/bug-gnustep