Subject: pkg/10924: tcl-8.3.2 won't compile on NetBSD-1.4.3_ALPHA
To: None <gnats-bugs@gnats.netbsd.org>
From: Frederick Bruckman <fb@enteract.com>
List: netbsd-bugs
Date: 08/31/2000 09:19:15
>Number:         10924
>Category:       pkg
>Synopsis:       tcl-8.3.2 won't compile on NetBSD-1.4.3_ALPHA
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 31 09:20:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Frederick Bruckman
>Release:        NetBSD-1.4.3_ALPHA
>Organization:
>Environment:
	
System: NetBSD handy.localnet 1.4.3_ALPHA NetBSD 1.4.3_ALPHA (HANDY) #1:
Thu Aug 24 10:02:53 CDT 2000 fredb@handy.localnet:
/s/src/sys/arch/i386/compile/HANDY i386


>Description:

Log below. My guess: it looks like libtool is being told to compile libtcl83.so.1.0,
when it should be trying to compile libtcl83.la (so it knows it's a library). No idea
why it seems to work on NetBSD-1.5_ALPHA.

===> Building for tcl-8.3.2
rm -f libtcl83.so.1.0
/usr/pkg/bin/libtool  --mode=link cc -rpath /usr/pkg/lib -o libtcl83.so.1.0 regcomp.lo regexec.lo regfree.lo regerror.lo tclAlloc.lo tclAsync.lo tclBasic.lo tclBinary.lo tclCkalloc.lo tclClock.lo tclCmdAH.lo tclCmdIL.lo tclCmdMZ.lo tclCompCmds.lo tclCompExpr.lo tclCompile.lo tclDate.lo tclEncoding.lo tclEnv.lo tclEvent.lo tclExecute.lo tclFCmd.lo tclFileName.lo tclGet.lo tclHash.lo tclHistory.lo tclIndexObj.lo tclInterp.lo tclIO.lo tclIOCmd.lo tclIOGT.lo tclIOSock.lo tclIOUtil.lo tclLink.lo tclListObj.lo tclLiteral.lo tclLoad.lo tclMain.lo tclNamesp.lo tclNotify.lo tclObj.lo tclPanic.lo tclParse.lo tclParseExpr.lo tclPipe.lo tclPkg.lo tclPosixStr.lo tclPreserve.lo tclProc.lo tclRegexp.lo tclResolve.lo tclResult.lo tclScan.lo tclStringObj.lo tclThread.lo tclStubInit.lo tclStubLib.lo tclTimer.lo tclUtf.lo tclUtil.lo tclVar.lo tclMtherr.lo tclUnixChan.lo tclUnixEvent.lo tclUnixFCmd.lo tclUnixFile.lo tclUnixPipe.lo tclUnixSock.lo tclUnixTime.lo tclUnixInit.lo tclUnixThrd.lo tclUni!
xNotfy.lo tclLoadDl.lo  -version-info 1:0
libtool: link: warning: `-version-info' is ignored for programs
                                                       ^^^^^^^^ 
cc -o libtcl83.so.1.0 regcomp.o regexec.o regfree.o regerror.o tclAlloc.o tclAsync.o tclBasic.o tclBinary.o tclCkalloc.o tclClock.o tclCmdAH.o tclCmdIL.o tclCmdMZ.o tclCompCmds.o tclCompExpr.o tclCompile.o tclDate.o tclEncoding.o tclEnv.o tclEvent.o tclExecute.o tclFCmd.o tclFileName.o tclGet.o tclHash.o tclHistory.o tclIndexObj.o tclInterp.o tclIO.o tclIOCmd.o tclIOGT.o tclIOSock.o tclIOUtil.o tclLink.o tclListObj.o tclLiteral.o tclLoad.o tclMain.o tclNamesp.o tclNotify.o tclObj.o tclPanic.o tclParse.o tclParseExpr.o tclPipe.o tclPkg.o tclPosixStr.o tclPreserve.o tclProc.o tclRegexp.o tclResolve.o tclResult.o tclScan.o tclStringObj.o tclThread.o tclStubInit.o tclStubLib.o tclTimer.o tclUtf.o tclUtil.o tclVar.o tclMtherr.o tclUnixChan.o tclUnixEvent.o tclUnixFCmd.o tclUnixFile.o tclUnixPipe.o tclUnixSock.o tclUnixTime.o tclUnixInit.o tclUnixThrd.o tclUnixNotfy.o tclLoadDl.o  -Wl,-R/usr/pkg/lib -Wl,-R/usr/pkg/lib
/usr/lib/crt0.o: Undefined symbol `_main' referenced from text segment
tclExecute.o: Undefined symbol `_acos' referenced from data segment
tclExecute.o: Undefined symbol `_asin' referenced from data segment
tclExecute.o: Undefined symbol `_atan' referenced from data segment
tclExecute.o: Undefined symbol `_atan2' referenced from data segment
tclExecute.o: Undefined symbol `_ceil' referenced from data segment
tclExecute.o: Undefined symbol `_cos' referenced from data segment
tclExecute.o: Undefined symbol `_cosh' referenced from data segment
tclExecute.o: Undefined symbol `_exp' referenced from data segment
tclExecute.o: Undefined symbol `_floor' referenced from data segment
tclExecute.o: Undefined symbol `_fmod' referenced from data segment
tclExecute.o: Undefined symbol `_hypot' referenced from data segment
tclExecute.o: Undefined symbol `_log' referenced from data segment
tclExecute.o: Undefined symbol `_log10' referenced from data segment
tclExecute.o: Undefined symbol `_pow' referenced from data segment
tclExecute.o: Undefined symbol `_sin' referenced from data segment
tclExecute.o: Undefined symbol `_sinh' referenced from data segment
tclExecute.o: Undefined symbol `_sqrt' referenced from data segment
tclExecute.o: Undefined symbol `_tan' referenced from data segment
tclExecute.o: Undefined symbol `_tanh' referenced from data segment
tclUnixPipe.o: warning: tmpnam() possibly used unsafely, use mkstemp() or mkdtemp()
collect2: ld returned 1 exit status
*** Error code 1

Stop.

>How-To-Repeat:
	
	cd lang/tcl; make
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: