LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   build err when compiling (https://www.linuxquestions.org/questions/linux-newbie-8/build-err-when-compiling-4175485691/)

rcorkum 11-24-2013 12:57 AM

build err when compiling
 
hi,
I am trying to build a package from source and ./configure goes fine and then make errors out. my os is slackware64 14.1 but I don't think this error is flavour specific or package specific more trying to learn what to hunt down.

Code:

bash-4.2# make
cat configure.in | sed -e "s/AC_INIT.*$/AC_INIT\(Zangband,\ `cat .version`,\ bugs@zangband.org\)/" > configure.new
mv configure.new configure.in
aclocal
configure.in:127: warning: underquoted definition of AC_SEARCH_HEADERS
configure.in:127:  run info '(automake)Extending aclocal'
configure.in:127:  or see http://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
autoheader
autoconf
if [ -x ./config.status ] ; then ./config.status --recheck && ./config.status; else ./configure; fi
running /bin/sh ./configure  --no-create --no-recursion
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/Robert/Downloads/ZPlusAngband_033beta_src':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** [makefile] Error 77


John VV 11-24-2013 04:16 PM

if Make is running aclocal and autoheader and autoconf

then there was not "configure" script
and the Makefile" is a non standard make file
but a bootstrap shell script

and it is looking for gcc and gcc is not installed

i am assumming that this is the name of this unknown program
"ZPlusAngband_033beta_src"

where did you get it from ?
there is a SF download from 2011
http://sourceforge.net/projects/zplu...nd/files/dist/

i dought that it will build using a current version of gcc
You might have to install an older version like Gcc 4.1 or 4.3
ZPlusAngband_033beta_src.tar.gz
only has one download
i am guessing you

first ALL of the file permissions in that archive are FUBAR
royally f'ed up
Code:

cd ~/Download
chown -R YourUserName:users ZPlusAngband_033beta_src

the first sign of trouble
the readme is dated Jan 1 2009


then from the install insstructions in the README file

1. Install lcc from: http://www.q-software-solutions.de/downloaders

did you install that ?

then
2. Get Z+Angband source files from http://tinyurl.com/5pq2bd and extract
-- i already DO NOT trust that
i will NEVER install something from a "tinyurl" link
you ARE ASKING FOR PROBLEMS
like installing a rootkit

3. Navigate into the folder, and then into the src directory. Run
"tolua_make", then "l-make".

from the above post ,you did not do that .

check the date on the Makefile
it should be todays date
and not the Jan 1 2009 date

also read the errors in the "config.log" file
likely you are missing things

rcorkum 11-24-2013 05:30 PM

Quote:

Originally Posted by John VV (Post 5069988)
if Make is running aclocal and autoheader and autoconf

then there was not "configure" script
and the Makefile" is a non standard make file
but a bootstrap shell script

and it is looking for gcc and gcc is not installed

i am assumming that this is the name of this unknown program
"ZPlusAngband_033beta_src"

where did you get it from ?
there is a SF download from 2011
http://sourceforge.net/projects/zplu...nd/files/dist/

i dought that it will build using a current version of gcc
You might have to install an older version like Gcc 4.1 or 4.3
ZPlusAngband_033beta_src.tar.gz
only has one download
i am guessing you

first ALL of the file permissions in that archive are FUBAR
royally f'ed up
Code:

cd ~/Download
chown -R YourUserName:users ZPlusAngband_033beta_src

the first sign of trouble
the readme is dated Jan 1 2009


then from the install insstructions in the README file

1. Install lcc from: http://www.q-software-solutions.de/downloaders

did you install that ?

then
2. Get Z+Angband source files from http://tinyurl.com/5pq2bd and extract
-- i already DO NOT trust that
i will NEVER install something from a "tinyurl" link
you ARE ASKING FOR PROBLEMS
like installing a rootkit

3. Navigate into the folder, and then into the src directory. Run
"tolua_make", then "l-make".

from the above post ,you did not do that .
check the date on the Makefile
it should be todays date
and not the Jan 1 2009 date

also read the errors in the "config.log" file
likely you are missing things

hsolusolutions`tions
I ran both toluamake and l-make and they both seg-falted so I looked at them they are windows scripts. I remember using lcc on my amiga its a c compiler. the url you gave me doesn't load here but the permission thing looking at that now as I have both gcc and g++ up to date

rcorkum 11-24-2013 05:45 PM

I tried Download ZPlusAngband_033beta_src_a+rwx.tar.gz (2.9 MB) and it configured seamlessly
then tried make and same error can't make an executable

I think I might have to abort this adventure into my past.

John VV 11-24-2013 06:19 PM

what version of gcc is installed ?

you might need to use gcc 3.4 to build it

i am back in the 1980's - '90's
http://www.zangband.org/screenshots.html
there is a 386 DOS version
http://www.zangband.org/

rcorkum 11-24-2013 08:03 PM

currently have.

bash-4.2# gcc --version
gcc (GCC) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

bash-4.2# g++ --version
g++ (GCC) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


I've sent a message to the author to see if he has some ideas.


All times are GMT -5. The time now is 11:13 AM.