Re: Compiling libwww on Solaris with Sun's c compiler

Vic Bancroft <[email protected]>
Newsgroups gmane.comp.lib.libwww
Message-ID <Pine.SOL.4.21.0208150843520.21366-100000@zweb>

On Wed, 14 Aug 2002, Tanmay Patwardhan wrote:

> Has anyone succeeded in compiling libwww with the following congifuration:
> 1. Solaris 2.8

  $ uname -a
  SunOS res 5.8 Generic_108528-14 sun4u sparc SUNW,Ultra-5_10

> 2. Sun's C compiler

  $ cc -V 
  cc: Sun Workshop 6 2000/04/07 C 5.1

Yes, however there are some oddities with the libtool generated by configure
in the w3c-libwww-5.4.0 distribution.  There are several invocations of test
that need to have additional quotes around the macros they use.  A quick fix is
to patch libtool as follows, (after running configure),

733c733
<     if test $pic_mode = no && test "$deplibs_check_method" != pass_all; then
---
>     if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
1968c1968
< 	   { test $linkmode = lib && test $hardcode_into_libs = yes; }; then
---
> 	   { test "$linkmode" = lib && test "$hardcode_into_libs" = yes; }; then
2232c2232
< 	     { test $hardcode_into_libs != yes || test $build_old_libs = yes ||
---
> 	     { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes ||
2685c2685
< 	if test $hardcode_into_libs != yes || test $build_old_libs = yes; then
---
> 	if test "$hardcode_into_libs" != yes || test $build_old_libs = yes; then
2728c2728
< 	    if test $build_libtool_need_lc = "yes"; then
---
> 	    if test "$build_libtool_need_lc" = "yes"; then
3020c3020
< 	if test $hardcode_into_libs = yes; then
---
> 	if test "$hardcode_into_libs" = yes; then

I had not noticed this before, but then again, I use usually use gcc . . . 

> 3. Sun's make file

No, it will not work unless you were to hand edit all the GNU make syntax out of
the generated makefiles.  Much better to build a copy of the GNU make[1],
install it as gmake and then run it by setting you MAKE environment variable,

  $ MAKE=gmake gmake

more,
l8r,

------------------------------------------------------------------- 
Victor Bancroft, Principal Engineer, Zvolve Systems [v]770.551.4505 
1050 Crown Pointe Pkwy, Suite 300, Atlanta GA 30338 [f]770.551.4509 
Fellow, Artificial Intelligence Center              [v]706.542-0358 
Athens, Georgia  30602, U.S.A           http://ai.uga.edu/~bancroft 

[1] Web page, http://www.gnu.org/software/make/make.html and the current
distribution ftp://ftp.gnu.org/pub/gnu/make/make-3.79.1.tar.gz
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.