LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   error when installing gift: error: cannot compute sizeof (short), 77 (http://www.linuxquestions.org/questions/linux-software-2/error-when-installing-gift-error-cannot-compute-sizeof-short-77-a-249078/)

v1pEr 10-30-2004 08:47 AM

error when installing gift: error: cannot compute sizeof (short), 77
 
Hello,

I was looking for an alternative for Kazaa and a little googling gave me gift, so I downloaded it from http://gift.sourceforge.net and I installed it, but during the install it gave me the following error:

Code:

checking for short... yes
checking size of short... configure: error: cannot compute sizeof (short), 77

Do I need a library in order to install this? or something else?

help appreciated.

Oh yeah (I'm new to linux, so please don't be to technical ;))

I hope I have given you enough information

cetialphav 10-30-2004 12:29 PM

That error comes from the configure script. I don't understand how that could happen. Take a look in the config.log file to see what the error is. If you don't understand what you see, just seach down to where you see it checking the size of a short and post that portion here.

v1pEr 10-31-2004 04:00 AM

thx for the reply cetialphav,

you were right, I didn't understand what I saw ;)

so here I am, I think this is the part you need I think

Code:

configure:10312: result: no
configure:10340: checking for short
configure:10364: gcc -c -g -O2  conftest.c >&5
configure:10370: $? = 0
configure:10373: test -z                          || test ! -s conftest.err
configure:10376: $? = 0
configure:10379: test -s conftest.o
configure:10382: $? = 0
configure:10393: result: yes
configure:10396: checking size of short
configure:10708: gcc -o conftest -g -O2  conftest.c -lbind -lnsl  >&5
configure:10711: $? = 0
configure:10713: ./conftest
./configure: line 1:  8646 Floating point exception./conftest$ac_exeext
configure:10716: $? = 136
configure: program exited with status 136
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "giFT"
| #define PACKAGE_TARNAME "gift"
| #define PACKAGE_VERSION "0.11.7"
| #define PACKAGE_STRING "giFT 0.11.7"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "gift"
| #define VERSION "0.11.7"
| #define BUILD_DATE "Sun Oct 31 10:56:09 CET 2004"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_LIBNSL 1
| #define HAVE_LIBBIND 1
| #define HAVE_DIRENT_H 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_DIRENT_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_LINUX_LIMITS_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYSLOG_H 1
| #define HAVE_SIGNAL_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_INTTYPES_H 1
| #define TIME_WITH_SYS_TIME 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| long longval () { return (long) (sizeof (short)); }
| unsigned long ulongval () { return (long) (sizeof (short)); }
| #include <stdio.h>
| #include <stdlib.h>
| int
| main ()
| {
|
|  FILE *f = fopen ("conftest.val", "w");
|  if (! f)
|    exit (1);
|  if (((long) (sizeof (short))) < 0)
|    {
|      long i = longval ();
|      if (i != ((long) (sizeof (short))))
|        exit (1);
|      fprintf (f, "%ld\n", i);
|    }
|  else
|    {
|      unsigned long i = ulongval ();
|      if (i != ((long) (sizeof (short))))
|        exit (1);
|      fprintf (f, "%lu\n", i);
|    }
|  exit (ferror (f) || fclose (f) != 0);
|
|  ;
|  return 0;
| }
configure:10726: error: cannot compute sizeof (short), 77
See `config.log' for more details.

thanks in advance

cetialphav 10-31-2004 05:18 AM

That is really weird. I don't know how to explain it. I don't see it on my system (Fedora Core 2) when I run the configure script. The log you posted shows that configure gets a floating point exception. From the code configure is generating, that shouldn't happen. Does this machine have other odd problems? Hopefully someone else has seen this and isolated the problem.

v1pEr 11-01-2004 10:32 AM

nope
 
no, the system is installed on an Acer laptop, I bought it in June, so its hardware should be supported, and it is as far as my experiences go running normal.

So if I'm right the code gives a floating point exception on my machine, but not on another one?

weird indeed

could it be that I need to install something? As far as I know I've installed all compilers for almost all supported programming languages... but maybe I missed something

I hope somebody can help me, thx for the post anyway

greetz

v1pEr 11-04-2004 02:43 AM

Is there no other way to install it, e.g. by changing the source? The part where it shows an error, is it really essential? Can't it be done by another way?

greetz


All times are GMT -5. The time now is 05:12 PM.