zsh-workers
 help / color / mirror / code / Atom feed
* zsh 4.0.4 on Solaris 2.6, shared (dynamic) library issues
@ 2002-05-01 21:56 John H. Robinson, IV
  2002-05-02  9:54 ` Peter Stephenson
  0 siblings, 1 reply; 5+ messages in thread
From: John H. Robinson, IV @ 2002-05-01 21:56 UTC (permalink / raw)
  To: zsh-workers

i am not subscribed to this list.

anyway, whilst compiling zsh 4.0.4 on a Solaris 2.6 system,

[jhriv@chao:~]% uname -a
SunOS chao.ucsd.edu 5.6 Generic_105181-26 sun4u sparc

i was having a very hard time getting the ``make check'' to complete. i
narrowed it down to the zsh/zpty module not being loaded. further
research indicated that _no_ dynamic modules were being loaded.

eventually, i found the problem in the configure script: it thinks that
the proper flag for shared libraries is a -G, however, for my version of
gcc

[jhriv@chao:~]% gcc --version
2.95.2

    the proper flag is -shared.

when i changed the line:
solaris*|sysv4*|esix*) DLLDFLAGS="${DLLDFLAGS=-G}" ;;
to
solaris*|sysv4*|esix*) DLLDFLAGS="${DLLDFLAGS=-shared}" ;;

./config.status --recheck was able to determine that no underscore was
required, built most everything as a dynamic module, all checks passed
with flying colours, and my new shell is only 4.0k big.

oh, i did have to temporarily set LD_LIBRARY_PATH=$PWD/Src for the make
check to even see the libzsh-4.0.4.so library. once i did that,
everything was great.

i have no idea how to change autoconf's mind about the -G/-shared flag
issue.

-john


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-05-02 13:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-01 21:56 zsh 4.0.4 on Solaris 2.6, shared (dynamic) library issues John H. Robinson, IV
2002-05-02  9:54 ` Peter Stephenson
2002-05-02 10:21   ` Borsenkow Andrej
2002-05-02 13:33     ` Peter Stephenson
2002-05-02 13:52       ` Borsenkow Andrej

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).