Menu

#2535 tk8.4.4 build fails on sparc-sun-solaris2.8

obsolete: 8.4.4
closed-invalid
5
2003-11-19
2003-11-19
Madhusudan
No

1. Successfully built Tcl8.4.4
2. Build of Tk8.4.4 failed with error message

<!--start error message--->

gcc -pipe tkAppInit.o \ -L/export/home/madhu/gnu/tk8.4.4/unix -ltk8.4 \ -F/export/home/madhu/gnu/tcl8.4.4/unix -
framework Tcl -lsocket -lpthread -L/usr/openwin/lib -
lX11 -ldl -lm -Wl,-R,/opt/ccl/gnu/lib:/usr/openwin/lib -o
wish
gcc: Tcl: No such file or directory
gcc: unrecognized option `-
F/export/home/madhu/gnu/tcl8.4.4/unix'
make: *** [wish] Error 1

<---end error message---!>

3. configured with command:
./configure --prefix=/opt/ccl/gnu --host=sparc-sun-
solaris2.8 --enable-threads --with-
tcl=/export/home/madhu/gnu/tcl8.4.4/unix

4 the Makefile generated contains
(on line 220)
TCL_LIB_SPEC = -
F/export/home/madhu/gnu/tcl8.4.4/unix -framework Tcl
(on line 231)
WISH_LIBS = $(TCL_LIB_SPEC) -lsocket -lpthread
$(X11_LIB_SWITCHES) -ldl -lm
(on line 424 )

wish: $(WISH_OBJS) $(TK_LIB_FILE)
$(TK_STUB_LIB_FILE)
$(CC) $(LDFLAGS) $(WISH_OBJS) \ -L/export/home/madhu/gnu/tk8.4.4/unix -
ltk8.4 \ $(WISH_LIBS) $(CC_SEARCH_FLAGS) -o wish

5. the "-framework Tcl' is being passed to gcc which
cribs that it cannot find the file "Tcl".

Discussion

  • Madhusudan

    Madhusudan - 2003-11-19

    The config.log file generated by configure with options as said.

     
  • Madhusudan

    Madhusudan - 2003-11-19

    The makefile in question.

     
  • Donal K. Fellows

    Logged In: YES
    user_id=79902

    It sounds like the option --enable-frameworks was passed to
    configure. That is a *MacOSX only* option. No other
    platform has frameworks. Please do a 'make distclean' and
    then rerun configure making sure you do not include that
    option. Your remake should then run smoothly. Only if it
    still doesn't is there a problem for us to fix.

     
  • Donal K. Fellows

    • status: open --> closed-invalid