From: Richard C. <cr...@ha...> - 2003-04-29 16:30:41
|
Hi: I am trying to build scotty ( http://wwwhome.cs.utwente.nl/~schoenw/scotty/ ) with TclTkAquaBI-8.4.2. Following suggestion in the archive I added "-framework Tcl -dynamiclib" to the CFLAGS and tried building with gcc, with the following result: [ many other similiar lines for each source file ..] .... gcc -c -O -framework Tcl -dynamiclib -fno-common -I. -I./../tnm/generic -I/usr/include -I./../tnm/snmp ./../tnm/snmp/tnmMibTcl.c gcc: -framework: linker input file unused because linking not done gcc: Tcl: linker input file unused because linking not done cc -dynamiclib tnmInit.o tnmUtil.o tnmJob.o tnmIned.o tnmSyslog.o tnmIcmp.o tnmDns.o tnmEvent.o tnmUdp.o tnmSunRpc.o tnmNtp.o tnmRpc.o tnmHttp.o tnmNetdb.o tnmUnixInit.o tnmUnixLog.o tnmUnixSocket.o tnmUnixIcmp.o mount_clnt.o mount_xdr.o ether_clnt.o ether_xdr.o rstat_clnt.o rstat_xdr.o pcnfsd_clnt.o pcnfsd_xdr.o tnmAsn1.o tnmMD5.o tnmSnmpNet.o tnmSnmpUtil.o tnmSnmpInst.o tnmSnmpSend.o tnmSnmpRecv.o tnmSnmpAgent.o tnmSnmpTcl.o tnmMibQuery.o tnmMibParser.o tnmMibTree.o tnmMibFrozen.o tnmMibTcl.o -o tnm.dylib -lfl ld: Undefined symbols: _Tcl_Alloc _Tcl_AppendResult _Tcl_Close _Tcl_CreateCommand _Tcl_DStringAppend _Tcl_DStringFree _Tcl_DStringInit _Tcl_EvalFile _Tcl_Free _Tcl_GetCommandInfo _Tcl_GetHostName _Tcl_GetVar2 _Tcl_JoinPath _Tcl_OpenFileChannel _Tcl_PkgProvide _Tcl_SetVar2 _Tcl_SplitPath _Tcl_TranslateFileName _Tcl_DStringAppendElement _Tcl_DStringResult _Tcl_GetChannel _Tcl_GetInt _Tcl_InitHashTable _Tcl_Realloc _Tcl_ResetResult _Tcl_SetResult _Tcl_Write _TclpCreateDirectory _Tcl_AddErrorInfo _Tcl_AllowExceptions _Tcl_AppendElement _Tcl_BackgroundError _Tcl_CreateTimerHandler _Tcl_DeleteCommand _Tcl_DeleteHashTable _Tcl_DeleteTimerHandler _Tcl_DoOneEvent _Tcl_EventuallyFree _Tcl_FirstHashEntry _Tcl_GetAssocData _Tcl_GetCommandName _Tcl_GlobalEval _Tcl_NextHashEntry _Tcl_Preserve _Tcl_Release _Tcl_SetAssocData _TclpGetTime _Tcl_CreateChannelHandler _Tcl_DeleteChannelHandler _Tcl_Exit _Tcl_Flush _Tcl_GetVar _Tcl_Gets _Tcl_PosixError _Tcl_SetChannelOption _Tcl_SetVar _Tcl_SplitList _Tcl_DeleteHashEntry _Tcl_Merge _Tcl_CreateFileHandler _Tcl_DeleteFileHandler _Tcl_DStringEndSublist _Tcl_DStringSetLength _Tcl_DStringStartSublist _Tcl_Eof _Tcl_OpenTcpClient _Tcl_OpenTcpServer _Tcl_Read _Tcl_StringMatch _Tcl_OpenCommandChannel _Tcl_ReapDetachedProcs _Tcl_TraceVar _Tcl_GetDouble _Tcl_PrintDouble _Tcl_TraceVar2 _Tcl_UnsetVar _Tcl_CallWhenDeleted _Tcl_DontCallWhenDeleted _Tcl_Eval _Tcl_GetBoolean _Tcl_GetInterpPath _Tcl_GetSlave _Tcl_IsSafe /usr/bin/libtool: internal link edit command failed make: *** [tnm.dylib] Error 1 Any suggestions gratefully accepted, Richard Crane ------- Haskins Laboratories / (203) 865-6163 X 275 / FAX (203) 865-8963 |
From: Jim I. <ji...@ap...> - 2003-04-29 17:15:19
|
Richard. This line also needs the -framework Tcl. Think of -framework as a combination of -I flags to find the Tcl headers AND -L, -l flags to find the Tcl shared library. Then it is clear that you have to use it BOTH to make your .o files, and to make your final dylib. Jim On Tuesday, April 29, 2003, at 09:30 AM, Richard Crane wrote: > cc -dynamiclib tnmInit.o tnmUtil.o tnmJob.o tnmIned.o tnmSyslog.o > tnmIcmp.o tnmDns.o tnmEvent.o tnmUdp.o tnmSunRpc.o tnmNtp.o tnmRpc.o > tnmHttp.o tnmNetdb.o tnmUnixInit.o tnmUnixLog.o tnmUnixSocket.o > tnmUnixIcmp.o mount_clnt.o mount_xdr.o ether_clnt.o ether_xdr.o > rstat_clnt.o rstat_xdr.o pcnfsd_clnt.o pcnfsd_xdr.o tnmAsn1.o tnmMD5.o > tnmSnmpNet.o tnmSnmpUtil.o tnmSnmpInst.o tnmSnmpSend.o tnmSnmpRecv.o > tnmSnmpAgent.o tnmSnmpTcl.o tnmMibQuery.o tnmMibParser.o tnmMibTree.o > tnmMibFrozen.o tnmMibTcl.o -o tnm.dylib -lfl > -- Jim Ingham ji...@ap... Developer Tools Apple Computer |
From: Robert K. <ro...@cr...> - 2003-05-05 19:59:42
|
I have to download some binaries to upgrade an old app. on OS 9 (I don't have a dev. environment there). Does anyone know if I can use the Tktable27.shlb.sit.bin 'tktable' download link at sourceforge and whether it is particular about which tk version or it is SEA compatible? Which wish binary do you recommend? Thanks for any help, Robert Karen |