LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-30-2004, 08:47 AM   #1
v1pEr
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: winxp + suse 10.1 dual boot
Posts: 88

Rep: Reputation: 15
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
 
Old 10-30-2004, 12:29 PM   #2
cetialphav
Member
 
Registered: Sep 2003
Location: Raleigh, NC, USA
Distribution: Fedora
Posts: 88

Rep: Reputation: 16
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.
 
Old 10-31-2004, 04:00 AM   #3
v1pEr
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: winxp + suse 10.1 dual boot
Posts: 88

Original Poster
Rep: Reputation: 15
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
 
Old 10-31-2004, 05:18 AM   #4
cetialphav
Member
 
Registered: Sep 2003
Location: Raleigh, NC, USA
Distribution: Fedora
Posts: 88

Rep: Reputation: 16
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.
 
Old 11-01-2004, 10:32 AM   #5
v1pEr
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: winxp + suse 10.1 dual boot
Posts: 88

Original Poster
Rep: Reputation: 15
Unhappy 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

Last edited by v1pEr; 11-01-2004 at 10:34 AM.
 
Old 11-04-2004, 02:43 AM   #6
v1pEr
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: winxp + suse 10.1 dual boot
Posts: 88

Original Poster
Rep: Reputation: 15
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure: error: cannot compute sizeof (long double) in glibc pass 2 irfanali Linux From Scratch 29 02-03-2010 06:48 AM
mkreiserfs compute error? uselpa Slackware 1 06-16-2005 04:29 PM
Help! 2.4.29 + nptl = glibc error: cannot compute (long double), 77 Yerp Linux From Scratch 3 03-25-2005 06:28 PM
sizeof() function error ??? Quest101 Programming 9 03-10-2005 09:35 PM
./configure fails trying to install SynCE/libraki - cannot compute sizeof (void *) dizzutch Linux - Software 0 12-27-2004 02:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration