Hi.
Umm, I don't understand your build environment well....
However, The following examination may help to find a problem.
-- long_test.c - start ---
long longval () { return (long) (sizeof (long)); }
unsigned long ulongval () { return (long) (sizeof (long)); }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{
long i = longval ();
unsigned long ui = ulongval ();
printf ("%ld\n", ((long) (sizeof (long))));
printf ("%ld\n", i);
printf ("%lu\n", ((long) (sizeof (long))));
printf ("%lu\n", ui);
return 0;
}
-- long_test.c - end ---
inet% gcc -o long_test long_test.c
inet% long_test
4
4
4
4
inet% ldd long_test
long_test:
libc.so.6 => /lib/libc.so.6 (0x28074000)
inet% gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.4.4 [FreeBSD] 20050518
I want these to be help you.!
Regards,
Hiroshi Saito
From: "djisgitt"
> This message bounced from psql-odbc (I suppose because I am not subscribed
> there), so I am hoping some kindly soul here will help me!
>
> Hi developers,
>
> In attempting to build psqlodbc from source, I receive the following error
> in configure after invoking it by
>
> /configure --with-unixodbc=/usr/local
>
> checking for ssize_t... yes
> checking for long... yes
> checking size of long... configure: error: cannot compute sizeof (long)
> See `config.log' for more details.
>
> I have attached the config.log in order to avoid snipping the important
> thing. I notice in the log that it fails reading libodbcinst.so.1, but
>
> lrwxrwxrwx 1 root root 20 Jul 19 16:59
> /usr/local/lib/libodbcinst.so.1 -> libodbcinst.so.1.0.0
>
> [djisgitt@prs1 psqlodbc-08.02.0400]$ ls -l
> /usr/local/lib/libodbcinst.so.1.0.0 and
>
> -rwxr-xr-x 1 root root 310919 Jul 19 16:59
> /usr/local/lib/libodbcinst.so.1.0.0 and
>
> /usr/local/lib is in the ldconfig path.
>
> Just prior to this, I installed from source unixodbc 2.2.12 in /usr/local
>
> So, please tell me what I did wrong, and how to fix it.
>
> Thank you.
>
> Don
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>