#3749 'staticpkg' option unbuildable w/ Windows makefile.vc

obsolete: 8.5a6
closed-postponed
5
2007-11-15
2007-07-26
No

Building with OPTS including 'staticpkg' fails w/8.5a6, Windows XP Home, MS VC 8, with following error:

NMAKE: fatal error U1073: don't know how to make '.\Debug_VC8\tclreg12sgx.lib

(Release_VC8\tclreg12sx.lib if 'symbols' option not given.)

Seems like some sort of makefile problem, but the file is more complicated than my limited VC / nmake knowledge is up for right now..

Discussion

  • Donal K. Fellows

    • labels: 105684 --> 53. Configuration and Build Tools
    • assigned_to: nobody --> hobbs
     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2007-11-13
    • assigned_to: hobbs --> davygrvy
     
  • David Gravereaux

    Logged In: YES
    user_id=7549
    Originator: NO

    a6? We're in b2 now. I'll check into it for the HEAD tonight.

     
  • David Gravereaux

    • status: open --> pending
     
  • David Gravereaux

    Logged In: YES
    user_id=7549
    Originator: NO

    'staticpkg' is modifier to 'static'. If you just ask for 'staticpkg', it trips. Use either 'static' or 'static,staticpkg', never 'staticpkg' alone as you are asking it to build a dynamic shell, but include reg and dde statically inside the shell. That's a bit odd, but not really wrong.

    Are you sure that's what you want?

     
  • Adrian Robert

    Adrian Robert - 2007-11-14

    Logged In: YES
    user_id=146959
    Originator: YES

    Hi, it was a while ago and I'm not sure if I had static,staticpkg or not. From the wording of my report and my habits I suspect I tried a number of combinations and all failed. But who knows. Anyway if just staticpkg makes little sense and in fact fails anyway, perhaps it should automatically imply "static" in the config logic? Thanks.

     
  • Adrian Robert

    Adrian Robert - 2007-11-14
    • status: pending --> open
     
  • David Gravereaux

    Logged In: YES
    user_id=7549
    Originator: NO

    Yes, I'll add logic so staticpkg turns on static too.

     
  • David Gravereaux

    Logged In: YES
    user_id=7549
    Originator: NO

    I just found some odd logic, but it isn't wrong. Just OPTS=staticpkg will both match 'static' and 'staticpkg'. IOW, both are turned on for 'staticpkg' alone. That's good!

    But, and I haven't found why sometimes the build fails with that "don't know how to make..", but doing a clean takes care of it. If tclAppInit.c was built first with just 'static' and next you ask for 'staticpkg', tclAppInit.c, eventhough it looks uptodate to the makefile, would need rebuilding but there is no way to perform that validation. But why the reg lib is unknown to it, I can't say at this time.

    As a solution, if you get that error again, just do a clean.

     
  • David Gravereaux

    • status: open --> closed-postponed