[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ncurses library with 64 bits code
From: |
Thomas Dickey |
Subject: |
Re: ncurses library with 64 bits code |
Date: |
Fri, 11 Apr 2003 08:41:47 -0400 |
User-agent: |
Mutt/1.2.5i |
On Fri, Apr 11, 2003 at 12:17:33PM +0200, Jose Luis Rico Botella wrote:
> Hello group:
>
> I try to compile ncurses 5.3 library with 64 bits code. My gcc version
> is 3.2.2 and is running on Solaris 8 Ultra Sparc II.
> I have exported CFLAGS=-m64 -mcpu=v9 -mcmodel=medlow
>
> And the file log is:
>
> cd man && make - DESTDIR="" all
...
> gcc -o make_hash -DHAVE_CONFIG_H -I../ncurses -I. -m64 -mcpu=v9
> -mcmodel=medlow -DHAVE_CONFIG_H -I../ncurses -I. -DNDEBUG -I.
> -I../include -I/usr/local/include/ncurses -DMAIN_PROGRAM
> ./tinfo/comp_hash.c
...
> cd ../objects; gcc -I../progs -I. -DNDEBUG -I. -I../include
> -I/usr/local/include/ncurses -DHAVE_CONFIG_H -m64 -mcpu=v9
> -mcmodel=medlow -c ../progs/dump_entry.c
> gcc ../objects/tic.o ../objects/dump_entry.o -L../lib -lncurses -o tic
the problem is that the $CFLAGS aren't being applied to the link command
for tic. I think that if you also set $LDFLAGS with -m64 -mcpu=v9,
then it will apply to the proper place in the generate makefiles.
> *** Error code 1
> *** Error code 1
> ar: creating ../lib/libncurses.a
> ar: writing ../lib/libncurses.a
> ar: creating ../lib/libncurses_g.a
> ar: writing ../lib/libncurses_g.a
> ld: fatal: file ../objects/tic.o: wrong ELF class: ELFCLASS64
> ld: fatal: File processing errors. No output written to tic
> collect2: ld returned 1 exit status
> make: Fatal error: Command failed for target `tic'
> Current working directory /root/ncurses-5.3/progs
> make: Fatal error: Command failed for target `all'
>
>
> Thanks
> Jose L.
> Spain
> _______________________________________________
> Bug-ncurses mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-ncurses
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net