Re: Trying to configure/compile glib-2.0.6

2002-10-14 Thread Paul Thomas


I'm just able to get back to this.

On Wed, 9 Oct 2002, Owen Taylor wrote:

 
 Paul Thomas [EMAIL PROTECTED] writes:
 
  I got through my other hoops but while tyring to ./configure
  on my Linux box (older install), the configure script gets
  to this point then quits:
  
  checking for working alloca.h... (cached) yes
  checking for alloca... (cached) yes
  checking for atexit... yes
  checking for on_exit... yes
  checking for char... yes
  checking size of char... configure: error: cannot compute sizeof (char), 77
  
  
  Anyone know what I might need to address to 'compute sizeof (char)'?
 
 Look at config.log - you'll have some sort of compiler error
 in there related to this.
 
 Regards,
 Owen

Yes, well there is in config.log:

configure:1: checking size of char
configure:12527: gcc -o conftest -g -O2 -Wall   conftest.c  -liconv
-lintl -lico
nv 5
configure:12527: $? = 0
configure:12527: ./conftest
./conftest: can't load library 'libiconv.so.2'
configure:12527: $? = 16
configure: program exited with status 16
configure: failed program was:

skip commented includes

long longval () { return (long) (sizeof (char)); }
unsigned long ulongval () { return (long) (sizeof (char)); }

skip commented includes

 extern C

skip comment

   int F77_DUMMY_MAIN() { return 1; }

skip comment

int
main ()
{

  FILE *f = fopen (conftest.val, w);
  if (! f)
exit (1);
  if (((long) (sizeof (char)))  0)
{
  long i = longval ();
  if (i != ((long) (sizeof (char
exit (1);
  fprintf (f, %ld\n, i);
}
  else
{
  unsigned long i = ulongval ();
  if (i != ((long) (sizeof (char
exit (1);
  fprintf (f, %ld\n, i);
}
  else
{
  unsigned long i = ulongval ();
  if (i != ((long) (sizeof (char
exit (1);
  fprintf (f, %lu\n, i);
}
  exit (ferror (f) || fclose (f) != 0);
  
  ;  
  return 0;
}
configure:12527: error: cannot compute sizeof (char), 77

I don't know why:

configure:12527: ./conftest
./conftest: can't load library 'libiconv.so.2'

is happening as 'libiconv.so.2' is right here:

/usr/local/lib/libiconv.so.2

freshly installed from:

/var/local/src/libiconv-1.8/

Any comments appreciated.

Thanks,

--Paul


--
William J. Broad: The crux... is that the vast majority of the mass
of the universe seems to be missing.


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: Trying to configure/compile glib-2.0.6

2002-10-14 Thread Valdis . Kletnieks

On Mon, 14 Oct 2002 09:03:45 PDT, Paul Thomas said:

 configure:12527: ./conftest
 ./conftest: can't load library 'libiconv.so.2'
 
 is happening as 'libiconv.so.2' is right here:
 
 /usr/local/lib/libiconv.so.2
 
 freshly installed from:
 
 /var/local/src/libiconv-1.8/

I'll place bets that you don't have /usr/local/lib in your /etc/ld.so.conf
file, and that your program got compiled against iconv 1.8 headers but
you ended up linked against an iconv-1.N for N8 that happens to be in /usr/lib.

Recent gcc (at least from redhat) automagically put /usr/local/include in the
system search path - but don't add /usr/local/lib to the -L list as far as
I can tell.
-- 
Valdis Kletnieks
Computer Systems Senior Engineer
Virginia Tech




msg11091/pgp0.pgp
Description: PGP signature


Re: Trying to configure/compile glib-2.0.6

2002-10-14 Thread Owen Taylor


Paul Thomas [EMAIL PROTECTED] writes:

 I'm just able to get back to this.
 
 On Wed, 9 Oct 2002, Owen Taylor wrote:
 
  
  Paul Thomas [EMAIL PROTECTED] writes:
  
   I got through my other hoops but while tyring to ./configure
   on my Linux box (older install), the configure script gets
   to this point then quits:
   
   checking for working alloca.h... (cached) yes
   checking for alloca... (cached) yes
   checking for atexit... yes
   checking for on_exit... yes
   checking for char... yes
   checking size of char... configure: error: cannot compute sizeof (char), 77
   
   
   Anyone know what I might need to address to 'compute sizeof (char)'?
  
  Look at config.log - you'll have some sort of compiler error
  in there related to this.
  
[...]

 I don't know why:
 
 configure:12527: ./conftest
 ./conftest: can't load library 'libiconv.so.2'
 
 is happening as 'libiconv.so.2' is right here:
 
 /usr/local/lib/libiconv.so.2
 
 freshly installed from:
 
 /var/local/src/libiconv-1.8/
 
 Any comments appreciated.

Two possibilities:

 1) /usr/local/lib isn't in /etc/ld.so.conf
 2) You haven't run ldconfig

Regards,
Owen
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: Trying to configure/compile glib-2.0.6

2002-10-14 Thread Paul Thomas


On Mon, 14 Oct 2002, Owen Taylor wrote:

 
 Paul Thomas [EMAIL PROTECTED] writes:
 
  I'm just able to get back to this.
  
  On Wed, 9 Oct 2002, Owen Taylor wrote:
  
   
   Paul Thomas [EMAIL PROTECTED] writes:
   
to this point then quits:

  I don't know why:
  
  configure:12527: ./conftest
  ./conftest: can't load library 'libiconv.so.2'
  
 
 Two possibilities:
 
  1) /usr/local/lib isn't in /etc/ld.so.conf
  2) You haven't run ldconfig

It was possibility number 2! For some reason I presumed that was
all taken care of when I installed libiconv-1.8.

Thanks for the help folks!

--Paul 

--
William J. Broad: The crux... is that the vast majority of the mass
of the universe seems to be missing.


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: Trying to configure/compile glib-2.0.6

2002-10-09 Thread Owen Taylor


Paul Thomas [EMAIL PROTECTED] writes:

 I got through my other hoops but while tyring to ./configure
 on my Linux box (older install), the configure script gets
 to this point then quits:
 
 checking for working alloca.h... (cached) yes
 checking for alloca... (cached) yes
 checking for atexit... yes
 checking for on_exit... yes
 checking for char... yes
 checking size of char... configure: error: cannot compute sizeof (char), 77
 
 
 Anyone know what I might need to address to 'compute sizeof (char)'?

Look at config.log - you'll have some sort of compiler error
in there related to this.

Regards,
Owen
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Trying to configure/compile glib-2.0.6

2002-10-08 Thread Paul Thomas


Hi,

I got through my other hoops but while tyring to ./configure
on my Linux box (older install), the configure script gets
to this point then quits:

checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for atexit... yes
checking for on_exit... yes
checking for char... yes
checking size of char... configure: error: cannot compute sizeof (char), 77


Anyone know what I might need to address to 'compute sizeof (char)'?

Thanks,

--Paul



--
William J. Broad: The crux... is that the vast majority of the mass
of the universe seems to be missing.


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list