Re: Missing security announcements

2008-11-15 Thread Toni Mueller
Hi,

On Thu, 13.11.2008 at 08:55:04 -0500, Ted Unangst [EMAIL PROTECTED] wrote:
 So get on the developer's case when they don't send out notifications.
  All this chatter now isn't going to change anything when the next
 errata comes out.  You want security announcement? Do something to
 make it happen!

how do you suggest that Joe Random User can change the way you
developer folks work, or what you work with?

I can imagine having a script, somehow tied into the CVS commit hook,
that would scan the commit message for security or reliability or
so, and automatically send out mails to this list, but would you use it
if I'd write it and give it to you? I'm sceptical, to say the least.


Kind regards,
--Toni++



Re: help with CPAN after upgrade to 111108 snapshot

2008-11-15 Thread Stuart Henderson
http://www.openbsd.org/faq/current.html

If you use -current, you *have* to follow this page.

On 2008-11-15, Juan Miscaro [EMAIL PROTECTED] wrote:
 2008/11/15 Juan Miscaro [EMAIL PROTECTED]:
 Hi, I upgraded to the 08 snapshot and when trying to install a
 Perl module with CPAN I'm getting errors:

 $ cpan
 CPAN: File::HomeDir loaded ok (v0.69)
 Use of uninitialized value in subroutine entry at
 /usr/libdata/perl5/i386-openbsd/5.10.0/DynaLoader.pm line 226.
 Use of uninitialized value $len in bitwise and () at (eval 275) line 1.
 Use of uninitialized value $len in bitwise and () at (eval 277) line 1.

 cpan shell -- CPAN exploration and modules installation (v1.9205)
 ReadLine support enabled

 cpan[1] install Unix::Syslog
 CPAN: Storable loaded ok (v2.18)
 Going to read /var/cpan/Metadata
  Database was generated on Sat, 27 Sep 2008 18:26:49 GMT
 CPAN: LWP::UserAgent loaded ok (v2.036)
 CPAN: Time::HiRes loaded ok (v1.9711)
 Fetching with LWP:
  ftp://CPAN.mirror.rafal.ca/pub/CPAN/authors/01mailrc.txt.gz
 LWP failed with code[500] message[Can't use an undefined value as a
 symbol reference]
 Fetching with Net::FTP:
  ftp://CPAN.mirror.rafal.ca/pub/CPAN/authors/01mailrc.txt.gz
 Catching error: 'Can\'t use an undefined value as a symbol reference
 at /usr/libdata/perl5/Net/FTP/dataconn.pm line 54.
 ' at /usr/libdata/perl5/CPAN.pm line 281
CPAN::shell() called at /usr/bin/cpan line 198
 Fetching with LWP:
  ftp://CPAN.mirror.rafal.ca/pub/CPAN/authors/01mailrc.txt.gz
 LWP failed with code[500] message[Can't use an undefined value as a
 symbol reference]
 Fetching with Net::FTP:
  ftp://CPAN.mirror.rafal.ca/pub/CPAN/authors/01mailrc.txt.gz
 Lockfile removed.
 Can't use an undefined value as a symbol reference at
 /usr/libdata/perl5/Net/FTP/dataconn.pm line 54.



 Any ideas?  Thanks a lot.

 /juan


 Update,

 On another equally upgraded host I *can* install the same module but
 crashes when I try to run a script.  It seems to be pointing to an
 OpenBSD-specific file:

 object version 3.56 does not match bootstrap parameter %_ at
 /usr/libdata/perl5/i386-openbsd/5.10.0/XSLoader.pm line 88.

 /juan



Re: smtpd - developer blog on undeadly

2008-11-15 Thread Toni Mueller
Hi,

On Thu, 13.11.2008 at 18:17:24 +0100, RC)mi Bougard [EMAIL PROTECTED] wrote:
 For those of you who where asking informations about (open ?)smtpd :
 Gilles Chehade writes a long and clear text about it on undeadly.org :
 http://undeadly.org/cgi?action=articlesid=20081112084647

what about using this: http://smtpd.develooper.com/

It's BSD licensed, too.


Kind regards,
--Toni++



Re: Missing security announcements

2008-11-15 Thread William Boshuck
On Sat, Nov 15, 2008 at 11:21:22AM +0100, Toni Mueller wrote:
 Hi,
 
 On Thu, 13.11.2008 at 08:55:04 -0500, Ted Unangst [EMAIL PROTECTED] wrote:
  So get on the developer's case when they don't send out notifications.
   All this chatter now isn't going to change anything when the next
  errata comes out.  You want security announcement? Do something to
  make it happen!
 
 how do you suggest that Joe Random User can change the way you
 developer folks work,

Ted already made a suggestion about this.
It's in the archives.

-wb



Re: azalia patches in -current

2008-11-15 Thread Marco Peereboom
I find this very confusing too.  I have to fart around until I figure
out what volume setting is which.  Is there no way to generalize this?

I mean do all this fancy stuff but provide general names that always
routes the command to the proper channel.  For example a master mute and
a master volume.  That way old timers like me (that still believe that
audio doesn't belong on unix machines) can actually use it.  The folks
at apple got it right; they simply have a louder/quieter slider thingy;
perfect!  All the other fancy stuff is for people who know what they are
doing.

On Sat, Nov 15, 2008 at 05:37:14AM +, Jacob Meuser wrote:
 On Sat, Nov 15, 2008 at 04:25:49AM +, Bryan wrote:
  Greetings,
  
  I just inherited a Dell Inspiron 1520 a few days ago, and I was eager
  to install -current on it. I installed the November 6th snapshot.
  Sadly, I found that this laptop uses the azalia(4) driver. (my
  Inspiron 9300 uses auich(4) ).
  
  So far, I can hear audio in my headphones, and saw the mixerctl switch
  headphone outputs when I plug in headphones.  Still can't get the
  microphone to work,
 
 some hints in your mixerctl below
 
  and I still have not been able to hear music from
  the CD player.
 
 the CD pin isn't connected on this audio codec.  use 'cdio cdplay'.
 
  I saw on the daily changelog that the S/PDIF has been applied, but was
  not sure of the other patches...
 
 there are more coming ... even if your device starts working, please
 keep testing patches to make sure it doesn't stop working ;)
 
  I noticed that the replies given have HD Audio cards that are
  different than mine.  MIne has the following for output:
  
  azalia0 at pci0 dev 27 function 0 Intel 82801H HD Audio rev 0x02:
  apic 2 int 21 (irq 9)
  azalia0: codecs: Sigmatel/0x76a0, Conexant/0x2c06, using Sigmatel/0x76a0
  audio0 at azalia0
 
 this is an STAC9205.  http://www.idt.com/index.cfm?genID=STAC9205
 
  # mixerctl -av
  outputs.headphones.sour=dac  [ dac dac2 ]
  outputs.headphones.dir=output  [ input output ]
  outputs.headphones.boos=off  [ off on ]
  outputs.line.source=dac  [ dac dac2 ]
  outputs.line.dir=input  [ input output ]
  outputs.speaker.dir=input  [ input output ]
  outputs.speaker.boost=off  [ off on ]
 
 you probably want to set outputs.{line,speaker}.dir=output
 
  inputs.dac.mute=off  [ off on ]
  inputs.dac=160,160
  inputs.dac2.mute=off  [ off on ]
  inputs.dac2=126,126
  inputs.sel.source=headphones  [ line speaker headphones ]
  outputs.sel=126,126
  inputs.sel2.source=  [ line speaker headphones ]
  outputs.sel2=252,252
  inputs.sel3.sel=119,119
  inputs.sel4.sel2=119,119
  inputs.sel5.source=sel3  [ sel3 mic ]
  outputs.sel5.mute=off  [ off on ]
  inputs.sel6.source=sel4  [ sel4 mic ]
 
 inputs.sel{5,6}.source=mic
 
  outputs.sel6.mute=off  [ off on ]
  inputs.beep=85
  outputs.volume=254
  inputs.usingdac=10  [ 10 11 1f ]
  record.usingadc=12  [ 12 13 20 ]
  outputs.master=160,160
  inputs.dac=160,160
  
 
 -- 
 [EMAIL PROTECTED]
 SDF Public Access UNIX System - http://sdf.lonestar.org



Re: smtpd - developer blog on undeadly

2008-11-15 Thread Marco Peereboom
quote: qpsmtpd is a flexible smtpd daemon written in Perl. Apart from
the core SMTP features, all functionality is implemented in small
extension plugins using the easy to use object oriented plugin API.

Sounds like a great idea.  And it sounds like a ton of fun to use
someone else's perl goo instead of writing your own.  Who are you people
that keep asking these questions?  You get the code for free and still
are questioning someone else's motivation for it.  If you don't like it
don't use it.  Let me tell you exactly how many votes you get on how
someone spends their time: 0.  These remarks are very insulting.  

I have a suggestion for you on what to do with your free time: you get a
second job and send me all the proceeds.

I *love* that idea; so why don't you do that?

On Sat, Nov 15, 2008 at 11:38:12AM +0100, Toni Mueller wrote:
 Hi,
 
 On Thu, 13.11.2008 at 18:17:24 +0100, RC)mi Bougard [EMAIL PROTECTED] wrote:
  For those of you who where asking informations about (open ?)smtpd :
  Gilles Chehade writes a long and clear text about it on undeadly.org :
  http://undeadly.org/cgi?action=articlesid=20081112084647
 
 what about using this: http://smtpd.develooper.com/
 
 It's BSD licensed, too.
 
 
 Kind regards,
 --Toni++



Re: azalia patches in -current

2008-11-15 Thread Jacob Meuser
On Sat, Nov 15, 2008 at 07:30:24AM -0600, Marco Peereboom wrote:
 I find this very confusing too.  I have to fart around until I figure
 out what volume setting is which.  Is there no way to generalize this?
 
 I mean do all this fancy stuff but provide general names that always
 routes the command to the proper channel.  For example a master mute and
 a master volume.  That way old timers like me (that still believe that
 audio doesn't belong on unix machines) can actually use it.  The folks
 at apple got it right; they simply have a louder/quieter slider thingy;
 perfect!  All the other fancy stuff is for people who know what they are
 doing.

we *are* trying to add outputs.master to everything.

that's what azalia_generic_mixer_create_virtual is all about.

-- 
[EMAIL PROTECTED]
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: help with CPAN after upgrade to 111108 snapshot

2008-11-15 Thread Juan Miscaro
2008/11/15 Stuart Henderson [EMAIL PROTECTED]:
 http://www.openbsd.org/faq/current.html

 If you use -current, you *have* to follow this page.

 On 2008-11-15, Juan Miscaro [EMAIL PROTECTED] wrote:
 2008/11/15 Juan Miscaro [EMAIL PROTECTED]:
 Hi, I upgraded to the 08 snapshot and when trying to install a
 Perl module with CPAN I'm getting errors:

 $ cpan
 CPAN: File::HomeDir loaded ok (v0.69)
 Use of uninitialized value in subroutine entry at
 /usr/libdata/perl5/i386-openbsd/5.10.0/DynaLoader.pm line 226.
 Use of uninitialized value $len in bitwise and () at (eval 275) line 1.
 Use of uninitialized value $len in bitwise and () at (eval 277) line 1.

 cpan shell -- CPAN exploration and modules installation (v1.9205)
 ReadLine support enabled

 cpan[1] install Unix::Syslog
 CPAN: Storable loaded ok (v2.18)
 Going to read /var/cpan/Metadata
  Database was generated on Sat, 27 Sep 2008 18:26:49 GMT
 CPAN: LWP::UserAgent loaded ok (v2.036)
 CPAN: Time::HiRes loaded ok (v1.9711)
 Fetching with LWP:
  ftp://CPAN.mirror.rafal.ca/pub/CPAN/authors/01mailrc.txt.gz
 LWP failed with code[500] message[Can't use an undefined value as a
 symbol reference]
 Fetching with Net::FTP:
  ftp://CPAN.mirror.rafal.ca/pub/CPAN/authors/01mailrc.txt.gz
 Catching error: 'Can\'t use an undefined value as a symbol reference
 at /usr/libdata/perl5/Net/FTP/dataconn.pm line 54.
 ' at /usr/libdata/perl5/CPAN.pm line 281
CPAN::shell() called at /usr/bin/cpan line 198
 Fetching with LWP:
  ftp://CPAN.mirror.rafal.ca/pub/CPAN/authors/01mailrc.txt.gz
 LWP failed with code[500] message[Can't use an undefined value as a
 symbol reference]
 Fetching with Net::FTP:
  ftp://CPAN.mirror.rafal.ca/pub/CPAN/authors/01mailrc.txt.gz
 Lockfile removed.
 Can't use an undefined value as a symbol reference at
 /usr/libdata/perl5/Net/FTP/dataconn.pm line 54.



 Any ideas?  Thanks a lot.

 /juan


 Update,

 On another equally upgraded host I *can* install the same module but
 crashes when I try to run a script.  It seems to be pointing to an
 OpenBSD-specific file:

 object version 3.56 does not match bootstrap parameter %_ at
 /usr/libdata/perl5/i386-openbsd/5.10.0/XSLoader.pm line 88.

 /juan



Thanks for the reminder.  I managed to remove many Perl modules.  The
thing is that they were installed via CPAN so pkg_delete could not be
used (I used a Perl script instead).

A lot of the stuff on that page does not apply to me because I am not
building/compiling a release but overwriting files with snapshots.
Unless I'm missing something?

Sadly, my situation remains the same [1].

Do you have any other advice?

/juan

[1]

$ cpan
CPAN: File::HomeDir loaded ok (v0.69)
Use of uninitialized value in subroutine entry at
/usr/libdata/perl5/i386-openbsd/5.10.0/DynaLoader.pm line 226.
Use of uninitialized value $len in bitwise and () at (eval 275) line 1.
Use of uninitialized value $len in bitwise and () at (eval 277) line 1.

cpan shell -- CPAN exploration and modules installation (v1.9205)
ReadLine support enabled

cpan[1] install Unix::Syslog
CPAN: Storable loaded ok (v2.18)
Going to read /var/cpan/Metadata
  Database was generated on Sat, 27 Sep 2008 18:26:49 GMT
CPAN: LWP::UserAgent loaded ok (v2.036)
CPAN: Time::HiRes loaded ok (v1.9711)
Fetching with LWP:
  ftp://CPAN.mirror.rafal.ca/pub/CPAN/authors/01mailrc.txt.gz
LWP failed with code[500] message[Can't use an undefined value as a
symbol reference]
Fetching with Net::FTP:
  ftp://CPAN.mirror.rafal.ca/pub/CPAN/authors/01mailrc.txt.gz
Catching error: 'Can\'t use an undefined value as a symbol reference
at /usr/libdata/perl5/Net/FTP/dataconn.pm line 54.
' at /usr/libdata/perl5/CPAN.pm line 281
CPAN::shell() called at /usr/bin/cpan line 198
Fetching with LWP:
  ftp://CPAN.mirror.rafal.ca/pub/CPAN/authors/01mailrc.txt.gz
LWP failed with code[500] message[Can't use an undefined value as a
symbol reference]
Fetching with Net::FTP:
  ftp://CPAN.mirror.rafal.ca/pub/CPAN/authors/01mailrc.txt.gz
Lockfile removed.
Can't use an undefined value as a symbol reference at
/usr/libdata/perl5/Net/FTP/dataconn.pm line 54.



Re: Missing security announcements

2008-11-15 Thread Ted Unangst
On Sat, Nov 15, 2008 at 5:21 AM, Toni Mueller [EMAIL PROTECTED] wrote:
 I can imagine having a script, somehow tied into the CVS commit hook,
 that would scan the commit message for security or reliability or
 so, and automatically send out mails to this list, but would you use it
 if I'd write it and give it to you? I'm sceptical, to say the least.

No, because emails to sec-announce deserve more than just random
commit messages.  In particular, it should not send emails everytime
somebody makes a no change to security commit.  And it needs to have
the path to the patches in it.



Re: smtpd - developer blog on undeadly

2008-11-15 Thread Jason Beaudoin
On Sat, Nov 15, 2008 at 5:38 AM, Toni Mueller [EMAIL PROTECTED] wrote:
 Hi,

 On Thu, 13.11.2008 at 18:17:24 +0100, RC)mi Bougard [EMAIL PROTECTED] wrote:
 For those of you who where asking informations about (open ?)smtpd :
 Gilles Chehade writes a long and clear text about it on undeadly.org :
 http://undeadly.org/cgi?action=articlesid=20081112084647

 what about using this: http://smtpd.develooper.com/

 It's BSD licensed, too.

 Kind regards,
 --Toni++


it's remarks like these that give the rest of misc a bad rap. did you
lose your appreciation for the work *others* do, or what's the
problem?


~Jason



curses raw mode

2008-11-15 Thread bdz

hi

i have a problem with curses on openbsd 4.4. i can not set up to have 
raw(3) mode and receiving the KEY_F(n) values using getch(3). it always 
send the esc sequence: 27, 79, 80 for F1; 27, 79, 81 for F2 etc...


i am trying with:
initscr();
noecho();
raw();
keypad(stdscr, TRUE);
nodelay(stdscr, TRUE);

even the example [url] provided below produces the same result. do you 
have any idea how to set up curses to be able to receive the predefined 
values KEY_ using the getch(3) function?


thanks
bdz

http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/init.html#INITEX



Re: curses raw mode

2008-11-15 Thread Ted Unangst
On Sat, Nov 15, 2008 at 12:09 PM, bdz [EMAIL PROTECTED] wrote:
 i have a problem with curses on openbsd 4.4. i can not set up to have raw(3)
 mode and receiving the KEY_F(n) values using getch(3). it always send the
 esc sequence: 27, 79, 80 for F1; 27, 79, 81 for F2 etc...

The curses in base is quite old.  If you download and install the new
version from source, it works as expected.



Azalia regression

2008-11-15 Thread Martin Pieuchot
Hello,

I am using a 4.4-current on a Vaio VGN-SZ5MN, and this morning, after
building a freshly checked out system, no more sound. 
My problem is the same as reported by Aaron Stellman [1], and his fix
worked in my case.

Here's my dmesg, audioctl, mixerctl -va and the azalia.c's diff.

Cheers,

Martin

[1] http://marc.info/?l=openbsd-miscm=122483518428590w=2

OpenBSD 4.4-current (GENERIC.MP) #2: Sat Nov 15 12:37:38 BRST 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz (GenuineIntel 686-class)
1.84 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR
real mem  = 2145480704 (2046MB)
avail mem = 2066006016 (1970MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 04/12/07, BIOS32 rev. 0 @
0xfdbd0, SMBIOS rev. 2.4 @ 0xdc010 (19 entries)
bios0: vendor Phoenix Technologies LTD version R0112N0 date 04/12/2007
bios0: Sony Corporation VGN-SZ5MN_B
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP APIC HPET MCFG TCPA SLIC APIC BOOT SSDT SSDT
SSDT SSDT SSDT
acpi0: wakeup devices PWRB(S4) S1F0(S4) S1F1(S4) S1F2(S4) S1F3(S4)
S1F4(S4) S1F5(S4) S1F6(S4) S1F7(S4) TLAN(S3) DLAN(S3) USB1(S3) USB2(S3) 
USB3(S3) USB4(S3) USB7(S3) SLT0(S4) EC0_(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz (GenuineIntel 686-class)
1.84 GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PEGP)
acpiprt2 at acpi0: bus 2 (RP01)
acpiprt3 at acpi0: bus 6 (RP02)
acpiprt4 at acpi0: bus 7 (RP03)
acpiprt5 at acpi0: bus 8 (RP04)
acpiprt6 at acpi0: bus 9 (PCIB)
acpiec0 at acpi0
acpicpu0 at acpi0: C2
acpicpu1 at acpi0: C2
acpitz0 at acpi0: critical temperature 99 degC
acpitz1 at acpi0: critical temperature 100 degC
acpitz2 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
acpibat0 at acpi0: BAT1 type LION oem Sony Corp.
acpiac0 at acpi0: AC unit online
acpidock at acpi0 not configured
acpivideo at acpi0 not configured
bios0: ROM list: 0xc/0xf000 0xdc000/0x4000! 0xe/0x1c00!
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06130b2506000b25
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 1833 MHz (1292 mV): speeds: 1833, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GM Host rev 0x03
ppb0 at pci0 dev 1 function 0 Intel 82945GM PCIE rev 0x03: apic 1 int
16 (irq 5)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 NVIDIA GeForce 7400 Go rev 0xa1
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02:
apic 1 int 21 (irq 10)
azalia0: codecs: Sigmatel STAC9872AK, Conexant/0x2bfa, using Sigmatel
STAC9872AK
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: apic 1
int 16 (irq 5)
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02: apic 1
int 17 (irq 10)
pci3 at ppb2 bus 6
wpi0 at pci3 dev 0 function 0 Intel PRO/Wireless 3945ABG rev 0x02:
apic 1 int 17 (irq 10), MoW2, address 00:19:d2:b5:65:9b
ppb3 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x02: apic 1
int 18 (irq 10)
pci4 at ppb3 bus 7
mskc0 at pci4 dev 0 function 0 Marvell Yukon 88E8036 rev 0x16,
Yukon-2 FE (0x1): apic 1 int 18 (irq 10)
msk0 at mskc0 port A: address 00:13:a9:fa:5a:52
eephy0 at msk0 phy 0: 88E3082 10/100 PHY, rev. 3
ppb4 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x02: apic 1
int 19 (irq 10)
pci5 at ppb4 bus 8
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x02: apic 1
int 19 (irq 10)
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x02: apic 1
int 19 (irq 10)
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x02: apic 1
int 19 (irq 10)
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: apic 1
int 19 (irq 10)
ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x02: apic 1
int 23 (irq 10)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb5 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xe2
pci6 at ppb5 bus 9
cbb0 at pci6 dev 4 function 0 TI PCIXX12 CardBus rev 0x00: apic 1 int
20 (irq 255)
TI PCIXX12 FireWire rev 0x00 at pci6 dev 4 function 1 not configured
TI PCIXX12 Multimedia Card Reader rev 0x00 at pci6 dev 4 function 2
not configured
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 10 

Ami and OpenBSD 4.4 AMD64 SMP satbility

2008-11-15 Thread MichaƂ Koc

Hi,

I've just tested SRCS28X witch is a ami0 raid controller with OpenBSD
4.4 errata 005 on fallowing architectures:
- i386
- i386 SMP
- amd64
- amd64 SMP

It occurs that dd uf=/dev/zero of=/test to the filesystem mounted on
ami0 freezes the system on amd64/SMP only. This behavior is repetitive.

Does anyone have a clue what might causing it ? and how to fix it ?

I've also tried different SRCS28X bioses, but no luck.

If any more information is required, please let mi know.

regards
M.K.



Re: Turning off sendmail

2008-11-15 Thread Doug Milam
and it only seems to take up about 1 mb of memory, which is far less than i 
thought. 

having experimented with turning it off via sendmail_flags=NO, i don't notice 
any performance gain.

thanks everyone!


--- On Fri, 11/14/08, Chris Kuethe [EMAIL PROTECTED] wrote:

 From: Chris Kuethe [EMAIL PROTECTED]
 Subject: Re: Turning off sendmail
 To: [EMAIL PROTECTED]
 Date: Friday, November 14, 2008, 9:55 AM
 it's unwise because you won't get the daily security
 mails. it's
 unnecessary because it only listens on localhost.
 
 On Fri, Nov 14, 2008 at 8:31 AM, Doug Milam
 [EMAIL PROTECTED] wrote:
  To cut down on services I don't use, I'd like
 to disable sendmail, unless this is unwise. If so, I'd
 like to know why. Thanks.
 
 
 
 
 
 -- 
 GDB has a 'break' feature; why doesn't it have
 'fix' too?



Re: help with CPAN after upgrade to 111108 snapshot

2008-11-15 Thread Stuart Henderson
On 2008/11/15 10:24, Juan Miscaro wrote:
 
 Thanks for the reminder.  I managed to remove many Perl modules.  The
 thing is that they were installed via CPAN so pkg_delete could not be
 used (I used a Perl script instead).
 
 A lot of the stuff on that page does not apply to me because I am not
 building/compiling a release but overwriting files with snapshots.
 Unless I'm missing something?

Basically: any XS modules must be rebuilt. Some other software
won't work and will need an upgrade. We've already done the hard
work for things in packages, if you don't use that then we can't
really help you, you'll have to handle it yourself.

Seems like new LWP is probably a good start.

 Sadly, my situation remains the same [1].
 
 Do you have any other advice?
 
 /juan
 
 [1]
 
 $ cpan
 CPAN: File::HomeDir loaded ok (v0.69)
 Use of uninitialized value in subroutine entry at
 /usr/libdata/perl5/i386-openbsd/5.10.0/DynaLoader.pm line 226.
 Use of uninitialized value $len in bitwise and () at (eval 275) line 1.
 Use of uninitialized value $len in bitwise and () at (eval 277) line 1.
 
 cpan shell -- CPAN exploration and modules installation (v1.9205)
 ReadLine support enabled
 
 cpan[1] install Unix::Syslog
 CPAN: Storable loaded ok (v2.18)
 Going to read /var/cpan/Metadata
   Database was generated on Sat, 27 Sep 2008 18:26:49 GMT
 CPAN: LWP::UserAgent loaded ok (v2.036)
 CPAN: Time::HiRes loaded ok (v1.9711)
 Fetching with LWP:
   ftp://CPAN.mirror.rafal.ca/pub/CPAN/authors/01mailrc.txt.gz
 LWP failed with code[500] message[Can't use an undefined value as a
 symbol reference]
 Fetching with Net::FTP:
   ftp://CPAN.mirror.rafal.ca/pub/CPAN/authors/01mailrc.txt.gz
 Catching error: 'Can\'t use an undefined value as a symbol reference
 at /usr/libdata/perl5/Net/FTP/dataconn.pm line 54.
 ' at /usr/libdata/perl5/CPAN.pm line 281
 CPAN::shell() called at /usr/bin/cpan line 198
 Fetching with LWP:
   ftp://CPAN.mirror.rafal.ca/pub/CPAN/authors/01mailrc.txt.gz
 LWP failed with code[500] message[Can't use an undefined value as a
 symbol reference]
 Fetching with Net::FTP:
   ftp://CPAN.mirror.rafal.ca/pub/CPAN/authors/01mailrc.txt.gz
 Lockfile removed.
 Can't use an undefined value as a symbol reference at
 /usr/libdata/perl5/Net/FTP/dataconn.pm line 54.



Re: help with CPAN after upgrade to 111108 snapshot

2008-11-15 Thread Juan Miscaro
2008/11/15 Stuart Henderson [EMAIL PROTECTED]:
 On 2008/11/15 10:24, Juan Miscaro wrote:

 Thanks for the reminder.  I managed to remove many Perl modules.  The
 thing is that they were installed via CPAN so pkg_delete could not be
 used (I used a Perl script instead).

 A lot of the stuff on that page does not apply to me because I am not
 building/compiling a release but overwriting files with snapshots.
 Unless I'm missing something?

 Basically: any XS modules must be rebuilt. Some other software
 won't work and will need an upgrade. We've already done the hard
 work for things in packages, if you don't use that then we can't
 really help you, you'll have to handle it yourself.

 Seems like new LWP is probably a good start.

 Sadly, my situation remains the same [1].

 Do you have any other advice?

 /juan

 [1]

 $ cpan
 CPAN: File::HomeDir loaded ok (v0.69)
 Use of uninitialized value in subroutine entry at
 /usr/libdata/perl5/i386-openbsd/5.10.0/DynaLoader.pm line 226.
 Use of uninitialized value $len in bitwise and () at (eval 275) line 1.
 Use of uninitialized value $len in bitwise and () at (eval 277) line 1.

 cpan shell -- CPAN exploration and modules installation (v1.9205)
 ReadLine support enabled

 cpan[1] install Unix::Syslog
 CPAN: Storable loaded ok (v2.18)
 Going to read /var/cpan/Metadata
   Database was generated on Sat, 27 Sep 2008 18:26:49 GMT
 CPAN: LWP::UserAgent loaded ok (v2.036)
 CPAN: Time::HiRes loaded ok (v1.9711)
 Fetching with LWP:
   ftp://CPAN.mirror.rafal.ca/pub/CPAN/authors/01mailrc.txt.gz
 LWP failed with code[500] message[Can't use an undefined value as a
 symbol reference]
 Fetching with Net::FTP:
   ftp://CPAN.mirror.rafal.ca/pub/CPAN/authors/01mailrc.txt.gz
 Catching error: 'Can\'t use an undefined value as a symbol reference
 at /usr/libdata/perl5/Net/FTP/dataconn.pm line 54.
 ' at /usr/libdata/perl5/CPAN.pm line 281
 CPAN::shell() called at /usr/bin/cpan line 198
 Fetching with LWP:
   ftp://CPAN.mirror.rafal.ca/pub/CPAN/authors/01mailrc.txt.gz
 LWP failed with code[500] message[Can't use an undefined value as a
 symbol reference]
 Fetching with Net::FTP:
   ftp://CPAN.mirror.rafal.ca/pub/CPAN/authors/01mailrc.txt.gz
 Lockfile removed.
 Can't use an undefined value as a symbol reference at
 /usr/libdata/perl5/Net/FTP/dataconn.pm line 54.


I've tried to go the all-packages way but there are often packages
missing.  For instance, I just tried to install snapshot packages and
there isn't any 'libghttp' available.  This is a huge package (it's a
dependency of libwww).

/juan



How to synchronize mediawiki installs for CARP'd web servers

2008-11-15 Thread Vivek Ayer
Hey guys,

This is more of a mediawiki question than and OpenBSD question, but do
any of you guys know how to sync mediawiki installs between computers?
I'm was thinking of just copying over files using rsync and then
cronning that, but I'm not sure it's that easy. When you sync
mediawiki, do you just need to sync the mysql databases between the
two? I know mediawiki has a function that allows the multiple
computers to access one database. Maybe that's how wikipedia does it,
but since my servers are CARP'd and ip balanced, requests will go to
different computers over time. If any of you know how to use rsync
effectively with mediawiki, I'd love to know.

Help appreciated,
Vivek



Re: Turning off sendmail

2008-11-15 Thread David

in /etc/rc

comment out the lines:

if [ X${sendmail_flags} != XNO -a -s /etc/mailer.conf ]; then
	echo -n ' sendmail';		( /usr/sbin/sendmail ${sendmail_flags} /dev/null 
21  )

fi

Doug Milam wrote:

To cut down on services I don't use, I'd like to disable sendmail, unless this 
is unwise. If so, I'd like to know why. Thanks.




Re: How to synchronize mediawiki installs for CARP'd web servers

2008-11-15 Thread Jacek Artymiak
On Sat, Nov 15, 2008 at 11:45 PM, Vivek Ayer [EMAIL PROTECTED] wrote:
 Hey guys,

 This is more of a mediawiki question than and OpenBSD question, but do
 any of you guys know how to sync mediawiki installs between computers?
 I'm was thinking of just copying over files using rsync and then
 cronning that, but I'm not sure it's that easy. When you sync
 mediawiki, do you just need to sync the mysql databases between the
 two? I know mediawiki has a function that allows the multiple
 computers to access one database. Maybe that's how wikipedia does it,
 but since my servers are CARP'd and ip balanced, requests will go to
 different computers over time. If any of you know how to use rsync
 effectively with mediawiki, I'd love to know.

Read Building Scalable Web Sites by Cal Henderson

http://oreilly.com/catalog/9780596102357/

-- 
Jacek Artymiak
http://devGuide.net

vi(1) Tips: Essential vi/vim Editor Skills, 1st ed.
http://www.devguide.net/books/vitips1

devGuide.tv
http://devguide.tv



Re: Turning off sendmail

2008-11-15 Thread Alexander Hall

David wrote:

in /etc/rc

comment out the lines:

if [ X${sendmail_flags} != XNO -a -s /etc/mailer.conf ]; then
echo -n ' sendmail';( /usr/sbin/sendmail ${sendmail_flags} 
 /dev/null 21  )

fi


What is this supposed to result in that a ``sendmail_flags=NO'' in 
/etc/rc.conf.local would not?


Even so, it is not what the OP asked for. He asked if he should disable 
sendmail, which he most likely has no reason to do.




Doug Milam wrote:
To cut down on services I don't use, I'd like to disable sendmail, 
unless this is unwise. If so, I'd like to know why. Thanks.




Re: Turning off sendmail

2008-11-15 Thread STeve Andre'
On Saturday 15 November 2008 18:08:23 David wrote:
 in /etc/rc

 comment out the lines:

 if [ X${sendmail_flags} != XNO -a -s /etc/mailer.conf ]; then
   echo -n ' sendmail';( /usr/sbin/sendmail ${sendmail_flags} 
 /dev/null
 21  )
 fi

 Doug Milam wrote:
  To cut down on services I don't use, I'd like to disable sendmail, unless
  this is unwise. If so, I'd like to know why. Thanks.

The better way to do this is look at /etc/rc.conf, where you will find

# For normal use: -L sm-mta -bd -q30m, and note there is a cron job
sendmail_flags=-L sm-mta -C/etc/mail/localhost.cf -bd -q30m
spamd_flags=NO  # for normal use:  and see spamd(8)
spamd_black=NO  # set to YES to run spamd without greylisting
spamlogd_flags=   # use eg. -i interface and see spamlogd(8)

Take the sendmail_flags line and make a commented out copy of it
and then add

sendmail_flags=NO

Don't tweak system files unless you really have to.  rc.conf controls
a lot, and is the proper way to change how the system works.

--STeve Andre'



Re: help with CPAN after upgrade to 111108 snapshot

2008-11-15 Thread Stuart Henderson
On 2008-11-15, Juan Miscaro [EMAIL PROTECTED] wrote:
 I've tried to go the all-packages way but there are often packages
 missing.  For instance, I just tried to install snapshot packages and
 there isn't any 'libghttp' available.  This is a huge package (it's a
 dependency of libwww).

Of course we have libwww, and its dependencies like p5-HTTP-GHTTP.

Please take a look at p5-* ports, a lot of things are there already,
if they're not, they're usually pretty easy to handle: generally they
are easy to port and have regression tests, so it's pretty easy for
others to check your work on a few other arch too.

Replies - ports@, please...



Re: Turning off sendmail

2008-11-15 Thread Aaron W. Hsu
On Sat, 15 Nov 2008 18:23:24 -0500
STeve Andre' [EMAIL PROTECTED] wrote:

 Don't tweak system files unless you really have to.  rc.conf controls
 a lot, and is the proper way to change how the system works.

Just as an additional note, I believe these should be added to
rc.conf.local and not to the main rc.conf file, which falls under the
system file category that should not be modified. 

-- 
Aaron W. Hsu [EMAIL PROTECTED] | http://www.sacrideo.us
Government is the great fiction, through which everybody endeavors to
live at the expense of everybody else. -- Frederic Bastiat
+++ ((lambda (x) (x x)) (lambda (x) (x x))) ++



Re: Azalia regression

2008-11-15 Thread Jacob Meuser
On Sat, Nov 15, 2008 at 04:42:10PM -0200, Martin Pieuchot wrote:
 Hello,
 
 I am using a 4.4-current on a Vaio VGN-SZ5MN, and this morning, after
 building a freshly checked out system, no more sound. 
 My problem is the same as reported by Aaron Stellman [1], and his fix
 worked in my case.

that's not the correct fix, nor is it what was actually comitted.

please subscribe to [EMAIL PROTECTED]  azalia is being worked on, and diffs are
being sent there for testing.

that applies to everyone with an azalia(4).

-- 
[EMAIL PROTECTED]
SDF Public Access UNIX System - http://sdf.lonestar.org



DNS Server behind Router

2008-11-15 Thread Vivek Ayer
Hey guys,

Need some help with DNS queries behind a router. I set up a DNS server
in my network and it responds when I'm within my network. I tried
nslookup from localhost on the dns server and also from the LAN and it
works just find, but when I use the public IP of the router for the
network, which should forward the port to the DNS server, it says
unexpected reply from 192.168.1.101, expected from the (public IP,
which I won't display in this email). Does that mean the port
forwarding is working? I performed the query from the router itself
and it seems like it's working because 192.168.1.101 (The DNS server)
did respond. But with those weird responses, you never get a clear cut
answer; it just keeps saying the same thing: unexpected reply from
192.168.1.101, expected from the...

Here's the router's pf.conf:

#   $OpenBSD: pf.conf,v 1.35 2008/02/29 17:04:55 reyk Exp $
#
# See pf.conf(5) and /usr/share/pf for syntax and examples.
# Remember to set net.inet.ip.forwarding=1 and/or net.inet6.ip6.forwarding=1
# in /etc/sysctl.conf if packets are to be forwarded between interfaces.

# macros
ext_if = re0 # External Interface (169.229.158.0/24)
int_if = xl0 # Internal Interface (192.168.1.0/24)
localnet = $int_if:network
webserver = 192.168.1.50 # Redundant Sun Servers
nameserver = 192.168.1.101 # Dell L400 Celeron
webports = { http , https }
domainport = { domain }
tcp_services = { ssh }
icmp_types = echoreq
carpdevs = { carp0 , carp1 }
syncdev = { re1 }
carp_mcast = 224.0.0.18

# extra tweaks
set skip on lo
set block-policy return
set loginterface $ext_if
scrub in all

# nat
nat on $ext_if from $localnet to any - ($ext_if)
no nat on $int_if proto tcp from $int_if to $localnet
nat on $int_if proto tcp from $localnet to $webserver port $webports - $int_if

# rdr for http
rdr on $ext_if proto tcp from any to any port $webports - $webserver
rdr on $int_if proto tcp from $localnet to $ext_if port $webports - $webserver
rdr on $int_if proto tcp from $localnet to $int_if port $webports - $webserver

# rdr for domain (tcp)
rdr on $ext_if proto tcp from any to any port $domainport - $nameserver
rdr on $int_if proto tcp from $localnet to $ext_if port $domainport -
$nameserver
rdr on $int_if proto tcp from $localnet to $int_if port $domainport -
$nameserver

# rdr for domain (udp)
rdr on $ext_if proto udp from any to any port $domainport - $nameserver
rdr on $int_if proto udp from $localnet to $ext_if port $domainport -
$nameserver
rdr on $int_if proto udp from $localnet to $int_if port $domainport -
$nameserver

# pass rules
block in # Default Deny
pass out keep state
antispoof quick for { lo }
pass in inet proto icmp all icmp-type $icmp_types keep state # Let Ping In
pass in quick on $int_if
pass in on $ext_if inet proto tcp from any to ($ext_if) \
   port $tcp_services flags S/SA keep state # Allow SSH Access from Outside
pass in on $ext_if inet proto tcp from any to $webserver port $webports \
   flags S/SA synproxy state
pass in on $ext_if inet proto udp from any to $nameserver port $domainport
pass in on $ext_if inet proto tcp from any to $nameserver port $domainport \
   flags S/SA synproxy state

# Basic CARP/pfsync pass rules
pass on $carpdevs proto carp keep state
pass quick on $ext_if proto carp \
   from $ext_if:network to $carp_mcast keep state
pass on $syncdev proto pfsync

# Internet-Facing CARP rules
pass in on $ext_if inet proto tcp from any to (carp0) \
   port $tcp_services flags S/SA keep state # Allow SSH Access from Outside
pass in on $ext_if inet proto tcp from any to (carp0) \
   port $webports flags S/SA synproxy state
pass in on $ext_if inet proto udp from any to (carp0) \
   port $domainport
pass in on $ext_if inet proto tcp from any to (carp0) \
   port $domainport flags S/SA synproxy state

# LAN-Facing CARP rules
pass in on $int_if inet proto tcp from $localnet to (carp1) \
   port $tcp_services flags S/SA keep state # Allow SSH Access from Inside
pass in on $int_if inet proto tcp from $localnet to (carp1) \
   port $webports flags S/SA synproxy state
pass in on $int_if inet proto udp from $localnet to (carp1) \
   port $domainport
pass in on $int_if inet proto tcp from $localnet to (carp1) \
   port $domainport flags S/SA synproxy state


Thanks in advance,
Vivek



Re: DNS Server behind Router

2008-11-15 Thread Johan Beisser
Check your bind config. It's likely not configured to respond to
non-local network IP addresses.



On 11/15/08, Vivek Ayer [EMAIL PROTECTED] wrote:
 Hey guys,

 Need some help with DNS queries behind a router. I set up a DNS server
 in my network and it responds when I'm within my network. I tried
 nslookup from localhost on the dns server and also from the LAN and it
 works just find, but when I use the public IP of the router for the
 network, which should forward the port to the DNS server, it says
 unexpected reply from 192.168.1.101, expected from the (public IP,
 which I won't display in this email). Does that mean the port
 forwarding is working? I performed the query from the router itself
 and it seems like it's working because 192.168.1.101 (The DNS server)
 did respond. But with those weird responses, you never get a clear cut
 answer; it just keeps saying the same thing: unexpected reply from
 192.168.1.101, expected from the...

 Here's the router's pf.conf:

 # $OpenBSD: pf.conf,v 1.35 2008/02/29 17:04:55 reyk Exp $
 #
 # See pf.conf(5) and /usr/share/pf for syntax and examples.
 # Remember to set net.inet.ip.forwarding=1 and/or net.inet6.ip6.forwarding=1
 # in /etc/sysctl.conf if packets are to be forwarded between interfaces.

 # macros
 ext_if = re0 # External Interface (169.229.158.0/24)
 int_if = xl0 # Internal Interface (192.168.1.0/24)
 localnet = $int_if:network
 webserver = 192.168.1.50 # Redundant Sun Servers
 nameserver = 192.168.1.101 # Dell L400 Celeron
 webports = { http , https }
 domainport = { domain }
 tcp_services = { ssh }
 icmp_types = echoreq
 carpdevs = { carp0 , carp1 }
 syncdev = { re1 }
 carp_mcast = 224.0.0.18

 # extra tweaks
 set skip on lo
 set block-policy return
 set loginterface $ext_if
 scrub in all

 # nat
 nat on $ext_if from $localnet to any - ($ext_if)
 no nat on $int_if proto tcp from $int_if to $localnet
 nat on $int_if proto tcp from $localnet to $webserver port $webports -
 $int_if

 # rdr for http
 rdr on $ext_if proto tcp from any to any port $webports - $webserver
 rdr on $int_if proto tcp from $localnet to $ext_if port $webports -
 $webserver
 rdr on $int_if proto tcp from $localnet to $int_if port $webports -
 $webserver

 # rdr for domain (tcp)
 rdr on $ext_if proto tcp from any to any port $domainport - $nameserver
 rdr on $int_if proto tcp from $localnet to $ext_if port $domainport -
 $nameserver
 rdr on $int_if proto tcp from $localnet to $int_if port $domainport -
 $nameserver

 # rdr for domain (udp)
 rdr on $ext_if proto udp from any to any port $domainport - $nameserver
 rdr on $int_if proto udp from $localnet to $ext_if port $domainport -
 $nameserver
 rdr on $int_if proto udp from $localnet to $int_if port $domainport -
 $nameserver

 # pass rules
 block in # Default Deny
 pass out keep state
 antispoof quick for { lo }
 pass in inet proto icmp all icmp-type $icmp_types keep state # Let Ping In
 pass in quick on $int_if
 pass in on $ext_if inet proto tcp from any to ($ext_if) \
port $tcp_services flags S/SA keep state # Allow SSH Access from Outside
 pass in on $ext_if inet proto tcp from any to $webserver port $webports \
flags S/SA synproxy state
 pass in on $ext_if inet proto udp from any to $nameserver port $domainport
 pass in on $ext_if inet proto tcp from any to $nameserver port $domainport \
flags S/SA synproxy state

 # Basic CARP/pfsync pass rules
 pass on $carpdevs proto carp keep state
 pass quick on $ext_if proto carp \
from $ext_if:network to $carp_mcast keep state
 pass on $syncdev proto pfsync

 # Internet-Facing CARP rules
 pass in on $ext_if inet proto tcp from any to (carp0) \
port $tcp_services flags S/SA keep state # Allow SSH Access from Outside
 pass in on $ext_if inet proto tcp from any to (carp0) \
port $webports flags S/SA synproxy state
 pass in on $ext_if inet proto udp from any to (carp0) \
port $domainport
 pass in on $ext_if inet proto tcp from any to (carp0) \
port $domainport flags S/SA synproxy state

 # LAN-Facing CARP rules
 pass in on $int_if inet proto tcp from $localnet to (carp1) \
port $tcp_services flags S/SA keep state # Allow SSH Access from Inside
 pass in on $int_if inet proto tcp from $localnet to (carp1) \
port $webports flags S/SA synproxy state
 pass in on $int_if inet proto udp from $localnet to (carp1) \
port $domainport
 pass in on $int_if inet proto tcp from $localnet to (carp1) \
port $domainport flags S/SA synproxy state


 Thanks in advance,
 Vivek