9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Download of links-varfont today won't build
@ 2007-07-15 15:30 Gregory Pavelcak
  2007-07-15 15:37 ` andrey mirtchovski
  0 siblings, 1 reply; 6+ messages in thread
From: Gregory Pavelcak @ 2007-07-15 15:30 UTC (permalink / raw)
  To: 9fans

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] Download of links-varfont today won't build
  2007-07-15 15:30 [9fans] Download of links-varfont today won't build Gregory Pavelcak
@ 2007-07-15 15:37 ` andrey mirtchovski
  2007-07-15 15:44   ` Gregory Pavelcak
  0 siblings, 1 reply; 6+ messages in thread
From: andrey mirtchovski @ 2007-07-15 15:37 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

On 7/15/07, Gregory Pavelcak <g.pavelcak@comcast.net> 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
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] Download of links-varfont today won't build
  2007-07-15 15:37 ` andrey mirtchovski
@ 2007-07-15 15:44   ` Gregory Pavelcak
  2007-07-15 16:19     ` andrey mirtchovski
  0 siblings, 1 reply; 6+ messages in thread
From: Gregory Pavelcak @ 2007-07-15 15:44 UTC (permalink / raw)
  To: 9fans

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 <g.pavelcak@comcast.net> 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
>>



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] Download of links-varfont today won't build
  2007-07-15 15:44   ` Gregory Pavelcak
@ 2007-07-15 16:19     ` andrey mirtchovski
  2007-07-15 16:21       ` andrey mirtchovski
  0 siblings, 1 reply; 6+ messages in thread
From: andrey mirtchovski @ 2007-07-15 16:19 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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 <g.pavelcak@comcast.net> 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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] Download of links-varfont today won't build
  2007-07-15 16:19     ` andrey mirtchovski
@ 2007-07-15 16:21       ` andrey mirtchovski
  2007-07-15 16:54         ` andrey mirtchovski
  0 siblings, 1 reply; 6+ messages in thread
From: andrey mirtchovski @ 2007-07-15 16:21 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] Download of links-varfont today won't build
  2007-07-15 16:21       ` andrey mirtchovski
@ 2007-07-15 16:54         ` andrey mirtchovski
  0 siblings, 0 replies; 6+ messages in thread
From: andrey mirtchovski @ 2007-07-15 16:54 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-07-15 16:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-15 15:30 [9fans] Download of links-varfont today won't build Gregory Pavelcak
2007-07-15 15:37 ` andrey mirtchovski
2007-07-15 15:44   ` Gregory Pavelcak
2007-07-15 16:19     ` andrey mirtchovski
2007-07-15 16:21       ` andrey mirtchovski
2007-07-15 16:54         ` andrey mirtchovski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).