* [9fans] Compiling links
@ 2006-08-14 19:21 csant
2006-08-14 19:24 ` Sascha Retzki
2006-08-14 19:32 ` Steve Simon
0 siblings, 2 replies; 8+ messages in thread
From: csant @ 2006-08-14 19:21 UTC (permalink / raw)
To: 9fans
Hola,
I was trying to compile links, but it returns me an error and finishes
with:
pcc -I. -Ijpeg -Ipng -Izlib -B -p -c -DPLAN9 -DHAVE_CONFIG_H
-D_RESEARCH_SOURCE -D_POSIX_SOURCE plan9.c
/sys/include/ape/u.h:4[stdin:15] not a function
/sys/include/ape/u.h:4[stdin:15] syntax error, last name: header
pcc: cpp: 8c 490: error
mk: pcc -I. -Ijpeg ... : exit status=rc 487: pcc 489: cpp: 8c 490: error
I had previously built links on another system (installed from the same CD
with the 2006-03-25 image) *before* pulling an update - this time I tried
compiling it *after* the pull.
Pointers on how to fix this are welcome :) Also: what would be the most
elegant way to build links using the old ape from /n/dump ? I could copy
over all files, but that seems a bit silly. How do I do this in a nice way?
/c
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] Compiling links
2006-08-14 19:21 [9fans] Compiling links csant
@ 2006-08-14 19:24 ` Sascha Retzki
2006-08-14 19:30 ` andrey mirtchovski
2006-08-14 19:32 ` csant
2006-08-14 19:32 ` Steve Simon
1 sibling, 2 replies; 8+ messages in thread
From: Sascha Retzki @ 2006-08-14 19:24 UTC (permalink / raw)
To: csant, 9fans
> Hola,
>
Hola2u,
> -D_RESEARCH_SOURCE -D_POSIX_SOURCE plan9.c
> /sys/include/ape/u.h:4[stdin:15] not a function
> /sys/include/ape/u.h:4[stdin:15] syntax error, last name: header
>
> Pointers on how to fix this are welcome :)
Plumb it. You will see an #ifndef which is true, producing a syntax error. The compiler is right.
Supply a -D_WHAT_EVER in the makefile will fix this.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: [9fans] Compiling links
2006-08-14 19:24 ` Sascha Retzki
@ 2006-08-14 19:30 ` andrey mirtchovski
2006-08-14 19:41 ` Sascha Retzki
2006-08-14 22:04 ` csant
2006-08-14 19:32 ` csant
1 sibling, 2 replies; 8+ messages in thread
From: andrey mirtchovski @ 2006-08-14 19:30 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
add -D_PLAN9_SOURCE to the CFLAGS in mkfile. i'll have to see what got
changed and will update in /contrib shortly.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] Compiling links
2006-08-14 19:24 ` Sascha Retzki
2006-08-14 19:30 ` andrey mirtchovski
@ 2006-08-14 19:32 ` csant
1 sibling, 0 replies; 8+ messages in thread
From: csant @ 2006-08-14 19:32 UTC (permalink / raw)
To: Sascha Retzki, 9fans
>> -D_RESEARCH_SOURCE -D_POSIX_SOURCE plan9.c
>> /sys/include/ape/u.h:4[stdin:15] not a function
>> /sys/include/ape/u.h:4[stdin:15] syntax error, last name: header
>>
>> Pointers on how to fix this are welcome :)
>
> Plumb it. You will see an #ifndef which is true, producing a syntax
> error. The compiler is right.
> Supply a -D_WHAT_EVER in the makefile will fix this.
Many thanks :)
-D_PLAN9_SOURCE in the mkfile fixed it.
/c
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] Compiling links
2006-08-14 19:21 [9fans] Compiling links csant
2006-08-14 19:24 ` Sascha Retzki
@ 2006-08-14 19:32 ` Steve Simon
2006-08-15 2:55 ` Dave Eckhardt
1 sibling, 1 reply; 8+ messages in thread
From: Steve Simon @ 2006-08-14 19:32 UTC (permalink / raw)
To: csant, 9fans
> ...what would be the most
> elegant way to build links using the old ape from /n/dump
do
mkdir /tmp/ape
bind -bc /n/dump/xxxx/xx/sys/src/ape /tmp/ape
mkdir /tmp/ape/cmd
bind -bc /n/dump/xxxx/xx/sys/src/ape/cmd /tmp/ape/cmd
etc...
then you can do:
cd /n/dump/xxxx/xx/sys/src/ape
mk install
I always meant to write a virtual fileserver that would create
the directories in /tmp on demand, but never got round to it...
-Steve
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: [9fans] Compiling links
2006-08-14 19:30 ` andrey mirtchovski
@ 2006-08-14 19:41 ` Sascha Retzki
2006-08-14 22:04 ` csant
1 sibling, 0 replies; 8+ messages in thread
From: Sascha Retzki @ 2006-08-14 19:41 UTC (permalink / raw)
To: 9fans
> add -D_PLAN9_SOURCE to the CFLAGS in mkfile. i'll have to see what got
> changed and will update in /contrib shortly.
I know of lib9.h, regexp.h, bsd.h, unistd.h & fcntl.h. (the latter are POSIX_SOURCE)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: [9fans] Compiling links
2006-08-14 19:30 ` andrey mirtchovski
2006-08-14 19:41 ` Sascha Retzki
@ 2006-08-14 22:04 ` csant
1 sibling, 0 replies; 8+ messages in thread
From: csant @ 2006-08-14 22:04 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
> and will update in /contrib shortly.
Thanks. I tried figuring out where the UA string gets defined, since links
on Plan 9 has a broken UA string:
Links Plan 9 4 i386; plan9)
but couldn't figure out where it gets it wrong.
/c
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] Compiling links
2006-08-14 19:32 ` Steve Simon
@ 2006-08-15 2:55 ` Dave Eckhardt
0 siblings, 0 replies; 8+ messages in thread
From: Dave Eckhardt @ 2006-08-15 2:55 UTC (permalink / raw)
To: 9fans
> mkdir /tmp/ape
> bind -bc /n/dump/xxxx/xx/sys/src/ape /tmp/ape
> mkdir /tmp/ape/cmd
> bind -bc /n/dump/xxxx/xx/sys/src/ape/cmd /tmp/ape/cmd
> etc...
> I always meant to write a virtual fileserver that would create
> the directories in /tmp on demand, but never got round to it...
% 9fs dump
% bind /n/dump/2006/0730/sys/src/ape /sys/src/ape
% divergefs -p /tmp/ape-build /sys
% cd /sys/src/ape
% mk install
You may wish to start up additional divergefs's for, e.g., /$objtype,
which the "mk install" will try to write into--or not, depending
on your purpose.
Dave Eckhardt
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-08-15 2:55 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-14 19:21 [9fans] Compiling links csant
2006-08-14 19:24 ` Sascha Retzki
2006-08-14 19:30 ` andrey mirtchovski
2006-08-14 19:41 ` Sascha Retzki
2006-08-14 22:04 ` csant
2006-08-14 19:32 ` csant
2006-08-14 19:32 ` Steve Simon
2006-08-15 2:55 ` Dave Eckhardt
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).