Hi, I'm having trouble in compiling Tcl/Tk as static (i.e. --disable-shared) using RedHat 8.0 source package. Tk does not compile, as patch applied to it modifies the way libtk.so.0 is linked. Actions and responses are shown below. What can I do to solve this problem? In addition, Tcl source code needs a patch to change tmpnam() function for mkstemp(), available at Tcl sourceforge's page. Thanks, -- Fabiano Bizinelli CEFET-PR Federal Center of Technological Education of Paraná LST Research Lab on Telecommunications Systems Av. Sete de Setembro, 3165 Curitiba - Paraná - Brasil CEP 80230-901 Phone: +55 (41) 310-4768 Fax: +55 (41) 310-4753 -------------------------------------------------------------------------------- $ cd tk8.3.3 $ patch -p1 -N -i /usr/src/redhat/SOURCES/tk-8.3.3-makecfg.patch (..) $ cd unix $ ./configure --enable-gcc --enable-64bit --disable-shared creating cache ./config.cache checking for ranlib... ranlib checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for gcc... (cached) gcc checking whether the C compiler (gcc -g -O2 ) works... yes checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking how to run the C preprocessor... gcc -E checking for unistd.h... yes checking for limits.h... yes checking for building with threads... no (default) checking if the compiler understands -pipe... yes checking for Tcl configuration... found /home/fabiano/ns-2/tcl8.3.3/unix/tclConfig.sh checking for existence of /home/fabiano/ns-2/tcl8.3.3/unix/tclConfig.sh... loading checking if 64bit support is requested... yes checking if 64bit Sparc VIS support is requested... no checking system version (for dynamic loading)... Linux-2.4.18-27.8.0 checking for dlopen in -ldl... yes configure: warning: 64bit support being disabled -- don't know magic for this platform checking for build with symbols... no checking for sin... no checking for main in -lieee... yes checking stdlib.h... yes checking fd_set and sys/select... yes checking for ANSI C header files... yes checking for mode_t... yes checking for pid_t... yes checking for size_t... yes checking for uid_t in sys/types.h... yes checking for sys/time.h... yes checking whether time.h and sys/time.h may both be included... yes checking pw_gecos in struct pwd... yes checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for main in -lXbsd... no checking for connect... yes checking for gethostbyname... yes checking for sin... (cached) no checking for main in -lieee... (cached) yes checking whether char is unsigned... no checking for strtod... yes checking for Solaris 2.4 strtod bug... ok checking how to build libraries... static updating cache ./config.cache creating ./config.status creating Makefile creating tkConfig.sh $ make (..) rm -f libtk.so.0 gcc -pipe -shared -Wl,-soname,libtk.so.0 -o libtk.so.0 tk3d.o tkArgv.o tkAtom.o tkBind.o tkBitmap.o tkClipboard.o tkCmds.o tkColor.o tkConfig.o tkConsole.o tkCursor.o tkError.o tkEvent.o tkFocus.o tkFont.o tkGet.o tkGC.o tkGeometry.o tkGrab.o tkGrid.o tkMain.o tkObj.o tkOldConfig.o tkOption.o tkPack.o tkPlace.o tkSelect.o tkUtil.o tkVisual.o tkWindow.o tkUnix.o tkUnix3d.o tkUnixButton.o tkUnixColor.o tkUnixConfig.o tkUnixCursor.o tkUnixDraw.o tkUnixEmbed.o tkUnixEvent.o tkUnixFocus.o tkUnixFont.o tkUnixInit.o tkUnixKey.o tkUnixMenu.o tkUnixMenubu.o tkUnixScale.o tkUnixScrlbr.o tkUnixSelect.o tkUnixSend.o tkUnixWm.o tkUnixXId.o tkStubInit.o tkStubLib.o tkButton.o tkEntry.o tkFrame.o tkListbox.o tkMenu.o tkMenubutton.o tkMenuDraw.o tkMessage.o tkScale.o tkScrollbar.o tkCanvas.o tkCanvArc.o tkCanvBmap.o tkCanvImg.o tkCanvLine.o tkCanvPoly.o tkCanvPs.o tkCanvText.o tkCanvUtil.o tkCanvWind.o tkRectOval.o tkTrig.o tkImage.o tkImgBmap.o tkImgGIF.o tkImgPPM.o tkImgPhoto.o tkText.o tkTextBTree.o tkTextDisp.o tkTextImage.o tkTextIndex.o tkTextMark.o tkTextTag.o tkTextWind.o -L/home/fabiano/ns-2/tcl8.3.3/unix -L/usr/X11R6/lib -lX11 -ldl -lieee -lm -lc -ltcl ranlib libtk.so.0 ranlib: libtk.so.0: File format not recognized make: *** [libtk.so.0] Error 1 _______________________________________________ Redhat-devel-list mailing list Redhat-devel-list@xxxxxxxxxx https://listman.redhat.com/mailman/listinfo/redhat-devel-list