[9fans] Download of links-varfont today won't build - Plan9

This is a discussion on [9fans] Download of links-varfont today won't build - Plan9 ; png_debug_malloc: undefined: memset in png_debug_malloc test_one_file: undefined: setjmp in test_one_file test_one_file: undefined: strcpy in test_one_file test_one_file: undefined: memcmp in test_one_file png_memcpy_check: undefined: memcpy in png_memcpy_check png_check_keyword: undefined: strlen in png_check_keyword png_default_error: undefined: longjmp in png_default_error realloc: undefined: memmove in realloc ...

+ Reply to Thread
Results 1 to 6 of 6

Thread: [9fans] Download of links-varfont today won't build

  1. [9fans] Download of links-varfont today won't build

    png_debug_malloc: undefined: memset in png_debug_malloc
    test_one_file: undefined: setjmp in test_one_file
    test_one_file: undefined: strcpy in test_one_file
    test_one_file: undefined: memcmp in test_one_file
    png_memcpy_check: undefined: memcpy in png_memcpy_check
    png_check_keyword: undefined: strlen in png_check_keyword
    png_default_error: undefined: longjmp in png_default_error
    realloc: undefined: memmove in realloc
    readprocfdinit: undefined: strcat in readprocfdinit
    readprocfdinit: undefined: strchr in readprocfdinit
    _envsetup: undefined: memchr in _envsetup
    _startbuf: undefined: lock in _startbuf
    _startbuf: undefined: unlock in _startbuf
    ocvt_fixed: undefined: _modvu in ocvt_fixed
    ocvt_fixed: undefined: _vasop in ocvt_fixed
    _notehandler: undefined: _notetramp in _notehandler
    strtol: entry not text: _main
    strtol: _main: not defined
    strtol: _divvu: not defined
    pcc: 8l: 8l 95697: error
    mk: ar vu libpng.a8 ... : exit status=rc 95690: pcc 95696: 8l: 8l 95697: error
    mk: cd png mk : exit status=rc 95611: mk 95614: error
    mk 95229: error

    The only thing I remember seeing about links recently is to
    make sure -D_PLAN9_SOURCE is in the mkfile, and it is.

    Anyone know how to fix it?

    Thanks

    Greg

  2. Re: [9fans] Download of links-varfont today won't build

    use /n/sources/contrib/andrey/links.tgz it compiles fine.

    On 7/15/07, Gregory Pavelcak wrote:
    > png_debug_malloc: undefined: memset in png_debug_malloc
    > test_one_file: undefined: setjmp in test_one_file
    > test_one_file: undefined: strcpy in test_one_file
    > test_one_file: undefined: memcmp in test_one_file
    > png_memcpy_check: undefined: memcpy in png_memcpy_check
    > png_check_keyword: undefined: strlen in png_check_keyword
    > png_default_error: undefined: longjmp in png_default_error
    > realloc: undefined: memmove in realloc
    > readprocfdinit: undefined: strcat in readprocfdinit
    > readprocfdinit: undefined: strchr in readprocfdinit
    > _envsetup: undefined: memchr in _envsetup
    > _startbuf: undefined: lock in _startbuf
    > _startbuf: undefined: unlock in _startbuf
    > ocvt_fixed: undefined: _modvu in ocvt_fixed
    > ocvt_fixed: undefined: _vasop in ocvt_fixed
    > _notehandler: undefined: _notetramp in _notehandler
    > strtol: entry not text: _main
    > strtol: _main: not defined
    > strtol: _divvu: not defined
    > pcc: 8l: 8l 95697: error
    > mk: ar vu libpng.a8 ... : exit status=rc 95690: pcc 95696: 8l: 8l 95697: error
    > mk: cd png mk : exit status=rc 95611: mk 95614: error
    > mk 95229: error
    >
    > The only thing I remember seeing about links recently is to
    > make sure -D_PLAN9_SOURCE is in the mkfile, and it is.
    >
    > Anyone know how to fix it?
    >
    > Thanks
    >
    > Greg
    >


  3. Re: [9fans] Download of links-varfont today won't build

    That's what I used, and I just tried again with the same
    result. I guess that means I have something messed up
    somewhere else?

    Greg

    > use /n/sources/contrib/andrey/links.tgz it compiles fine.
    >
    > On 7/15/07, Gregory Pavelcak wrote:
    >> png_debug_malloc: undefined: memset in png_debug_malloc
    >> test_one_file: undefined: setjmp in test_one_file
    >> test_one_file: undefined: strcpy in test_one_file
    >> test_one_file: undefined: memcmp in test_one_file
    >> png_memcpy_check: undefined: memcpy in png_memcpy_check
    >> png_check_keyword: undefined: strlen in png_check_keyword
    >> png_default_error: undefined: longjmp in png_default_error
    >> realloc: undefined: memmove in realloc
    >> readprocfdinit: undefined: strcat in readprocfdinit
    >> readprocfdinit: undefined: strchr in readprocfdinit
    >> _envsetup: undefined: memchr in _envsetup
    >> _startbuf: undefined: lock in _startbuf
    >> _startbuf: undefined: unlock in _startbuf
    >> ocvt_fixed: undefined: _modvu in ocvt_fixed
    >> ocvt_fixed: undefined: _vasop in ocvt_fixed
    >> _notehandler: undefined: _notetramp in _notehandler
    >> strtol: entry not text: _main
    >> strtol: _main: not defined
    >> strtol: _divvu: not defined
    >> pcc: 8l: 8l 95697: error
    >> mk: ar vu libpng.a8 ... : exit status=rc 95690: pcc 95696: 8l: 8l 95697: error
    >> mk: cd png mk : exit status=rc 95611: mk 95614: error
    >> mk 95229: error
    >>
    >> The only thing I remember seeing about links recently is to
    >> make sure -D_PLAN9_SOURCE is in the mkfile, and it is.
    >>
    >> Anyone know how to fix it?
    >>
    >> Thanks
    >>
    >> Greg
    >>



  4. Re: [9fans] Download of links-varfont today won't build

    i just did a pull: it's not only links that fails, it's everything in
    /sys/src/ape/cmd

    from a first glance it looks like not all libraries are linked (a few
    pragmas missing?). for example, by adding libc to the mix you get rid
    of all warnings but one. the following example is from
    /sys/src/ape/cmd/diff:

    parr% 8l -o 8.diff analyze.8 cmpbuf.8 dir.8 io.8 util.8 context.8
    ed.8 ifdef.8 normal.8 side.8 fnmatch.8 getopt.8 getopt1.8 regex.8
    version.8 prepend_args.8 diff.8 /386/lib/libc.a
    discard_confusing_lines: undefined: memset in discard_confusing_lines
    diff_2_files: undefined: memcmp in diff_2_files
    dir_sort: undefined: strlen in dir_sort
    dir_sort: undefined: memcpy in dir_sort
    sip: undefined: memchr in sip
    regerror: undefined: strcpy in regerror
    option_list: undefined: strcat in option_list
    _notehandler: undefined: _notetramp in _notehandler
    realloc: undefined: memmove in realloc
    qtoken: undefined: strchr in qtoken
    _startbuf: undefined: lock in _startbuf
    _startbuf: undefined: unlock in _startbuf
    ocvt_fixed: undefined: _modvu in ocvt_fixed
    ocvt_fixed: undefined: _vasop in ocvt_fixed
    modf: entry not text: _main
    modf: _main: not defined
    modf: _divvu: not defined

    # now with libc:
    parr% 8l -o 8.diff analyze.8 cmpbuf.8 dir.8 io.8 util.8 context.8
    ed.8 ifdef.8 normal.8 side.8 fnmatch.8 getopt.8 getopt1.8 regex.8
    version.8 prepend_args.8 diff.8 /386/lib/libc.a
    _notehandler: undefined: _notetramp in _notehandler
    parr%

    unfortunately i'm typing this running out the door so there isn't much
    more i can help. i don't have a venti here so i have no idea what
    changed in ape. sourcesdump is too slow for me.

    andrey

    On 7/15/07, Gregory Pavelcak wrote:
    > That's what I used, and I just tried again with the same
    > result. I guess that means I have something messed up
    > somewhere else?
    >
    > Greg


  5. Re: [9fans] Download of links-varfont today won't build

    oops, the first line in my paste in the previous message should not
    have "/386/lib/libc.a" in it: it's a leftover from editing. the line
    should match the output from mk as it shows in /sys/src/ape/cmd/diff

  6. Re: [9fans] Download of links-varfont today won't build

    found the problem. change DIRS in /sys/src/ape/lib/ap/mkfile to
    include $objtype (the badly named patch mkfile-broken i just submitted
    has the fix). you'll need to recompile libap.

    the old mkfile had the $objtype hidden in the 'for' loop in install.
    putting it in the DIRS definition makes it more obvious that it's
    needed.

+ Reply to Thread