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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-30-2004, 08:47 AM
|
#1
|
Member
Registered: Oct 2004
Location: Belgium
Distribution: winxp + suse 10.1 dual boot
Posts: 88
Rep:
|
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
|
|
|
10-30-2004, 12:29 PM
|
#2
|
Member
Registered: Sep 2003
Location: Raleigh, NC, USA
Distribution: Fedora
Posts: 88
Rep:
|
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.
|
|
|
10-31-2004, 04:00 AM
|
#3
|
Member
Registered: Oct 2004
Location: Belgium
Distribution: winxp + suse 10.1 dual boot
Posts: 88
Original Poster
Rep:
|
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
|
|
|
10-31-2004, 05:18 AM
|
#4
|
Member
Registered: Sep 2003
Location: Raleigh, NC, USA
Distribution: Fedora
Posts: 88
Rep:
|
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.
|
|
|
11-01-2004, 10:32 AM
|
#5
|
Member
Registered: Oct 2004
Location: Belgium
Distribution: winxp + suse 10.1 dual boot
Posts: 88
Original Poster
Rep:
|
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.
|
|
|
11-04-2004, 02:43 AM
|
#6
|
Member
Registered: Oct 2004
Location: Belgium
Distribution: winxp + suse 10.1 dual boot
Posts: 88
Original Poster
Rep:
|
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 11:35 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|