Re: OpenBSD's binutils

2016-12-03 Thread Stuart Longland
On 28/11/16 22:13, Jeremie Courreges-Anglas wrote:
> Stuart Longland  writes:
> 
>> Hi all,
>>
>> Well, my experiments with loongson have proven fruitful, except for the
>> need of a web browser.  Part of this is due to the webkit browsers
>> needing the libav gstreamer plug-in.
>>
>> Now, this fails to build because of the assembler not recognising some
>> op codes generated by gcc.  I found I got a little further in the build
>> using the `gcc4` package, but it still failed to compile, failing with
>> an "unrecognized opcode ldx" error message.
> 
> What's the error log when you try with gcc from base?
> 

Okay, did a clean and a rebuild using base image gcc:

> cc -I. -I./ 
> -I/usr/local/ports/obj/gstreamer1-plugins-libav-1.8.2/gst-libav-1.8.2/gst-libs/ext/libav
>  -I/usr/local/include  -I/usr/X11R6/include -EL -D_ISOC99_SOURCE 
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -DZLIB_CONST 
> -DHAVE_AV_CONFIG_H -O2 -pipe   -std=c99 -fPIC -mips64 -mhard-float -mfp64 
> -mdsp -pthread -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/X11R6/include 
> -I/usr/X11R6/include -Wdeclaration-after-statement -Wall 
> -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings 
> -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes 
> -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign  
> -fno-math-errno -fno-tree-vectorize -Werror=format-security 
> -Werror=implicit-function-declaration -Werror=missing-prototypes 
> -Werror=return-type -Wformat  -MMD -MF libavcodec/mpegaudiodec_fixed.d -MT 
> libavcodec/mpegaudiodec_fixed.o -c -o libavcodec/mpegaudiodec_fixed.o 
> libavcodec/mpegaudiodec_fixed.c
> {standard input}: Assembler messages:
> {standard input}:3876: Error: illegal operands `mult $ac0,$11,$8'
> {standard input}:3877: Error: illegal operands `mult $ac1,$11,$8'
> {standard input}:3883: Error: illegal operands `msub $ac0,$12,$7'
> {standard input}:3884: Error: illegal operands `madd $ac1,$13,$6'
> {standard input}:3887: Error: illegal operands `mult $ac2,$11,$5'
> {standard input}:3888: Error: illegal operands `mult $ac3,$11,$5'
> {standard input}:3893: Error: illegal operands `msub $ac2,$9,$4'
> {standard input}:3895: Error: illegal operands `madd $ac3,$10,$3'
> {standard input}:3908: Error: illegal operands `mult $ac0,$11,$8'
> {standard input}:3909: Error: illegal operands `mult $ac1,$11,$8'
> {standard input}:3915: Error: illegal operands `msub $ac0,$12,$7'
> {standard input}:3917: Error: illegal operands `madd $ac1,$13,$6'
> {standard input}:3924: Error: illegal operands `mult $ac2,$11,$5'
> {standard input}:3925: Error: illegal operands `mult $ac3,$11,$5'
> {standard input}:3930: Error: illegal operands `msub $ac2,$9,$4'
> {standard input}:3932: Error: illegal operands `madd $ac3,$10,$3'
> {standard input}:3944: Error: illegal operands `mult $ac0,$11,$8'
> {standard input}:3945: Error: illegal operands `mult $ac1,$11,$8'
> {standard input}:3950: Error: illegal operands `msub $ac0,$12,$7'
> {standard input}:3952: Error: illegal operands `madd $ac1,$13,$6'
> {standard input}:3961: Error: illegal operands `mult $ac2,$11,$5'
> {standard input}:3962: Error: illegal operands `mult $ac3,$11,$5'
> {standard input}:3967: Error: illegal operands `msub $ac2,$9,$4'
> {standard input}:3969: Error: illegal operands `madd $ac3,$10,$3'
> {standard input}:3980: Error: illegal operands `mult $ac0,$11,$8'
> {standard input}:3981: Error: illegal operands `mult $ac1,$11,$8'
> {standard input}:3986: Error: illegal operands `msub $ac0,$12,$7'
> {standard input}:3988: Error: illegal operands `madd $ac1,$13,$6'
> {standard input}:3997: Error: illegal operands `mult $ac2,$11,$5'
> {standard input}:3998: Error: illegal operands `mult $ac3,$11,$5'
> {standard input}:4003: Error: illegal operands `msub $ac2,$9,$4'
> {standard input}:4005: Error: illegal operands `madd $ac3,$10,$3'

Full log:
http://www.longlandclan.id.au/~stuartl/openbsd/2016/12/04-gst-libav/gst-libav-basegcc.log

-- 
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
  ...it's backed up on a tape somewhere.



Re: OpenBSD's binutils

2016-12-03 Thread Stuart Longland
Hi Jeremie,
On 28/11/16 22:13, Jeremie Courreges-Anglas wrote:
> Stuart Longland  writes:
> 
>> Now, this fails to build because of the assembler not recognising some
>> op codes generated by gcc.  I found I got a little further in the build
>> using the `gcc4` package, but it still failed to compile, failing with
>> an "unrecognized opcode ldx" error message.
> 
> What's the error log when you try with gcc from base?
> 

I'm just in the process of rolling back the CVS tree (might've
accidentally pulled down -current instead of -stable, so doing a `cvs up
-rOPENBSD_6_0` to clean up) and I'll have a build log available soon.

In the meantime, I'll detail what I did.

The changes I made though were these:

http://www.longlandclan.id.au/~stuartl/openbsd/2016/12/04-gst-libav/gst-libav-gcc4.diff

This was monkey-see-monkey-do based on what I had seen in other ports.

and this was the result:

http://www.longlandclan.id.au/~stuartl/openbsd/2016/12/04-gst-libav/gst-libav-gcc4.log

dmesg (actually, looks like there's a few dmesg logs):

http://www.longlandclan.id.au/~stuartl/openbsd/2016/12/04-gst-libav/dmesg.txt

Stuart gave some advice on trying `clang` as the compiler, which I shall
try in a moment.  I think Apple have gone the LLVM/clang route for their
compiler so there's a good chance that software will support it.

I've been delayed with an unreliable network link on OpenBSD; for
whatever reason the Yeeloong running OpenBSD would not see some ARP
traffic and would effectively disappear from the network.  After trying
the machine out without issue at my workplace, I've traced it down to my
home network and have replaced the router.

Still getting issues with `dhcpcd -6` not working (it sends ICMP6 router
solicitations, router hears them and replies with ICMP6 router
advertisments, but then `dhcpcd` doesn't hear those replies) but at
least now IPv4 seems to work so I can pull CVS updates down and not rely
on HTTP proxies.

Regards,
-- 
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
  ...it's backed up on a tape somewhere.



Re: acer swift 7, atheros qca6174 wireless and intel hd 615 video

2016-12-03 Thread Jonathan Gray
On Sat, Dec 03, 2016 at 11:57:18AM -0600, Peter Miller wrote:
> On Mon, Nov 28, 2016 at 11:23 AM, Stefan Sperling  wrote:
> > On Mon, Nov 28, 2016 at 11:09:12AM -0600, Peter Miller wrote:
> >> As for the wifi, I don't see support for the atheros 6174 chipest in
> >> the man pages, and I don't know if anyone is working on it. As of now
> >> it is "unknown product" in the dmesg. If it is not soldered in, I
> >> would be willing to remove it and ship it to a developer, and just
> >> replace it with a card that is supported.
> >
> > Yes, swap it. AFAIK nobody is actively working on atheros drivers.
> >
> > Get a device supported by iwn(4) or iwm(4) instead.
> > Those are currently best for laptops.
> >
> > Beware of MiniPCIe vs. M.2 connectors (make sure you get a device
> > that will actually fit the slot on the motherboard). AFAIK the only
> > M.2 device we support is the iwm(4) 8260 chip generation.
> 
> Thanks Stefan.
> 
> I was hoping someone might chime in on whether X should be working for
> my setup or not.
> 
> I have the Intel HD Graphics 615 (GT2) the device is 8086:591e
> from 
> https://cgit.freedesktop.org/xorg/driver/xf86-video-intel/tree/src/i915_pciids.h
> I can see the 591e id is listed, so it looks like the latest Xorg will
> recognize and support my card. It was added back in November of 2015.
> https://cgit.freedesktop.org/xorg/driver/xf86-video-intel/commit/src/i915_pciids.h?id=c446a7ccc783e3ca00b4b15d017c6e3af66dc646
> 
> from openbsd xenocara
> http://cvsweb.openbsd.org/cgi-bin/cvsweb/xenocara/driver/xf86-video-intel/src/i915_pciids.h?rev=1.2=text/x-cvsweb-markup
> it looks like 591e has not been added to OpenBSD yet.
> 
> So I should not expect the 'intel' driver to work, and also from dmesg I see
> vendor "Intel", unknown product 0x591e (class display subclass VGA,
> rev 0x02) at pci0 dev 2 function 0 not configured

The intel xorg driver doesn't do much of anything now.  The inteldrm
driver in the kernel is what does the modesetting and memory management.
It does not currently support the generation of hardware you have
(kaby lake).

> 
> So despite all this, my understanding is that X should still work, but
> just with fbdev or vesa for now.

I believe the wsfb xorg driver should work with efifb.

> 
> I tried setting machdep.allowaperture=1 and 2 and got different error
> messages. I'm not sure if that is significant. I've only ever set it
> to 1 as per the install message.
> 
> As an aside: the faq, https://www.openbsd.org/faq/faq11.html, says
> that the aperture driver must be enabled and can be done by answering
> 'yes' to the question, 'do you expect to run the X window system'
> during installation. I said yes and I still had to add
> machdep.allowaperture=1 to /etc/sysctl.conf. Shouldn't that have
> happened by answering yes, or does 'yes' set a value somewhere else?
> This was with the Nov 17 snapshot.
> 
> with machdep.allowaperture=2 Xorg error is
> [  1117.767] (II) VESA(0): initializing int10
> [  1117.768] (EE) VESA(0): V_BIOS address 0x389e0 out of range
> [  1117.768] (II) UnloadModule: "vesa"
> 
> with machdep.allowaperture=1 the error is
> [  1792.791] (II) VESA(0): initializing int10
> [  1792.792] (EE) VESA(0): Cannot read int vect
> [  1792.792] (II) UnloadModule: "vesa"
> 
> I forgot to copy the fbdev error output, but it said "module does not exist"
> 
> Is there any hope with vesa, or do I just wait for the Xorg intel
> driver support to trickle down to OpenBSD?
> 
> -- 
> Later
> Peter



Cups working but cannot print pdf from Firefox.

2016-12-03 Thread Michael Hunt
Cups interface recognizes my Xerox_Phaser_6010N printer but when I go to print
a pdf displayed in Firefox or any other page from it It looks like it’s
going to happen and I get the job listed as Completed but the printer didn’t
do anything.

Has anyone had any success with using CUPS to print. Cups detected my Xerox on
the network so it looked like it would work but the printer doesn’t seem to
respond. It seems to print on port 9100 but that didn’t seem to work for me
either. Do I need to use a specific protocol with that port number?

Yes I have read the help file and got the “gtk+3-cups” package so that I
can print from Firefox and it shows the Xerox printer in the Firefox print
dialog. It sends to the printer but the printer does nothing as I stated
before. I know the printer works because I print from my MacBook Pro as well
to the network.
##
Cups config of this printer looks like this:
Description: Xerox Phaser 6010N
Location: Local Printer
Driver: Xerox Phaser 6100 Foomatic/Postscript (grayscale, 2-sided printing)
Connection: "socket://192. 168.1.101
Defaults: job-sheets=none, none media=na_letter_8.5x11in sides=one-sided.
##

I’d appreciate any advice on how to troubleshoot this or get the printer to
respond.



Re: Building An Intranet For Dummies

2016-12-03 Thread Patrick Dohman
Have you looked into open atrium?

It appears to be built on Drupal.

Regards
Patrick


> On Dec 3, 2016, at 9:36 AM, Predrag Punosevac 
wrote:
>
> Hi misc,
>
> I was recently tasked with building an Intranet site for my research
> group. Traditionally we have used very weak security model to accomplish
> this task which consisted of using Daisy CMS and its internal
> authentication to hide few pages of our Wiki from praying eyes of
> strangers.
>
> I thought I could accomplish the same using DokuWiki. As you can see
> from this post
>
> https://forum.dokuwiki.org/thread/14277
>
> things are not going quite as easy as I thought. Theoretically I should
> be able to use namespaces to create tabs only visible to @user group but
> in practice I am confused about about changing namespace properties of
> the DokuWiki tabs.
>
> Long story short I decided to take a pause and think some more using the
> input of competent people how to accomplish this task.
>
> I was wondering what people around here use to create their Intranats? I
> am open for any suggestions (authpf, relayd, some kind proxy) with the
> caveat that uses should be able to authenticate just by typing their
> password into the web browser. I am perfectly OK with running second
> private DokuWiki instance.
>
> Best,
> Predrag



Re: acer swift 7, atheros qca6174 wireless and intel hd 615 video

2016-12-03 Thread Peter Miller
On Mon, Nov 28, 2016 at 11:23 AM, Stefan Sperling  wrote:
> On Mon, Nov 28, 2016 at 11:09:12AM -0600, Peter Miller wrote:
>> As for the wifi, I don't see support for the atheros 6174 chipest in
>> the man pages, and I don't know if anyone is working on it. As of now
>> it is "unknown product" in the dmesg. If it is not soldered in, I
>> would be willing to remove it and ship it to a developer, and just
>> replace it with a card that is supported.
>
> Yes, swap it. AFAIK nobody is actively working on atheros drivers.
>
> Get a device supported by iwn(4) or iwm(4) instead.
> Those are currently best for laptops.
>
> Beware of MiniPCIe vs. M.2 connectors (make sure you get a device
> that will actually fit the slot on the motherboard). AFAIK the only
> M.2 device we support is the iwm(4) 8260 chip generation.

Thanks Stefan.

I was hoping someone might chime in on whether X should be working for
my setup or not.

I have the Intel HD Graphics 615 (GT2) the device is 8086:591e
from 
https://cgit.freedesktop.org/xorg/driver/xf86-video-intel/tree/src/i915_pciids.h
I can see the 591e id is listed, so it looks like the latest Xorg will
recognize and support my card. It was added back in November of 2015.
https://cgit.freedesktop.org/xorg/driver/xf86-video-intel/commit/src/i915_pciids.h?id=c446a7ccc783e3ca00b4b15d017c6e3af66dc646

from openbsd xenocara
http://cvsweb.openbsd.org/cgi-bin/cvsweb/xenocara/driver/xf86-video-intel/src/i915_pciids.h?rev=1.2=text/x-cvsweb-markup
it looks like 591e has not been added to OpenBSD yet.

So I should not expect the 'intel' driver to work, and also from dmesg I see
vendor "Intel", unknown product 0x591e (class display subclass VGA,
rev 0x02) at pci0 dev 2 function 0 not configured

So despite all this, my understanding is that X should still work, but
just with fbdev or vesa for now.

I tried setting machdep.allowaperture=1 and 2 and got different error
messages. I'm not sure if that is significant. I've only ever set it
to 1 as per the install message.

As an aside: the faq, https://www.openbsd.org/faq/faq11.html, says
that the aperture driver must be enabled and can be done by answering
'yes' to the question, 'do you expect to run the X window system'
during installation. I said yes and I still had to add
machdep.allowaperture=1 to /etc/sysctl.conf. Shouldn't that have
happened by answering yes, or does 'yes' set a value somewhere else?
This was with the Nov 17 snapshot.

with machdep.allowaperture=2 Xorg error is
[  1117.767] (II) VESA(0): initializing int10
[  1117.768] (EE) VESA(0): V_BIOS address 0x389e0 out of range
[  1117.768] (II) UnloadModule: "vesa"

with machdep.allowaperture=1 the error is
[  1792.791] (II) VESA(0): initializing int10
[  1792.792] (EE) VESA(0): Cannot read int vect
[  1792.792] (II) UnloadModule: "vesa"

I forgot to copy the fbdev error output, but it said "module does not exist"

Is there any hope with vesa, or do I just wait for the Xorg intel
driver support to trickle down to OpenBSD?

-- 
Later
Peter



Re: Installer : deselecting X* sets if user doesn't want to run X

2016-12-03 Thread Theo de Raadt
> So each time I install an OpenBSD system I have to both answer no as to 
> whether
> I want to run X on the system, and then deselect the X* sets.
> 
> It's not a big thing, but I thought it couldn't be that hard to make it
> automatic, that is, if the user indicated they are not planning to run X,
> deselect the X* sets by default, since it's probably the most common case 
> (they
> could want to have the sets to build some software or to run remote X
> applications, but in my opinion most users who indicate they don't want to 
> run X
> won't need these sets).
> 
> Anyway, attached is a patch that supposedly does this. Disclaimer : I could 
> not
> manage to build a -current installation image, even tho I tried to follow
> release(8) and https://www.openbsd.org/faq/current.html, so I can't confirm 
> thatit works correctly, but the code seems correct to me. 
> 
> Also, I'm sorry if this is not the kind of diff you're expecting. I'm a
> sysadmin, not a dev, so I'm not used to this kind of things.

No way.  These two parts are seperate.

The 1st question is asking if you are going run the X server.

The 2nd is related to the X sets which includes the X libraries.  Many
many packages are linked to the X libraries.  Having to install the X
libraries after the fact is an annoying stumble for most people.


So this should not change at all.



Installer : deselecting X* sets if user doesn't want to run X

2016-12-03 Thread Clément 'wxcafé' Hertling
Hey,

So each time I install an OpenBSD system I have to both answer no as to whether
I want to run X on the system, and then deselect the X* sets.

It's not a big thing, but I thought it couldn't be that hard to make it
automatic, that is, if the user indicated they are not planning to run X,
deselect the X* sets by default, since it's probably the most common case (they
could want to have the sets to build some software or to run remote X
applications, but in my opinion most users who indicate they don't want to run X
won't need these sets).

Anyway, attached is a patch that supposedly does this. Disclaimer : I could not
manage to build a -current installation image, even tho I tried to follow
release(8) and https://www.openbsd.org/faq/current.html, so I can't confirm 
thatit works correctly, but the code seems correct to me. 

Also, I'm sorry if this is not the kind of diff you're expecting. I'm a
sysadmin, not a dev, so I'm not used to this kind of things.

Thanks

-- 

Clément 'wxcafé' Hertling

[demime 1.01d removed an attachment of type text/x-patch which had a name of 
install.sub.diff"; charset="UTF-8]



Re: Building An Intranet For Dummies

2016-12-03 Thread Mark Carroll
On 03 Dec 2016, Predrag Punosevac wrote:

> I thought I could accomplish the same using DokuWiki. As you can see
> from this post
>
> https://forum.dokuwiki.org/thread/14277
>
> things are not going quite as easy as I thought. Theoretically I should
> be able to use namespaces to create tabs only visible to @user group but
> in practice I am confused about about changing namespace properties of
> the DokuWiki tabs.

I too have been using DokuWiki: I'm pretty happy with it. I protect the
whole thing with an "authenticate" directive in httpd.conf and I use the
DokuWiki ACL stuff to associate wiki users with certain namespaces just
as you have. However, I have put only specific pages into namespaces, I
haven't tried messing with sidebar tabs I'm afraid, nor have I touched
Exhibit.

-- Mark



Building An Intranet For Dummies

2016-12-03 Thread Predrag Punosevac
Hi misc,

I was recently tasked with building an Intranet site for my research
group. Traditionally we have used very weak security model to accomplish
this task which consisted of using Daisy CMS and its internal
authentication to hide few pages of our Wiki from praying eyes of
strangers. 

I thought I could accomplish the same using DokuWiki. As you can see
from this post

https://forum.dokuwiki.org/thread/14277

things are not going quite as easy as I thought. Theoretically I should
be able to use namespaces to create tabs only visible to @user group but
in practice I am confused about about changing namespace properties of
the DokuWiki tabs.

Long story short I decided to take a pause and think some more using the
input of competent people how to accomplish this task. 

I was wondering what people around here use to create their Intranats? I
am open for any suggestions (authpf, relayd, some kind proxy) with the
caveat that uses should be able to authenticate just by typing their
password into the web browser. I am perfectly OK with running second
private DokuWiki instance. 

Best,
Predrag



Re: 5.8 EOL

2016-12-03 Thread Alessandro Baggi

Il 02/12/2016 23:30, Erling Westenvik ha scritto:

On Fri, Dec 02, 2016 at 02:43:01PM +0100, Alessandro Baggi wrote:

Il 02/12/2016 00:47, OpenBSD lists ha scritto:

Alessandro Baggi wrote:

Il 01/12/2016 17:01, Marko Cupać ha scritto:

On Thu, 1 Dec 2016 15:59:41 +0100
Alessandro Baggi  wrote:


Hi list,
I've installed some years ago OpenBSD 5.8 on apu with 3 nics.
I've tried to search but no look. What is the EOL for OpenBSD 5.8?

Thanks in advance.



https://www.openbsd.org/faq/faq5.html#Flavors

AFAIK Once 6.0 is out, 5.8 becomes unsupported (EOS). But it by no means
its life ends (EOL). I have just upgraded 2 boxes that were at 5.5,
but were quite alive and kicking :)

--
Before enlightenment - chop wood, draw water.
After  enlightenment - chop wood, draw water.

Marko Cupać
https://www.mimar.rs/



Then, when 6.1 will be released,

Somewhere between March and May of next year.  Depends on when the code
is in a releasable state.


5.9 will become unsupported.

Yep, it won't be getting patches anymore.


How do you provide to security patch for 5.5?

We don't.  Supporting a release that old would require quite a lot more
volunteers to back-port and test every patch that would apply and we'd
rather not waste resources on supporting the old stuff and use our time
to move the project forward.  Upgrading is painless and major changes
are very rare, so I can't think of any compelling reasons to stay on an
old version (well, unless it is the last version your platform supports)



Thanks to all for your answer.

It's time to upgrade.


Please take note of the upgrade guides in the FAQ and upgrade one
version at a time, first from 5.8 to 5.9, then from 5.9 to 6.0 -- NOT
directly from 5.8 to 6.0. The upgrade guides can be found here:

http://www.openbsd.org/faq/upgrade59.html
http://www.openbsd.org/faq/upgrade60.html

Be sure to read both guides carefully. There may be files that
needs to be removed manually, and services that may require
configuration.

Have fun! :)


Thank you Erling for suggestions.



Re: HP Proliant MicroServer G8: not seeing disks [solved]

2016-12-03 Thread Stephane HUC "CIOTBSD"
Hi Stuart.

What microserver would you recommend?!


Le 12/03/16 à 12:08, Stuart Henderson a écrit :
> On 2016-12-02, Peter N. M. Hansteen  wrote:
>> My only complaint is that due to the maze of twisty nonsense that is the
>> HPE web site I never got the BIOS upgrade
> 
> It's at
> http://h20564.www2.hpe.com/hpsc/swd/public/readIndex?sp4ts.oid=5390291=8=4168
> but HP restrict BIOS downloads for computers, afaik it needs to either be
> under warranty or you need a support contract.
> 
> As a result I don't buy HP machines any more, either new or second-hand.
> 

-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<

Stephane HUC as PengouinPdt or CIOTBSD
b...@stephane-huc.net



signature.asc
Description: OpenPGP digital signature


Re: HP Proliant MicroServer G8: not seeing disks [solved]

2016-12-03 Thread Stuart Henderson
On 2016-12-02, Peter N. M. Hansteen  wrote:
> My only complaint is that due to the maze of twisty nonsense that is the
> HPE web site I never got the BIOS upgrade

It's at
http://h20564.www2.hpe.com/hpsc/swd/public/readIndex?sp4ts.oid=5390291=8=4168
but HP restrict BIOS downloads for computers, afaik it needs to either be
under warranty or you need a support contract.

As a result I don't buy HP machines any more, either new or second-hand.