unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* guile-1.8.4 error
@ 2008-03-17 19:08 mahmoud hamoud
  2008-03-17 20:13 ` Ludovic Courtès
  2008-03-18 14:57 ` Ludovic Courtès
  0 siblings, 2 replies; 5+ messages in thread
From: mahmoud hamoud @ 2008-03-17 19:08 UTC (permalink / raw)
  To: guile-user

[-- Attachment #1: Type: text/plain, Size: 913 bytes --]

 hello guile users
  i'm trying to configure guile-1.8.4 on my unix-system (gcc 3.4.3 Mandrakelinux 10.2) but i've got this
  message:
  checking for lt_dlinit in -lltdl... yes
  checking for makeinfo... yes
  checking for emacs... emacs
  checking where .elc files should go... ${datarootdir}/emacs/site-lisp
  checking whether to use system and library "64" calls... yes
  checking for __uc_get_ar_bsp in -luca... no
  checking for an ANSI C-conforming const... yes
  checking for working volatile... yes
  checking for inline... inline
  checking for __uc_get_ar_bsp in -luca... (cached) no
  checking whether byte ordering is bigendian... no
  checking for char... yes
  checking size of char... configure: error: cannot compute sizeof (char).
  thanks you for your help
  best regards  
       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

[-- Attachment #2: Type: text/html, Size: 1248 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guile-1.8.4 error
  2008-03-17 19:08 guile-1.8.4 error mahmoud hamoud
@ 2008-03-17 20:13 ` Ludovic Courtès
  2008-03-17 21:15   ` Kamaraju S Kusumanchi
  2008-03-18 14:57 ` Ludovic Courtès
  1 sibling, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2008-03-17 20:13 UTC (permalink / raw)
  To: guile-user

Hi,

mahmoud hamoud <mahmoudhamoud@yahoo.com> writes:

> i'm trying to configure guile-1.8.4 on my unix-system (gcc 3.4.3
> Mandrakelinux 10.2) but i've got this
> message:
> checking for lt_dlinit in -lltdl... yes
> checking for makeinfo... yes
> checking for emacs... emacs
> checking where .elc files should go... ${datarootdir}/emacs/site-lisp
> checking whether to use system and library "64" calls... yes
> checking for __uc_get_ar_bsp in -luca... no
> checking for an ANSI C-conforming const... yes
> checking for working volatile... yes
> checking for inline... inline
> checking for __uc_get_ar_bsp in -luca... (cached) no
> checking whether byte ordering is bigendian. .. no
> checking for char... yes
> checking size of char... configure: error: cannot compute sizeof (char).

Can you please send us the resulting `config.log' file?

Also, can you try compiling the code below:

  typedef char ac__type_sizeof_;
  int
  main ()
  {
    static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
    test_array [0] = 0;
    return 0;
  }

Just run "gcc -c the-file.c".

Thanks in advance,
Ludovic.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guile-1.8.4 error
  2008-03-17 20:13 ` Ludovic Courtès
@ 2008-03-17 21:15   ` Kamaraju S Kusumanchi
  2008-03-18  9:04     ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Kamaraju S Kusumanchi @ 2008-03-17 21:15 UTC (permalink / raw)
  To: guile-user

Ludovic Courtès wrote:

>   typedef char ac__type_sizeof_;
>   int
>   main ()
>   {
>     static int test_array [1 - 2 * !(((long int) (sizeof
>     (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0;
>     return 0;
>   }
> 
> Just run "gcc -c the-file.c".

I don't think that code will even compile. What is $ac_mid? Is it a valid C
statement?

raju
-- 
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guile-1.8.4 error
  2008-03-17 21:15   ` Kamaraju S Kusumanchi
@ 2008-03-18  9:04     ` Ludovic Courtès
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2008-03-18  9:04 UTC (permalink / raw)
  To: guile-user

Hi,

Kamaraju S Kusumanchi <kamaraju@bluebottle.com> writes:

> I don't think that code will even compile.

Hmm, good point.  ;-)

Anyway, forget the previous message, it's this code that you should try
to compile and run:

  typedef char ac__type_sizeof_;
  static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  #include <stdio.h>
  #include <stdlib.h>
  int
  main ()
  {

    FILE *f = fopen ("conftest.val", "w");
    if (! f)
      return 1;
    if (((long int) (sizeof (ac__type_sizeof_))) < 0)
      {
        long int i = longval ();
        if (i != ((long int) (sizeof (ac__type_sizeof_))))
          return 1;
        fprintf (f, "%ld\n", i);
      }
    else
      {
        unsigned long int i = ulongval ();
        if (i != ((long int) (sizeof (ac__type_sizeof_))))
          return 1;
        fprintf (f, "%lu\n", i);
      }
    return ferror (f) || fclose (f) != 0;

    ;
    return 0;
  }

At any rate, I'm sure `config.log' will give us a good idea of what's
wrong.

Thanks in advance,
Ludovic.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guile-1.8.4 error
  2008-03-17 19:08 guile-1.8.4 error mahmoud hamoud
  2008-03-17 20:13 ` Ludovic Courtès
@ 2008-03-18 14:57 ` Ludovic Courtès
  1 sibling, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2008-03-18 14:57 UTC (permalink / raw)
  To: guile-user

Hi again,

(In the meantime, Mahmoud sent me his `config.log'.)

mahmoud hamoud <mahmoudhamoud@yahoo.com> writes:

> checking size of char... configure: error: cannot compute sizeof (char).

Your `config.log' reads this:

  configure:22969: gcc -o conftest -g -O2   conftest.c -lltdl  >&5
  configure:22972: $? = 0
  configure:22978: ./conftest
  ./conftest: error while loading shared libraries: libltdl.so.7: cannot open shared object file: No such file or directory
  configure:22981: $? = 127
  configure: program exited with status 127

This means that `libltdl' is not in your `LD_LIBRARY_PATH', probably
because it is install in a "non-standard" location (i.e., neither under
`/lib' nor under `/usr/lib').

The fix is to adjust your `LD_LIBRARY_PATH' (or `/etc/ld.so.conf')
accordingly.

Thanks,
Ludovic.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-03-18 14:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-17 19:08 guile-1.8.4 error mahmoud hamoud
2008-03-17 20:13 ` Ludovic Courtès
2008-03-17 21:15   ` Kamaraju S Kusumanchi
2008-03-18  9:04     ` Ludovic Courtès
2008-03-18 14:57 ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).