Help save net neutrality! Learn more.
Close

#117 Build fails at tk with bad include path

closed-works-for-me
3
2008-05-07
2007-05-22
No

building on Slackware 10.x linux system, the build fails to build tkMain.c -- this appears to be an include path issue. Sources are 7.10.0 tarball.

#include <tclInt.h> is a private header. perhaps it should be included "tclInt.h"? In any case, header search paths are no working.

-dave

dave@shuttle:~/toolbuilds/brlcad/brlcad-7.10.0/src/other/tk/unix$ make
gcc -pipe -c -g -Wall -Wno-implicit-int -fPIC -I/home/dave/toolbuilds/brlcad/brlcad-7.10.0/src/other/tk/unix/../unix -I/home/dave/toolbuilds/brlcad/brlcad-7.10.0/src/other/tk/unix/../generic -I/home/dave/toolbuilds/brlcad/brlcad-7.10.0/src/other/tk/unix/../bitmaps -I/vld/other/morrison/brlcad/src/other/tcl/generic -I/vld/other/morrison/brlcad/src/other/tcl/unix -I/usr/X11R6/include -DPACKAGE_NAME=\"tk\" -DPACKAGE_TARNAME=\"tk\" -DPACKAGE_VERSION=\"8.5\" -DPACKAGE_STRING=\"tk\ 8.5\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DSTATIC_BUILD=1 -DPEEK_XCLOSEIM=1 -DTCL_SHLIB_EXT=\".so\" -DTCL_CFG_DEBUG=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_PW_GECOS=1 -DHAVE_XSS=1 -DTCL_NO_DEPRECATED /home/dave/toolbuilds/brlcad/brlcad-7.10.0/src/other/tk/unix/../generic/tkMain.c
/home/dave/toolbuilds/brlcad/brlcad-7.10.0/src/other/tk/generic/tkMain.c:24:20: tclInt.h: No such file or directory
/home/dave/toolbuilds/brlcad/brlcad-7.10.0/src/other/tk/generic/tkMain.c: In function `Tk_MainEx':
/home/dave/toolbuilds/brlcad/brlcad-7.10.0/src/other/tk/generic/tkMain.c:147: warning: implicit declaration of function `Tcl_GetStartupScript'
/home/dave/toolbuilds/brlcad/brlcad-7.10.0/src/other/tk/generic/tkMain.c:147: warning: comparison between pointer and integer
/home/dave/toolbuilds/brlcad/brlcad-7.10.0/src/other/tk/generic/tkMain.c:161: warning: implicit declaration of function `Tcl_SetStartupScript'
/home/dave/toolbuilds/brlcad/brlcad-7.10.0/src/other/tk/generic/tkMain.c:177: warning: assignment makes pointer from integer without a cast
/home/dave/toolbuilds/brlcad/brlcad-7.10.0/src/other/tk/generic/tkMain.c:258: warning: assignment makes pointer from integer without a cast
make: *** [tkMain.o] Error 1

Discussion

  • David B. Curtis

    David B. Curtis - 2007-05-22

    Logged In: YES
    user_id=5813
    Originator: YES

    This appears to be a config problem, the bogus hard path:

    /vld/other/morrison/brlcad/src/other

    is pervasive in the Makefile. I believe it should be ../../

    -dave

     
  • Sean Morrison

    Sean Morrison - 2007-05-24

    Logged In: YES
    user_id=785737
    Originator: NO

    Dave,

    That very much is the problem. There is apparently some stale configuration set from the system that prepared the source tarball. If you run ./autogen.sh before running configure, it should regenerate the build files and update that path to your system.

    Question, though.. did you run the top-level configure before running make or did you just run make?

    Cheers!
    Sean

     
  • Sean Morrison

    Sean Morrison - 2007-05-24
    • assigned_to: nobody --> brlcad
    • milestone: --> other bug / workaround
    • priority: 5 --> 3
    • status: open --> pending
     
  • David B. Curtis

    David B. Curtis - 2007-05-24
    • status: pending --> open
     
  • David B. Curtis

    David B. Curtis - 2007-05-24

    Logged In: YES
    user_id=5813
    Originator: YES

    My configure command below...
    -dave

    ./configure --prefix=/usr/local/brlcad/brlcad-7.10.2 --enable-optimized

     
  • Sean Morrison

    Sean Morrison - 2007-05-24

    Logged In: YES
    user_id=785737
    Originator: NO

    I think I've isolated what causes the problem -- tk uses tcl's build files, files which aren't necessarily rebuilt during configure. Would you paste your configure summary? It's the resulting table that says yes/no at the end of configure for all of the various compilation settings.

     
  • Sean Morrison

    Sean Morrison - 2008-05-07

    Logged In: YES
    user_id=785737
    Originator: NO

    Do you still see this problem with the latest 7.12.2 release? Tcl/Tk have since changed drastically having been updated to the latest 8.5 sources.

     
  • Sean Morrison

    Sean Morrison - 2008-05-07
    • status: open --> closed-works-for-me
     

Log in to post a comment.