LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Trying to compile gnustep for x86_64 (http://www.linuxquestions.org/questions/slackware-14/trying-to-compile-gnustep-for-x86_64-a-800961/)

samac 04-09-2010 02:48 AM

Trying to compile gnustep for x86_64
 
The background to the problem. I was dangerous, not deadly or elite and I want to be that way again. The best representation that I have found is oolite. Now this installs by auto-package but only in 32-bit and I find auto-package a bit of a pain. I have the windows version installed and running under wine but would prefer a compiled 64-bit Slackware package.

Oolite requires gnu-step so I have downloaded the source and some old (12.2) slackbuilds, which I have modified, and made a package for gnustep-make. The next stage is to make a package for gnustep-base however it is failing with the following error
Code:

./configure: line 1390: gnustep-config: command not found
configure: error: cannot run /bin/sh /tmp/SBo/gnustep-base-1.18.0/config.sub

I have googled but I am not sure what to do next.

samac

samac 04-09-2010 02:56 AM

I have added
Code:

PATH=$PATH:/usr/System/Tools
to the slackbuild and it gets rid of the command not found error but still leaves
Code:

configure: error: cannot run /bin/sh /tmp/SBo/gnustep-base-1.18.0/config.sub
samac

samac 04-10-2010 08:16 AM

It appears config.sub does not exist and automake -a cannot create it. Any ideas of where to go from here.

samac

gnashley 04-10-2010 02:05 PM

'autoreconf -if' doesn't work? Or maybe there is an autogen.sh that could be run?

samac 04-10-2010 05:28 PM

Quote:

'autoreconf -if' doesn't work? Or maybe there is an autogen.sh that could be run?
No and no. I downloaded the source from the gnustep site, so it should be good. I wonder if your src2pgz would do a better job? I'll look at that tomorrow.

samac

knudfl 04-10-2010 05:54 PM

Seems OK with src2pkg ..

1) # src2pkg gnustep-make-2.2.0.tar.gz
Quote : "Creating package: gnustep-make-2.2.0-x86_64-1.tgz .. "
# cp gnustep-config /usr/bin/
( Got the file gnustep-config from a Fedora "13" package.)

2) # src2pkg gnustep-base-1.18.0.tar.gz
Quote : "Creating package: gnustep-base-1.18.0-x86_64-1.tgz - Done
Package Creation - Successful! Package Location:
/tmp/gnustep-base-1.18.0-x86_64-1.tgz "
.....

Lufbery 04-10-2010 08:03 PM

I never noticed that gnustep isn't in Slackware 13, but was in Slackware 12.2. Any idea why it was removed?

samac 04-11-2010 01:56 AM

Quote:

2) # src2pkg gnustep-base-1.18.0.tar.gz
Quote : "Creating package: gnustep-base-1.18.0-x86_64-1.tgz - Done
Package Creation - Successful! Package Location:
/tmp/gnustep-base-1.18.0-x86_64-1.tgz "
Not working for me I get the following error.
Quote:

bash-4.1# src2pkg gnustep-base-1.18.0.tar.gz
Found source archive: gnustep-base-1.18.0.tar.gz
Deleting old build files - Done
Creating working directories:
PKG_DIR=/tmp/gnustep-base-1.18.0-x86_64-1
SRC_DIR=/tmp/gnustep-base-1.18.0-src-1
Unpacking source archive - Done
Correcting source permissions - Done
Checking for patches - None found
Found configure script - Done
Configuring sources using:
LDFLAGS="-Wl,-L/lib64,-L/usr/lib64" CFLAGS="-O2 -fPIC -m64" ./configure --prefix=/usr --libdir=/usr/lib64
ERROR! Configuring sources has failed!
This may be because of some missing libraries, or you may
need to pass extra options to configure using EXTRA_CONFIGS.
Searching the RPM .spec.in file turns up this:
Requires: gnustep-make >= 2.0.0

Notice - Showing short options in a separate xterm.
bash-4.1# No protocol specified
Warning: This program is an suid-root program or is being run by the root user.
The full text of the error or warning message cannot be safely formatted
in this environment. You may get a more descriptive message by running the
program as a non-root user or by removing the suid bit on the executable.
xterm Xt error: Can't open display: %s

bash-4.1#
gnustep-make-2.2.0 is installed

samac

gnashley 04-11-2010 02:35 AM

Run it with the src2pkg -VV option so you can see what the full error is.

samac 04-11-2010 03:44 AM

Thanks Gilbert

Quote:

LDFLAGS="-Wl,-L/lib64,-L/usr/lib64" CFLAGS="-O2 -fPIC -m64" ./configure --prefix=/usr --libdir=/usr/lib64
Messages from configure:
./configure: line 1390: 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!
ERROR! Configuring sources has failed!
OK it is showing the same error as the slackbuild which is fixable by modifying the $PATH like this
Code:

export PATH=$PATH:/usr/System/Tools
The package then builds correctly.

Now to try oolite.

samac

knudfl 04-11-2010 03:55 AM

You are probably missing the file /usr/bin/gnustep-config

This file will be created from "gnustep-make-2.2.0" using the options :
./configure --with-layout=fhs-system --enable-flattened

(This configure line is used in the file gnustep-make.spec
from gnustep-make-2.2.0-3.fc12.src.rpm )


I don't see those options in the gnustep-make.SlackBuild
( for gnustep-make-2.0.7 ).
.....
EDIT : Sorry, @ samac, writing, while you were posting.
.....

samac 04-11-2010 06:12 AM

I've decided that compiling gnustep is easy. Compiling oolite appears to be much harder. I eventually devided just to use the oolite-x86_64.package and install it as a user. I hate autopackage but I do not have the knowledge to compile oolite. src2pkg -VV turns up this
Quote:

make[2]: *** [obj.dbg/OODebugMonitor.m.o] Error 1
make[1]: *** [internal-objc_program-all_] Error 2
make: *** [oolite.all.objc-program.variables] Error 2
ERROR! Compiling source code has failed.
This usually happens because of missing libraries, or
badly written Makefiles or configure scripts.
Searching the Debian control file turns up this:
Build-Depends: debhelper (>= 5),
Depends: ${shlibs:Depends}, oolite-data (>= ${source:Version})
which is similar to what I get using a slackbuild. The documentation says all you have to do is run 'make'

samac chuckles insanely.

samac

gnashley 04-12-2010 02:32 AM

Do you have the Objective C compiler installed?

samac 04-12-2010 02:06 PM

Quote:

Do you have the Objective C compiler installed?
I have these installed
Quote:

samac@quad:~$ ls /var/log/packages/gcc*
/var/log/packages/gcc-4.4.3_multilib-x86_64-2alien
/var/log/packages/gcc-java-4.4.3_multilib-x86_64-2alien
/var/log/packages/gcc-g++-4.4.3_multilib-x86_64-2alien
/var/log/packages/gcc-objc-4.4.3_multilib-x86_64-2alien
/var/log/packages/gcc-gfortran-4.4.3_multilib-x86_64-2alien
/var/log/packages/gccmakedep-1.0.2-noarch-2
/var/log/packages/gcc-gnat-4.4.3_multilib-x86_64-2alien
are any of these an objective C compiler?

samac

brianL 04-12-2010 02:14 PM

Quote:

/var/log/packages/gcc-objc-4.4.3_multilib-x86_64-2alien
That one.


All times are GMT -5. The time now is 11:57 PM.