Seema wrote:
> Hi,
>
> I'm unable to find the 64-bit libsqlite3.so library.
> Running 'file' on /usr/lib/libsqlit3.so and /usr/lib/amd64/libsqlite3 (or
> /usr/lib/sparcv9/libsqlite3.so" shows that both are 32-bit libraries.
> ----
>> file /usr/lib/libsqlite3.so /usr/lib/amd64/libsqlite3.so
> /usr/lib/libsqlite3.so: ELF 32-bit LSB dynamic lib 80386 Version 1 [FPU],
> dynamically linked, not stripped, no debugging information available
> /usr/lib/amd64/libsqlite3.so: ELF 32-bit LSB dynamic lib 80386 Version 1
> [FPU], dynamically linked, not stripped, no debugging information available
> ----
>
> Is this a known issue ?
It is now.
> Is it located in some other directory ?
No.
It appears to be that the CFLAGS setting in CONFIGURE_OPTIONS
is overriding the attempt to pass CFLAGS in the environment
in the configure runs, and that's where -xarch=generic64 is.
This quick hack makes it work:
{root:sfwnv-x:51} pwd
/builds2/sfw-fixes/usr/src/lib/sqlite3
{root:sfwnv-x:52} sccs diffs Makefile.sfw
------- Makefile.sfw -------
78c78
< CC=$(NATIVECC) CFLAGS="-I$(ROOT)/usr/include" \
---
> CC=$(NATIVECC) \
148c148
< "CFLAGS=$(CFLAGS) -xc99=none -xCC" \
---
> "CFLAGS=-I$(ROOT)/usr/include $(CFLAGS) -xc99=none -xCC" \
160c160
< "CFLAGS=$(CFLAGS64) -xc99=none -xCC" \
---
> "CFLAGS=-I$(ROOT)/usr/include $(CFLAGS64) -xc99=none -xCC" \
173c173
< CC=$(CC) "CFLAGS=-xc99=none -xCC" \
---
> CC=$(CC) "CFLAGS=-I$(ROOT)/usr/include -xc99=none -xCC" \
183c183
< CC=$(CC) "CFLAGS=$(CFLAGS64) -xc99=none -xCC" \
---
> CC=$(CC) "CFLAGS=-I$(ROOT)/usr/include $(CFLAGS64)
-xc99=none -xCC" \
Not sure why it uses NATIVECC - that's really supposed to be for
building binaries that would run on the build machine during
the build, and thus is not really used much (well, in ON where it comes
from and that division actually matters a lot. It could matter here more
too if we did cross-compilation). I'd think it should be CC.
Though I'm unclear as to how the 64-bit libraries were originally
tested as the checklist claimed now. Unless this was due to
a last-minute change (shiver).
Mike