gcc 2.7.2, sparc-solaris 2.4, and tcl 7.5 
Author Message
 gcc 2.7.2, sparc-solaris 2.4, and tcl 7.5

I can't seem to get tcl 7.5 to build. Here is my configure command:

 ./configure --prefix=/usr/local/tcl --enable-gcc

I run this with the recommended environment variables:

 CC=gcc
 CPP=gcc -E
 LD_LIBRARY_PATH=/usr/openwin/lib:/usr/X11R6/lib

Configure seems to run fine (we don't have any problems with the GNU
software). The configure log is included below also.

There seems to be a problem with an include file net/errno.h:

 gcc -c -O  -I./../generic -I. -DNO_STRERROR=1 -DNO_GETWD=1 -DNO_WAIT3=1 -DNO_UNAME=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DTM_IN_SYS_TIME=1 -DHAVE_TIMEZONE_VAR=1 -Dmode_t=int -Dpid_t=int -Dsize_t=unsigned -Duid_t=int -Dgid_t=int -DUSE_DIRENT2_H=1 -DNO_UNION_WAIT=1 -DNEED_MATHERR=1 -Dvfork=fork -DNO_GETTOD=1 -DGETTOD_NOT_DECLARED=1 -DHAVE_NET_ERRNO_H=1       -DTCL_SHLIB_EXT=\".so\" ./../generic/regexp.c
 In file included from ../generic/tclPort.h:25,
                  from ./../generic/regexp.c:48:
 ../generic/../unix/tclUnixPort.h:34: net/errno.h: No such file or directory
 make: *** [regexp.o] Error 1

If I fix this specific problem, most of it builds, but I get linker
errors involving sockets libraries.

It seems to me there is something bascially wrong with the configuration
produced by configure. Everyone seems to be reporting no serious problems
building tcl on Sparc/Solaris 2.4, so I am wondering what I am doing
wrong?

Thanks.

-Joe Picone

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure: In function `t':
configure:1598: structure has no member named `tm_tzadj'
configure: In function `t':
configure:1622: structure has no member named `tm_gmtoff'
In file included from configure:2258:
/usr/local/gnu/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2/include/sys/types.h:163: warning: empty declaration
/usr/local/gnu/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2/include/sys/types.h:167: warning: empty declaration
/usr/local/gnu/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2/include/sys/types.h:170: warning: empty declaration
/usr/local/gnu/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2/include/sys/types.h:174: warning: empty declaration
/usr/local/gnu/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2/include/sys/types.h:181: warning: empty declaration
configure: In function `t':
configure:2263: storage size of `x' isn't known
In file included from /usr/local/gnu/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2/include/floatingpoint.h:33,
                 from /usr/local/gnu/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2/include/math.h:206,
                 from configure:2295:
/usr/local/gnu/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2/include/stdio.h:25: warning: empty declaration



Wed, 06 Jan 1999 03:00:00 GMT  
 gcc 2.7.2, sparc-solaris 2.4, and tcl 7.5

Quote:
> If I fix this specific problem, most of it builds, but I get linker
> errors involving sockets libraries.

I built Tcl7.5/Tk4.1 on Solaris 2.4 with gcc-2.7.2 a week ago and it
worked pretty OK. I didn't have the 'error.h' problem (probably you
have some problem mounting your include directories from the net).

About the linker problem, I think it is a bug in 'configure' because
I had to add '-lsockets -lnsl' to have it loaded.

Otherwise it runs very well. I also extended it with Tix4.1 and
BLT2.1 and everything worked OK.

Good luck!

Carlos Vidal



Thu, 07 Jan 1999 03:00:00 GMT  
 gcc 2.7.2, sparc-solaris 2.4, and tcl 7.5

[cancelled & reposted, sorry if you see it twice, disregard the last.]



Quote:
>> If I fix this specific problem, most of it builds, but I get linker
>> errors involving sockets libraries.

>I built Tcl7.5/Tk4.1 on Solaris 2.4 with gcc-2.7.2 a week ago and it
>worked pretty OK. I didn't have the 'error.h' problem (probably you
>have some problem mounting your include directories from the net).

>About the linker problem, I think it is a bug in 'configure' because
>I had to add '-lsockets -lnsl' to have it loaded.

>Otherwise it runs very well. I also extended it with Tix4.1 and
>BLT2.1 and everything worked OK.

I had great frustrations and was finally successful (Sol 2.5, gcc2.7.2)
last week -- Tcl went fine, but tk crapped out at wish. I'm not sure
what exactly I did (sorry) but (eventually) it worked.

Seeing the recent postings I decided to see if I could replicate my
feat for others and started from scratch ftp'g the source -- but the
first time I tried to compile tk4.1 it worked without any problems.

So apparently someone has fixed something or there has been a harmonic
convergence of sorts since 2 weeks ago. The only change I've made is
setting my LD_LIBRARY_PATH, which is only one of the things that I did
before (and I think it was insufficient by itself prior to now).

So good luck, sorry I'm not helpful, but I thought my story might be of
interest to maintainers. -- cheers, john.

(Althought Tcl still fails the load.test)



Mon, 11 Jan 1999 03:00:00 GMT  
 gcc 2.7.2, sparc-solaris 2.4, and tcl 7.5

Quote:

> Seeing the recent postings I decided to see if I could replicate my
> feat for others and started from scratch ftp'g the source -- but the
> first time I tried to compile tk4.1 it worked without any problems.

Typically, your problem is caused by not removing the config.cache file
between configurations on different problems.  Of course, starting
afresh is just one of the many ways to lose this file :-)

[It may not be called "config.cache", but the name is something along
those lines.]

--
John Haxby
These are my opinions, not my employer's.



Tue, 12 Jan 1999 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Undefined symbols building tcl 7.5/ Solaris 2.4

2. Tcl 7.5 [penultimate] Solaris 2.4 test question

3. Tcl 8.0b2 test fail - Solaris 2.4/SPARC/Sun compiler

4. Expect, tcl, Solaris 2.4/5, gcc 2.6.3

5. Compiling Tcl w/ Solaris 2.4 and gcc 2.6.3

6. Can't compile gforth-0.3.0 on Sparc Solaris 2.4

7. Tk 8.0b2 test results for Solaris 2.4/SPARC/Sun compiler

8. make test dumps core - Solaris/Sparc 2.4

9. Solaris 2.4, SPARC 1+, 8 bit color board, Sun's cc, Tk 4.0, test failure

10. Help sought for compiling Python 1.4 on Solaris 2.4 with gcc 2.7.2

11. building Tcl7.5 on Solaris 2.4 with gcc

12. Tk4.1 compile on Solaris 2.4 with gcc 2.7.2 failing

 

 
Powered by phpBB® Forum Software