Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RE: Zsh 4.0.2 + 64bit Solaris 8 Forte 6.1 compiler



First, why would you want to compile zsh in 64 bit mode? Does your compiler
support long long in 32 bit mode?

> I have couple problems with zsh compile process.  I don't know how to
> give correct parameters to configure process.  Compile will fail
> because ./Makefile line 124 (LDFLAGS= ) is empty and it should contain
> -xarch=v9.  I have tried to use these methods for configure but no
> success yet.
> CC=cc CFLAGS='-xO3 -xarch=v9' LDFLAGS='-xO3 -xarch=v9' ./configure
> CC=cc ./configure --enable-cflags='-xO3 -xarch=v9'
> --enable-ldflags='-xO3 -xarch=v9'
>
> `stamp-modobjs' is up to date.
> rm -f libzsh-4.0.2.so
> cc   -G -o libzsh-4.0.2.so  `cat stamp-modobjs` -lsocket -ldl
> -lnsl -lcurses -lm  -lc
> ld: fatal: file builtin.o: wrong ELF class: ELFCLASS64
> ld: fatal: File processing errors. No output written to libzsh-4.0.2.so
>

Use (in addition to the above)

DLLDFLAGS=-xarch=v9

> The second problem is with shared code.  ./configure line 6833
> ${DLCFLAGS=-Kpic} doesn't work and you should use -KPIC
>

The same, give

DLCFLAGS=-KPIC

when configuring or

make DLCFLAGS=-KPIC ...

If you can provide a clean configure test to detect your compiler ...

> `stamp-modobjs' is up to date.
> rm -f libzsh-4.0.2.so
> cc -xO3 -xarch=v9  -G -o libzsh-4.0.2.so  `cat stamp-modobjs`
               ^^^^^^^^^^^^

where this comes from?

-andrej



Messages sorted by: Reverse Date, Date, Thread, Author