Steve Simon | 29 Oct 22:21 2014
Picon

interesting sbc

Thought this might be of interest to 9fans, I would do the
port myself if I had the skils and experience but i
don't believe I have.

http://www.bananapi.org/p/product.html

-Steve

Ryan Gonzalez | 27 Oct 23:23 2014
Picon

Can the 8l linker read ELF object files?

I have a simple C program:

#include <lib9.h>

void main()
{
    print("abc\n");
    exits(nil);
}

I built it under Linux using ken-cc (the Linux port of the Plan 9 compilers). However, this happens when I try to link it:

8l -L/home/ryan/stuff/ken-cc/Linux/386/lib -l9 -o test test.8
main: undefined: print
main: undefined: exits

Evidently, 8l isn't picking up the ELF objects in lib9.a. Can I make it read them somehow?

--
Ryan
If anybody ever asks me why I prefer C++ to C, my answer will be simple: "It's becauseslejfp23( <at> #Q*(E*EIdc-SEGFAULT. Wait, I don't think that was nul-terminated."
Personal reality distortion fields are immune to contradictory evidence. - srean
Check out my website: http://kirbyfan64.github.io/
Eduardo Alvarez | 27 Oct 16:28 2014
Picon

[acme] Edit command -- More than one argument?

Hello, everyone,

I'm in the process of learning acme via Russ Cox's p9p port. Recently, I found
myself editing some text to use with markdown, and needed to make more than one
modification to a list. I wanted to know if it's possible to give the Edit
command more than one argument. For example, I found myself needing to replace
colons with a close bracket (]), and inserting an open bracket at the beginning
of the line. So I did this:

Edit s/^/\[/
Edit s/\:\ /\]/

And I was hoping to combine these into a single line, so, for example:

Edit s/^/\[/ s/\:\ /\]/
(Not sure if escaping was necessary, but I was playing it safe)

Doing exactly what I did above resulted in the error 

"Edit: newline expected (saw f)"

So that's obviously not it. But I'm not sure if it's at all possible.

Thank you in advance.
--

-- 
Eduardo Alvarez

"Stercus, Stercus, Stercus, moriturus sum"
  -- Rincewind The Wizzard
Ryan Gonzalez | 26 Oct 22:04 2014
Picon

tlsClient: tls: local invalid x509/rsa certificate

I'm trying to download the a Python script and keep running into trouble. I am running this:


However, hget keeps complaining with `tlsClient: tls: local invalid x509/rsa certificate`. The time and date of my Plan 9 VM are correct and are set to sync with pool.ntp.org. I have NO clue what's wrong. Can anybody help?

--
Ryan
If anybody ever asks me why I prefer C++ to C, my answer will be simple: "It's becauseslejfp23( <at> #Q*(E*EIdc-SEGFAULT. Wait, I don't think that was nul-terminated."
Personal reality distortion fields are immune to contradictory evidence. - srean
Check out my website: http://kirbyfan64.github.io/
 
trebol | 25 Oct 19:44 2014

abaco in linux

In linux gcc cries:
io.c:23:7: error: assignment to expression with array type
  arg2 = va_arg(*arg, va_list);

I have seen other errors like that in the web, and solutions involving
va_copy().  I don't know... I'm just learning but the source seems
correct, arg2 is a va_list, and va_arg(*arg, va_list) expand to a va_list,
doesn't it?.  Anyway:

--- abaco/webfs/io.c	2008-02-17 19:27:12.000000000 +0000
+++ abaco_patched/webfs/io.c	2014-10-25 18:03:11.990925835 +0100
 <at>  <at>  -16,11 +16,11  <at>  <at> 
 {
 	int fd;
 	char *fmt;
-	va_list arg2;
+	void *arg2;

 	fd = va_arg(*arg, int);
 	fmt = va_arg(*arg, char*);
-	arg2 = va_arg(*arg, va_list);
+	arg2 = va_arg(*arg, void*);
 	return vfprint(fd, fmt, arg2);
 }

lucio | 24 Oct 09:27 2014
Picon

"man init" lies

THe following text is still in /sys/man/8/init:

          On a CPU server, init requires the machine's password to be
          supplied before starting rc on the console.

The feature has been gone a long time (patch to follow).

Lucio.

-------------------------------------------------------------------------------------
This email has been scanned by the MxScan Email Security System.
-------------------------------------------------------------------------------------

françai s | 20 Oct 17:44 2014
Picon

How the Plan9 developers solve problems that are not resolved by Assembly?

I think that the only case where you have to resort to writing binary
code manually
is when the assembler cannot output the desired code for some reason.
If I recall correctly, there is only one such case in the HelenOS
sources:

http://trac.helenos.org/browser/mainline/kernel/arch/mips32/include/debug.h?rev=mainline%2C1446.3.1

Here they manually encode the opcodes of five special debugging
instructions for the MSIM MIPS simulator (these instructions are not
part of the standard MIPS ISA, thus the assembler does not know them).

But the developers of FreeBSD not write binary code manually.

How the Plan9 developers solve problems that are not resolved by Assembly?

Carsten Kunze | 19 Oct 14:30 2014
Picon

libc struct Dir field type

Hello,

where is the type field of libc struct Dir documented?  In source I found a compare of field type with the char
'M'.  Where can I loop up what 'M' means?

    Carsten

andrey mirtchovski | 18 Oct 19:04 2014
Picon

Re: Yosemite

> Have you rebuilt on it? mk seems unhappy (aborting in some cases).

I hadn't until now. extracted output and warnings below:

$ hg pull -u
pulling from https://code.google.com/p/plan9port
searching for changes
no changes found
$ ./INSTALL
+ Mailing list: http://groups.google.com/group/plan9port-dev
+ Issue tracker: http://code.swtch.com/plan9port/issues/
+ Submitting changes: http://swtch.com/go/codereview

* Resetting /Users/aam/plan9/config
* Compiler version:
Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
* Running on Darwin: checking architecture...
x86-64 found.
>>> /Users/aam/plan9/src
* Building everything (be patient)...

9c  dirread.c
        return getdirentries(fd, (void*)buf, n, &off);
               ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/dirent.h:160:5:
note: 'getdirentries' has been explicitly marked deprecated here
int getdirentries(int, char *, int, long *)
    ^
1 warning generated.

9c  ndbreorder.c
ndbreorder.c:41:55: warning: for loop has empty body [-Wempty-body]
                for(prev = last; prev->line != x; prev = prev->line);
                                                                    ^
ndbreorder.c:41:55: note: put the semicolon on a separate line to
silence this warning
1 warning generated.

9c  regcomp.c
regcomp.c:19:16: warning: variable 'reprog' is not needed and will not
be emitted [-Wunneeded-internal-declaration]
static Reprog   *reprog;
                 ^
1 warning generated.

9c  dd.c
        ibuf = sbrk(ibs);
               ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/unistd.h:582:7:
note: 'sbrk' has been explicitly marked deprecated here
void    *sbrk(int);
         ^
                obuf = sbrk(obs);
                       ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/unistd.h:582:7:
note: 'sbrk' has been explicitly marked deprecated here
void    *sbrk(int);
         ^
        sbrk(64);       /* For good measure */
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/unistd.h:582:7:
note: 'sbrk' has been explicitly marked deprecated here
void    *sbrk(int);
         ^
3 warnings generated.

9c  y.tab.c
/Users/aam/plan9/src/cmd/lex/parser.y:886:9: warning: array index -1
is before the beginning of the array [-Warray-bounds]
        yyp = &yys[-1];
               ^   ~~
/Users/aam/plan9/src/cmd/lex/parser.y:864:2: note: array 'yys' declared here
        struct
        ^
1 warning generated.
>>> cd lex; mk install
9c -o bc.o bc.tab.c
/Users/aam/plan9/src/cmd/bc.y:1327:9: warning: array index -1 is
before the beginning of the array [-Warray-bounds]
        yyp = &yys[-1];
               ^   ~~
/Users/aam/plan9/src/cmd/bc.y:1305:2: note: array 'yys' declared here
        struct
        ^
1 warning generated.

9c  iobuf.c
        mem = sbrk(n);
              ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/unistd.h:582:7:
note: 'sbrk' has been explicitly marked deprecated here
void    *sbrk(int);
         ^
1 warning generated.

9c  y.tab.c
/Users/aam/plan9/src/cmd/acid/dbg.y:393:9: warning: array index -1 is
before the beginning of the array [-Warray-bounds]
        yyp = &yys[-1];
               ^   ~~
/Users/aam/plan9/src/cmd/acid/dbg.y:371:2: note: array 'yys' declared here
        struct
        ^
1 warning generated.

9c -DOSX_VERSION=101000 -o cocoa-screen-objc.o cocoa-screen.m
cocoa-screen.m:100:21: warning: sending 'appdelegate *' to parameter
of incompatible type 'id<NSFileManagerDelegate>'
        [NSApp setDelegate:[appdelegate new]];
                           ^~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:109:47:
note: passing argument to parameter 'delegate' here
 <at> property (assign) id <NSFileManagerDelegate> delegate NS_AVAILABLE(10_5, 2_0);
                                              ^
cocoa-screen.m:363:27: warning: sending 'id<NSFileManagerDelegate>' to
parameter of incompatible type 'id<NSWindowDelegate>'
                [win.ofs[i] setDelegate:[NSApp delegate]];
                                        ^~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:307:41:
note: passing argument to parameter 'delegate' here
 <at> property (assign) id<NSWindowDelegate> delegate;
                                        ^
cocoa-screen.m:526:46: warning: data argument not used by format
string [-Wformat-extra-args]
        LOG( <at> "r %.0f %.0f", r.origin.x, r.origin.y, rect.size.width,
rect.size.height);
            ~~~~~~~~~~~~~~                          ^
cocoa-screen.m:751:19: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_IBOOK_ENTER] '\n',
                         ^
                         =
cocoa-screen.m:752:14: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_RETURN] '\n',
                    ^
                    =
cocoa-screen.m:753:14: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_ESCAPE] 27,
                    ^
                    =
cocoa-screen.m:754:17: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_BACKSPACE] '\b',
                       ^
                       =
cocoa-screen.m:755:12: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_LALT] Kalt,
                  ^
                  =
cocoa-screen.m:756:13: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_LCTRL] Kctl,
                   ^
                   =
cocoa-screen.m:757:14: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_LSHIFT] Kshift,
                    ^
                    =
cocoa-screen.m:758:10: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_F1] KF+1,
                ^
                =
cocoa-screen.m:759:10: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_F2] KF+2,
                ^
                =
cocoa-screen.m:760:10: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_F3] KF+3,
                ^
                =
cocoa-screen.m:761:10: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_F4] KF+4,
                ^
                =
cocoa-screen.m:762:10: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_F5] KF+5,
                ^
                =
cocoa-screen.m:763:10: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_F6] KF+6,
                ^
                =
cocoa-screen.m:764:10: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_F7] KF+7,
                ^
                =
cocoa-screen.m:765:10: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_F8] KF+8,
                ^
                =
cocoa-screen.m:766:10: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_F9] KF+9,
                ^
                =
cocoa-screen.m:767:11: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_F10] KF+10,
                 ^
                 =
cocoa-screen.m:768:11: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_F11] KF+11,
                 ^
                 =
cocoa-screen.m:769:11: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_F12] KF+12,
                 ^
                 =
cocoa-screen.m:770:14: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_INSERT] Kins,
                    ^
                    =
cocoa-screen.m:771:14: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_DELETE] 0x7F,
                    ^
                    =
cocoa-screen.m:772:12: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_HOME] Khome,
                  ^
                  =
cocoa-screen.m:773:11: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_END] Kend,
                 ^
                 =
cocoa-screen.m:774:15: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_KP_PLUS] '+',
                     ^
                     =
cocoa-screen.m:775:16: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_KP_MINUS] '-',
                      ^
                      =
cocoa-screen.m:776:11: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_TAB] '\t',
                 ^
                 =
cocoa-screen.m:777:14: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_PAGEUP] Kpgup,
                    ^
                    =
cocoa-screen.m:778:16: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_PAGEDOWN] Kpgdown,
                      ^
                      =
cocoa-screen.m:779:10: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_UP] Kup,
                ^
                =
cocoa-screen.m:780:12: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_DOWN] Kdown,
                  ^
                  =
cocoa-screen.m:781:12: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_LEFT] Kleft,
                  ^
                  =
cocoa-screen.m:782:13: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_RIGHT] Kright,
                   ^
                   =
cocoa-screen.m:783:19: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_KP_MULTIPLY] '*',
                         ^
                         =
cocoa-screen.m:784:17: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_KP_DIVIDE] '/',
                       ^
                       =
cocoa-screen.m:785:16: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_KP_ENTER] '\n',
                      ^
                      =
cocoa-screen.m:786:17: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_KP_PERIOD] '.',
                       ^
                       =
cocoa-screen.m:787:11: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_KP0] '0',
                 ^
                 =
cocoa-screen.m:788:11: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_KP1] '1',
                 ^
                 =
cocoa-screen.m:789:11: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_KP2] '2',
                 ^
                 =
cocoa-screen.m:790:11: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_KP3] '3',
                 ^
                 =
cocoa-screen.m:791:11: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_KP4] '4',
                 ^
                 =
cocoa-screen.m:792:11: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_KP5] '5',
                 ^
                 =
cocoa-screen.m:793:11: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_KP6] '6',
                 ^
                 =
cocoa-screen.m:794:11: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_KP7] '7',
                 ^
                 =
cocoa-screen.m:795:11: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_KP8] '8',
                 ^
                 =
cocoa-screen.m:796:11: warning: use of GNU 'missing =' extension in
designator [-Wgnu-designator]
        [QZ_KP9] '9',
                 ^
                 =
                CGSetLocalEventsSuppressionInterval(0);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGRemoteOperation.h:374:19:
note: 'CGSetLocalEventsSuppressionInterval' has been explicitly marked
deprecated here
CG_EXTERN CGError CGSetLocalEventsSuppressionInterval(CFTimeInterval seconds)
                  ^
        q = [WIN convertBaseToScreen:q];
                 ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:661:1:
note: 'convertBaseToScreen:' has been explicitly marked deprecated
here
- (NSPoint)convertBaseToScreen:(NSPoint)aPoint NS_DEPRECATED_MAC(10_0,
10_7, "Use -convertRectToScreen: instead");
^
                colorSpaceName:NSDeviceBlackColorSpace
                               ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSGraphics.h:110:25:
note: 'NSDeviceBlackColorSpace' has been explicitly marked deprecated
here
APPKIT_EXTERN NSString *NSDeviceBlackColorSpace         /* 1.0 ==
black */ NS_DEPRECATED_MAC(10_0, 10_6);
                        ^
    GetCurrentProcess(&psn);
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Processes.h:415:1:
note: 'GetCurrentProcess' has been explicitly marked deprecated here
MacGetCurrentProcess(ProcessSerialNumber * PSN)
AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_9;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Processes.h:412:34:
note: expanded from macro 'MacGetCurrentProcess'
    #define MacGetCurrentProcess GetCurrentProcess
                                 ^
53 warnings generated.

9c  disk.c
disk.c:37:14: warning: use of GNU 'missing =' extension in designator
[-Wgnu-designator]
        [PartError]     "error",
                        ^
                        =
disk.c:38:14: warning: use of GNU 'missing =' extension in designator
[-Wgnu-designator]
        [PartSuper]     "super",
                        ^
                        =
disk.c:39:14: warning: use of GNU 'missing =' extension in designator
[-Wgnu-designator]
        [PartLabel]     "label",
                        ^
                        =
disk.c:40:13: warning: use of GNU 'missing =' extension in designator
[-Wgnu-designator]
        [PartData]      "data",
                        ^
                        =
disk.c:41:14: warning: use of GNU 'missing =' extension in designator
[-Wgnu-designator]
        [PartVenti]     "venti",
                        ^
                        =
5 warnings generated.

9c  y.tab.c
/Users/aam/plan9/src/cmd/grep/grep.y:420:9: warning: array index -1 is
before the beginning of the array [-Warray-bounds]
        yyp = &yys[-1];

Jeff Sickel | 18 Oct 18:20 2014

Re: Yosemite


> On Oct 18, 2014, at 9:55 AM, Anthony Sorace <a <at> 9srv.net> wrote:
> 
> On Oct 18, 2014, at 1:52 , andrey mirtchovski <mirtchovski <at> gmail.com> wrote:
>> 
>> fwiw, p9p's acme has worked fine in full screen for me on all yosemite
>> previews and the current release.
> 
> Have you rebuilt on it? mk seems unhappy (aborting in some cases).

Ah, that’s interesting.  Some update on the redraw that will take some investigation.

I’ve also noticed that p9p doesn’t like to build on FreeBSD 10.  It’s not just
the elimination of gcc for clang, finally, but a change from resolv to unbound.

-jas

yy | 18 Oct 18:10 2014
Picon

gsoc reunion

Is anybody going to the GSoC reunion organized by Google next weekend
in San Jose? I will be there from Thursday to Sunday. Let me know if
you want to meet.

--

-- 
- yiyus || JGL .


Gmane