Re: Confusing with 'perl /usr/ports/infrastructure/bin/clean-old-distfiles' script

2018-04-05 Thread Nigel Taylor
On 04/05/18 17:52, Denis wrote:
> I try to clean 'old' distfiles by a command 'perl
> /usr/ports/infrastructure/bin/clean-old-distfiles' without success.
> 
> Getting this:
> 'No history to prune at
> /usr/ports/infrastructure/bin/clean-old-distfiles line 104'
> 
> What ports manipulations I have done before run 'clean-old-distfiles'
> perl script?
> 
> Denis
> 
> 
> 
history file is created by dpb see man dpb
look at dpb option -D HISTORY_ONLY



Re: tcpdump for OpenBSD 6.2?

2018-02-05 Thread Nigel Taylor
On 02/05/18 12:07, Mohammad BadieZadegan wrote:
> Hi all,
> What about tcpdump for OpenBSD 6.2? Why it omitted from the package
> directory?
> 

Maybe because it's in base openbsd. Look here /usr/sbin/tcpdump



Re: Looking for libraries

2017-10-13 Thread Nigel Taylor
On 10/13/17 22:09, Per-Olov Sjöholm wrote:
> Hi
> 
> I just upgraded to 6.2…
> 
> Anyone that knows what packages I can find the following libs in:
> libpthread.so.22.0
> libc.so.88.0
> libm.so.9.0
> 
> I used this https://beta1.bredbandskollen.se/download/bbk_cli_openbsd 
>  on 6.0, but don’t 
> have a copy of the “pkg_info” output from 6.0 that I used.
> 
> 
> 
> Tnx in advance
> /Peo
> 

Any references to those libraries means the packages 
haven't been upgraded to 6.2

Those libraries are not packages but part of the base install for OpenBSD,

>From my snapshots

$ tar -tzvf 6.2/amd64/base62.tgz ./usr/lib/lib{c,pthread,m}.so.*


 
-r--r--r--  1 root bin3429941 Oct  7 13:42 ./usr/lib/libc.so.90.0
-r--r--r--  1 root bin7917716 Oct  7 13:42 ./usr/lib/libc.so.90.0.a
-r--r--r--  1 root bin 589974 Oct  7 13:42 ./usr/lib/libm.so.10.0
-r--r--r--  1 root bin 119192 Oct  7 13:42 
./usr/lib/libpthread.so.24.0

$ tar -tzvf 5.9/amd64/base59.tgz ./usr/lib/lib{c,pthread,m}.so.*  
-r--r--r--  1 root bin3342333 May 10  2016 ./usr/lib/libc.so.87.0
-r--r--r--  1 root bin7851102 May 10  2016 ./usr/lib/libc.so.87.0.a
-r--r--r--  1 root bin 586370 May 10  2016 ./usr/lib/libm.so.9.0
-r--r--r--  1 root bin 168849 May 10  2016 
./usr/lib/libpthread.so.22.0

$ tar -tzvf 6.0/amd64/base60.tgz ./usr/lib/lib{c,pthread,m}.so.*  
-r--r--r--  1 root bin3355741 Mar  4  2017 ./usr/lib/libc.so.89.2
-r--r--r--  1 root bin7852606 Mar  4  2017 ./usr/lib/libc.so.89.2.a
-r--r--r--  1 root bin 588752 Mar  4  2017 ./usr/lib/libm.so.10.0
-r--r--r--  1 root bin 171878 Mar  4  2017 
./usr/lib/libpthread.so.23.0



Re: What to do when package does not work in snapshot?

2017-09-04 Thread Nigel Taylor
On 09/04/17 10:38, Niels Kobschätzki wrote:
> Hi,
> 
> I am using a snapshot which is now 6.2-beta and I wanted to install
> tor-browser. In the dependency-chain is libevent and that cannot be
> resolved. When I try to install libevent-2.0.22p0 directly I get the
> following error:
> 
> # pkg_add libevent-2.0.22p0
> quirks-2.358 signed on 2017-09-01T20:29:18Z
> Can't install libevent-2.0.22p0 because of libraries
> |library crypto.42.0 not found
> | /usr/lib/libcrypto.so.41.2 (system): bad major
> |library ssl.44.1 not found
> | /usr/lib/libssl.so.43.3 (system): bad major
> 
> What do I do in such a case? Tough luck because I am using a
> snapshot/beta or should I send a mail to someone? Who? Do I need to
> install the ports-tree to figure that out? In the FAQ
> there is a link to "Report porblems" which just links to itself.
> 
> The installation of libevent works fine on a server that runs 6.1
> 
> Cheers
> 
> Niels
> 
> 
Need to be more up to date. You snapshot has 41.2 but your installing packages 
built with a later snapshot which had 42.0.

You need to follow current and move to the next snapshot, this happens
as the snapshot and package are updated quite regularly and can be out 
of sync. If adding new snapshot packages, it's best first to upgrade to
current snapshot, do a pkg_add -u to upgrade to packages to match the 
snapshot, then add the new packages. libevent wanting 42 and only have 41.2
tells you the packages are ahead of the snapshot your using. The more common is
the other way around, because the snapshot is created then it takes a
day or so to build packages for that snapshot.



Re: no Gnumeric on i386

2017-08-23 Thread Nigel Taylor
On 08/23/17 16:06, Florian Viehweger wrote:
> Hey,
> 
> is there a specific reason why it is missing on that architecture? I've
> already searched the mailing lists, but I've found nothing relevant.
> 
> Gnumeric disappeared with 6.1 and is not found on snapshots either.
> Are there just problems building the package, because amd64 seems
> to be fine.
> 
Line in Makefile...

BROKEN-i386=fails when merging translations with itstool

stops it being built.



Re: make build fails in libedit

2016-12-08 Thread Nigel Taylor
On 12/08/16 08:19, Nigel Taylor wrote:
> On 12/08/16 07:46, Jan Stary wrote:
>> After and update to yesterday's current/amd64 and a cvs up,
>> make build fails in libedit, saying:
>>
>> cc -O2 -pipe -g -Wall-I. -I/usr/src/lib/libedit -I. 
>> -I/usr/src/lib/libedit -c /usr/src/lib/libedit/chared.c -o chared.o
>> /usr/src/lib/libedit/chared.c:46:20: error: common.h: No such file or 
>> directory
>> /usr/src/lib/libedit/chared.c:47:18: error: fcns.h: No such file or directory
>> /usr/src/lib/libedit/chared.c: In function 'ch_init':
>> /usr/src/lib/libedit/chared.c:418: error: 'ED_UNASSIGNED' undeclared (first 
>> use in this function)
>> /usr/src/lib/libedit/chared.c:418: error: (Each undeclared identifier is 
>> reported only once
>> /usr/src/lib/libedit/chared.c:418: error: for each function it appears in.)
>> /usr/src/lib/libedit/chared.c: In function 'ch_reset':
>> /usr/src/lib/libedit/chared.c:468: error: 'ED_UNASSIGNED' undeclared (first 
>> use in this function)
>> /usr/src/lib/libedit/chared.c: In function 'ch_end':
>> /usr/src/lib/libedit/chared.c:579: error: 'ED_UNASSIGNED' undeclared (first 
>> use in this function)
>> /usr/src/lib/libedit/chared.c: In function 'c_gets':
>> /usr/src/lib/libedit/chared.c:649: warning: implicit declaration of function 
>> 'ed_end_of_file'
>> *** Error 1 in /usr/src/lib/libedit (:41 'chared.o': @cc -O2 
>> -pipe -g -Wall-I. -I/usr/src/lib/libedit -I. -I/usr/src/lib/libe...)
>>
>>
>> Indeed, common.h is not there.
>> Am I missing something obvious?
>>
>>  Jan
>>
>>
> 
> Those files are generated and should be in /usr/obj/lib/libedit
> 
> $ ls -l /usr/obj/lib/libedit/
> total 60
> -rw-rw  1 build  wobj   1832 Dec  8 08:09 common.h
> -rw-rw  1 build  wobj   1317 Dec  8 08:09 emacs.h
> -rw-rw  1 build  wobj   4219 Dec  8 08:09 fcns.h
> -rw-rw  1 build  wobj   2920 Dec  8 08:09 func.h
> -rw-rw  1 build  wobj  11490 Dec  8 08:09 help.h
> -rw-rw  1 build  wobj   2856 Dec  8 08:09 vi.h
> 
> They might not be generated if missed out first stage of building or had
> an earlier permissions issue, the above are from my build today, the
> files do get generated here.
> 
> 
are you following current.html / new dedicated build user instructions?



Re: make build fails in libedit

2016-12-08 Thread Nigel Taylor
On 12/08/16 07:46, Jan Stary wrote:
> After and update to yesterday's current/amd64 and a cvs up,
> make build fails in libedit, saying:
> 
> cc -O2 -pipe -g -Wall -I. -I/usr/src/lib/libedit -I. -I/usr/src/lib/libedit 
> -c /usr/src/lib/libedit/chared.c -o chared.o
> /usr/src/lib/libedit/chared.c:46:20: error: common.h: No such file or 
> directory
> /usr/src/lib/libedit/chared.c:47:18: error: fcns.h: No such file or directory
> /usr/src/lib/libedit/chared.c: In function 'ch_init':
> /usr/src/lib/libedit/chared.c:418: error: 'ED_UNASSIGNED' undeclared (first 
> use in this function)
> /usr/src/lib/libedit/chared.c:418: error: (Each undeclared identifier is 
> reported only once
> /usr/src/lib/libedit/chared.c:418: error: for each function it appears in.)
> /usr/src/lib/libedit/chared.c: In function 'ch_reset':
> /usr/src/lib/libedit/chared.c:468: error: 'ED_UNASSIGNED' undeclared (first 
> use in this function)
> /usr/src/lib/libedit/chared.c: In function 'ch_end':
> /usr/src/lib/libedit/chared.c:579: error: 'ED_UNASSIGNED' undeclared (first 
> use in this function)
> /usr/src/lib/libedit/chared.c: In function 'c_gets':
> /usr/src/lib/libedit/chared.c:649: warning: implicit declaration of function 
> 'ed_end_of_file'
> *** Error 1 in /usr/src/lib/libedit (:41 'chared.o': @cc -O2 
> -pipe -g -Wall -I. -I/usr/src/lib/libedit -I. -I/usr/src/lib/libe...)
> 
> 
> Indeed, common.h is not there.
> Am I missing something obvious?
> 
>   Jan
> 
> 

Those files are generated and should be in /usr/obj/lib/libedit

$ ls -l /usr/obj/lib/libedit/
total 60
-rw-rw  1 build  wobj   1832 Dec  8 08:09 common.h
-rw-rw  1 build  wobj   1317 Dec  8 08:09 emacs.h
-rw-rw  1 build  wobj   4219 Dec  8 08:09 fcns.h
-rw-rw  1 build  wobj   2920 Dec  8 08:09 func.h
-rw-rw  1 build  wobj  11490 Dec  8 08:09 help.h
-rw-rw  1 build  wobj   2856 Dec  8 08:09 vi.h

They might not be generated if missed out first stage of building or had
an earlier permissions issue, the above are from my build today, the
files do get generated here.



Re: Build counter is always zero

2016-11-22 Thread Nigel Taylor
On 11/22/16 13:26, Heiko wrote:
> Hello list members,
> 
> since there is the new build system for the kernel I always have: #0
> 
> $ uname -mnrsv
> OpenBSD any.host.name 6.0 GENERIC.MP#0 amd64
> 
> Is there a way to fix this?
> 
> Thank you in advance
> 
> /Heiko
> 
> 
Later builds I thought fixed the problem.

Yes... the version(s) is held here...

/usr/obj/sys/arch/*/compile/[GR]*/version

I back these up, as I wipe the whole /usr/obj each time, then restore them.



Re: recovery deleted directory

2016-05-07 Thread Nigel Taylor
On 05/07/16 17:30, Max Power wrote:
> Hi guys!
> Is there a way to recover a deleted directory on ffs
> file system in OpenBSD 5.9/amd64...?
> 
> Thanks for reply.
> 
> 
Sometimes it is possible.

sleuthkit, testdisk in ports.



Re: Ruby 1.9.3 package on OpenBSD 5.9 (snapshots) missing

2016-03-19 Thread Nigel Taylor
On 03/19/16 20:14, ML mail wrote:
> Sorry my previous post was sent unfinished. Here again and complete:
> 
> My bad, in my CVS example I had a mistake, here is the correct procedure I 
> used:
> 
> $ cd /usr
> $ cvs -qd anon...@anoncvs.ca.openbsd.org:/cvs get -P ports
> $ cd /usr/ports/lang/ruby
> $ cvs up -r OPENBSD_5_8 1.9
> 
> But nothing happens I also tried from the same directory this command:
> 
> $ cvs up -r OPENBSD_5_8 lang/ruby/1.9
> 
> Then I just get:
> 
> 
> cvs [update aborted]: no such directory `lang/ruby'
> 
> So I am still doing something wrong here but what?
> 
> Regarding Snorby I patched its config/application.rb for the version checker 
> as suggested, this worked but unfortunately ruby core dumps when I run the 
> "bundle exec rake snorby:setup RAILS_ENV=production". By the way I am using 
> the ruby pacakge 2.0 here from OpenBSD.
> 
What I was saying is the change to config/application.rb shows the
current github should work with ruby 2.x, and had been using ruby 2.2 in
the past.

Not to just patch the single file, but use git to fetch the whole
current snorby from github

You could download and extract using this url

https://github.com/Snorby/snorby/archive/master.zip

or you use git clone



This is what I get using cvs, if using a different repository you might
add -d anon...@anoncvs.ca.openbsd.org:/cvs

$ pwd
/usr/ports/lang/ruby
$ cvs -R up -Pd -r OPENBSD_5_8 1.9
cvs update: Updating 1.9
U 1.9/Makefile
U 1.9/distinfo
cvs update: Updating 1.9/patches
U 1.9/patches/patch-common_mk
U 1.9/patches/patch-compile_c
U 1.9/patches/patch-configure
U 1.9/patches/patch-ext_dl_handle_c
U 1.9/patches/patch-ext_openssl_lib_openssl_ssl-internal_rb
U 1.9/patches/patch-ext_tk_extconf_rb
U 1.9/patches/patch-lib_fileutils_rb
U 1.9/patches/patch-lib_rubygems_commands_install_command_rb
U 1.9/patches/patch-lib_rubygems_dependency_installer_rb
U 1.9/patches/patch-lib_rubygems_ext_builder_rb
U 1.9/patches/patch-lib_rubygems_specification_rb
U 1.9/patches/patch-test_openssl_test_ssl_rb
cvs update: Updating 1.9/pkg
U 1.9/pkg/DESCR-dbm
U 1.9/pkg/DESCR-gdbm
U 1.9/pkg/DESCR-main
U 1.9/pkg/DESCR-ri_docs
U 1.9/pkg/DESCR-tk
U 1.9/pkg/MESSAGE-main
U 1.9/pkg/PLIST-dbm
U 1.9/pkg/PLIST-gdbm
U 1.9/pkg/PLIST-main
U 1.9/pkg/PLIST-ri_docs
U 1.9/pkg/PLIST-tk
U 1.9/pkg/UNMESSAGE-main




Then to return things to normal

$ cvs -R up -PdA
cvs update: Updating .
M Makefile.inc
cvs update: Updating 1.8
cvs update: Updating 1.8/patches
cvs update: Updating 1.8/pkg
cvs update: Updating 1.9
cvs update: 1.9/Makefile is no longer in the repository
cvs update: 1.9/distinfo is no longer in the repository
cvs update: Updating 1.9/patches
cvs update: 1.9/patches/patch-common_mk is no longer in the repository
cvs update: 1.9/patches/patch-compile_c is no longer in the repository
cvs update: 1.9/patches/patch-configure is no longer in the repository
cvs update: 1.9/patches/patch-ext_dl_handle_c is no longer in the repository
cvs update: 1.9/patches/patch-ext_openssl_lib_openssl_ssl-internal_rb is
no longer in the repository
cvs update: 1.9/patches/patch-ext_tk_extconf_rb is no longer in the
repository
cvs update: 1.9/patches/patch-lib_fileutils_rb is no longer in the
repository
cvs update: 1.9/patches/patch-lib_rubygems_commands_install_command_rb
is no longer in the repository
cvs update: 1.9/patches/patch-lib_rubygems_dependency_installer_rb is no
longer in the repository
cvs update: 1.9/patches/patch-lib_rubygems_ext_builder_rb is no longer
in the repository
cvs update: 1.9/patches/patch-lib_rubygems_specification_rb is no longer
in the repository
cvs update: 1.9/patches/patch-test_openssl_test_ssl_rb is no longer in
the repository
cvs update: Updating 1.9/pkg
cvs update: 1.9/pkg/DESCR-dbm is no longer in the repository
cvs update: 1.9/pkg/DESCR-gdbm is no longer in the repository
cvs update: 1.9/pkg/DESCR-main is no longer in the repository
cvs update: 1.9/pkg/DESCR-ri_docs is no longer in the repository
cvs update: 1.9/pkg/DESCR-tk is no longer in the repository
cvs update: 1.9/pkg/MESSAGE-main is no longer in the repository
cvs update: 1.9/pkg/PLIST-dbm is no longer in the repository
cvs update: 1.9/pkg/PLIST-gdbm is no longer in the repository
cvs update: 1.9/pkg/PLIST-main is no longer in the repository
cvs update: 1.9/pkg/PLIST-ri_docs is no longer in the repository
cvs update: 1.9/pkg/PLIST-tk is no longer in the repository
cvs update: 1.9/pkg/UNMESSAGE-main is no longer in the repository
cvs update: Updating 2.0
cvs update: Updating 2.0/patches
cvs update: Updating 2.0/pkg
cvs update: Updating 2.1
cvs update: Updating 2.1/patches
cvs update: Updating 2.1/pkg
cvs update: Updating 2.2
cvs update: Updating 2.2/patches
cvs update: Updating 2.2/pkg
cvs update: Updating 2.3
cvs update: Updating 2.3/patches
cvs update: Updating 2.3/pkg
cvs update: Updating files
cvs update: Updating patches
cvs update: Updating pkg



Re: Ruby 1.9.3 package on OpenBSD 5.9 (snapshots) missing

2016-03-19 Thread Nigel Taylor
On 03/19/16 17:46, ML mail wrote:
> Hi Stuart,
> 
> Thanks for explaining. I now did the following
> 
> $ cd /usr
> $ cvs -qd anon...@anoncvs.ca.openbsd.org:/cvs get -P ports
> $ cvs up -r OPENBSD_5_8 1.9
> 
That wasn't what you were instructed to do you have to
cd /usr/ports/lang/ruby

So you see the 1.8 2.1 sub directories, then your adding 1.9 or
from /usr/ports
cvs up -r OPENBSD_5_8 lang/ruby/1.9


You said snorby

Requirements

Snort
Ruby >= 1.9.2
Rails >= 3.0.0

Version check fix found on github

 module Snorby

   # Check Ruby Version
-  unless RUBY_VERSION.match(/^2.2/)
+  unless RUBY_VERSION.starts_with?("2.") ||
RUBY_VERSION.starts_with?("1.9")
 puts "Snorby requires Ruby version 1.9.x"
 puts "We suggest using Ruby Version Manager (RVM) https://rvm.io/
to install the newest release"
 exit 1

My me it used to look for ruby 2.2 only when not found tells you it
wants 1.9.x has been changed to look for either 2.x or 1.9.x, still they
haven't fixed.

So why trying to use 1.9? Only the 3yr old version looks for 1.9, not
what's current in github.

> 
> but after running the last command there is simply no output and the 1.9 
> directory has not been downloaded from CVS. Am I missing something? Btw I am 
> running OpenBSD 5.9 (snapshots).
> 
> Regards
> ML
> 
> On Saturday, March 19, 2016 10:05 AM, Stuart Henderson  
> wrote:
> On 2016-03-18, ML mail  wrote:
>> You mean I should just take the ports.tar.gz file of OpenBSD 5.8 and compile 
>> ruby 1.9 from there? 
>>
>>
>> I don't really know where is this CVS attic that you mention. 
> 
> This is probably the best way (which includes the security fix in -stable):
> 
> $ cd /usr/ports/lang/ruby
> $ cvs up -r OPENBSD_5_8 1.9
> U 1.9/Makefile
> U 1.9/distinfo
> U 1.9/patches/patch-common_mk
> U 1.9/patches/patch-compile_c
> U 1.9/patches/patch-configure
> U 1.9/patches/patch-ext_dl_handle_c
> U 1.9/patches/patch-ext_openssl_lib_openssl_ssl-internal_rb
> U 1.9/patches/patch-ext_tk_extconf_rb
> U 1.9/patches/patch-lib_fileutils_rb
> U 1.9/patches/patch-lib_rubygems_commands_install_command_rb
> U 1.9/patches/patch-lib_rubygems_dependency_installer_rb
> U 1.9/patches/patch-lib_rubygems_ext_builder_rb
> U 1.9/patches/patch-lib_rubygems_specification_rb
> U 1.9/patches/patch-test_openssl_test_ssl_rb
> U 1.9/pkg/DESCR-dbm
> U 1.9/pkg/DESCR-gdbm
> U 1.9/pkg/DESCR-main
> U 1.9/pkg/DESCR-ri_docs
> U 1.9/pkg/DESCR-tk
> U 1.9/pkg/MESSAGE-main
> U 1.9/pkg/PLIST-dbm
> U 1.9/pkg/PLIST-gdbm
> U 1.9/pkg/PLIST-main
> U 1.9/pkg/PLIST-ri_docs
> U 1.9/pkg/PLIST-tk
> U 1.9/pkg/UNMESSAGE-main



Re: php-fpm package missing in snapshot

2016-02-11 Thread Nigel Taylor
On 02/11/16 08:52, Alex Greif wrote:
> Hi,
> 
> few days ago I realized that the php-fpm packages are not in the ftp
> mirrors (in snapshot/packages).  The packages are missing for amd64
> and also i386.
> 
> I searched in the web, but cannot find a reason for its absence.
> 
> Does anybody have an idea why the package is not built, or when they
> will reappear?
> 
> thanks,
> ALex.
> 
> 
>From cvs log

revision 1.51
date: 2016/01/07 18:06:45;  author: sthen;  state: Exp;  lines: +2 -3;
commitid: H4kokcanIaMGNWvF;
merge php-fpm into the main php packages, making things easier for
httpd/nginx/lighttpd users.  ok robert@




Re: Strange 'pkg_add -ui' log

2016-02-11 Thread Nigel Taylor
On 02/11/16 19:36, Stefan Wollny wrote:
> Hi there!
> 
> Running amd64-current I update packages usually from
> http://ftp.hostserver.de/
> 
> This evening system.tgz-files still date Feb 9th.
> $ dmesg | grep Open
> OpenBSD 5.9 (GENERIC.MP) #1870: Mon Feb  8 17:34:23 MST 2016
> 
> So I run 'pkg_add -ui' leading to the folĺowing output:
> 
> 
> quirks-2.197 signed on 2016-02-10T20:34:24Z
> quirks-2.197->2.197: ok
> cups-libs-2.1.2->2.1.3 forward dependencies:
> | Dependency of cups-2.1.2 on cups-libs-=2.1.2 doesn't match
> Merging cups-2.1.2->2.1.3 (ok)
> Detected loop, merging sets ok
> | cups-2.1.2+cups-libs-2.1.2->cups-2.1.3+cups-libs-2.1.3
> | cups-filters-1.8.1->1.8.1
> | ghostscript-9.07p2-a4-gtk->9.07p2-a4-gtk
> cups-2.1.2+cups-filters-1.8.1+cups-libs-2.1.2+ghostscript-9.07p2-a4-gtk->cups-2.1.3+cups-filters-1.8.1+cups-libs-2.1.3+ghostscript-9.07p2-a4-gtk:
> ok

This is problem that has been known about and reported, I reported
myself a few days ago, and have made previous reports. Other have
reported also.

Happens mostly when the cups package is updated, but I seen it with a
gstreamer update.

To fix your need to run pkg_check the /var/db/pkg will be in quite a
mess after this. Can take a long time running pkg_check.

Once finished pkg_check then rerun pkg_add -u to complete the updating
of packages, then pkg_delete /var/db/pkg/.lib* to clean up



Re: kerberos

2015-12-09 Thread Nigel Taylor
On 12/09/15 17:45, Friedrich Locke wrote:
> I am a little outdated, but was heimdal removed from the bsd world or it
> was just moved from the base system to the ports collection ?
> 
> Thanks.
> 
> 
Ports

/usr/ports/security/heimdal



Re: amd64-current (evening of Oct. 24th) make build failed

2015-10-24 Thread Nigel Taylor
On 10/24/15 21:47, Stefan Wollny wrote:
> Hi there,
> 
> as no updated kernel for amd64-current exists I compiled one based on
> the latest sources (9 p.m. Berlin-time):
> 
> Afterwards I followed the faq and did:
> doas rm -rf /usr/obj/*
> cd /usr/src
> doas make obj
> cd etc/
> doas env DESTDIR=/ make distrib-dirs
> cd ..
> doas make build
> 
> The build process comes to an end with the following:
> ===> usr.sbin/ndp
> cc -O2 -pipe-DINET6 -I/usr/src/usr.sbin/ndp -c
> /usr/src/usr.sbin/ndp/ndp.c
> /usr/src/usr.sbin/ndp/ndp.c: In function 'ifinfo':
> /usr/src/usr.sbin/ndp/ndp.c:970: error: 'struct nd_ifinfo' has no member
> named 'chlim'
> *** Error 1 in usr.sbin/ndp (:87 'ndp.o')
> *** Error 1 in usr.sbin (:48 'all')
> *** Error 1 in . (:48 'all')
> *** Error 1 in /usr/src (Makefile:82 'build')
> 
> Anything I can do beside wait for updated sources?
> Any additional info necessary to investigate further?
> 
> Best,
> STEFAN
> 

There is an update in CVS to fix this.



Re: Postfix compilation error.

2014-11-11 Thread Nigel Taylor
On 11/11/14 20:51, giacomo wrote:
 Hi at all,
 I try to compile postfix on OpenBSD 5.6 with command
 
 # env FLAVOR=mysql sasl2 make install
 
 for install it with mysql and sasl2 support. I have compiled it 
 in OpenBSD 5.5 and 5.4 without problem. My system is upgrated from 5.4 to 5.5 
 and to 5.6 
 The compiler show:
 
 /usr/local/lib/mysql -lmysqlclient -L/usr/local/lib -Wl,-R/usr/local/lib 
 -lpcre 
 /usr/local/lib/libmysqlclient.so.23.0: warning: stpcpy() is dangerous; do not 
 use it
 ../../lib/libutil.a(concatenate.o)(.text+0x77): In function `concatenate':
 : warning: strcpy() is almost always misused, please use strlcpy()
 ../../lib/libutil.a(concatenate.o)(.text+0x88): In function `concatenate':
 : warning: strcat() is almost always misused, please use strlcat()
 ../../lib/libglobal.a(mail_conf_time.o)(.text+0x46): In function 
 `set_mail_conf_time_int':
 : warning: sprintf() is often misused, please use snprintf()
 /usr/bin/ld: warning: libcrypto.so.23.0, needed by 
 /usr/local/lib/libsasl2.so.3.0, may conflict with libcrypto.so.30.0
 /usr/bin/ld: warning: libroken.so.1.0, needed by 
 /usr/local/lib/libsasl2.so.3.0, not found (try using -rpath or -rpath-link)
 /usr/bin/ld: warning: libssl.so.20.0, needed by 
 /usr/local/lib/libmysqlclient.so.23.0, may conflict with libssl.so.27.0
 /usr/lib/libgssapi.so.7.1: undefined reference to `ct_memcmp'
 /usr/lib/libkrb5.so.20.0: undefined reference to `rk_cloexec_dir'
 /usr/lib/libasn1.so.20.0: undefined reference to `rk_strpoolcollect'
 /usr/lib/libasn1.so.20.0: undefined reference to `rk_hex_encode'
 /usr/lib/libkrb5.so.20.0: undefined reference to `rk_strupr'
 /usr/lib/libkrb5.so.20.0: undefined reference to `net_write'
 /usr/lib/libasn1.so.20.0: undefined reference to `rk_hex_decode'
 /usr/lib/libkrb5.so.20.0: undefined reference to `rk_bswap16'
 /usr/lib/libkrb5.so.20.0: undefined reference to `rk_bswap32'
 /usr/lib/libgssapi.so.7.1: undefined reference to `rk_cloexec_file'
 /usr/lib/libasn1.so.20.0: undefined reference to `rk_strpoolprintf'
 /usr/lib/libkrb5.so.20.0: undefined reference to `arg_printusage'
 /usr/lib/libkrb5.so.20.0: undefined reference to `roken_gethostby_setup'
 /usr/lib/libkrb5.so.20.0: undefined reference to `rk_estrdup'
 /usr/lib/libkrb5.so.20.0: undefined reference to `rk_dns_free_data'
 /usr/lib/libkrb5.so.20.0: undefined reference to `base64_encode'
 /usr/lib/libkrb5.so.20.0: undefined reference to `rk_socket_sockaddr_size'
 /usr/lib/libkrb5.so.20.0: undefined reference to `rk_dns_lookup'
 /usr/lib/libkrb5.so.20.0: undefined reference to `rk_socket_get_port'
 /usr/lib/libkrb5.so.20.0: undefined reference to `net_read'
 /usr/lib/libkrb5.so.20.0: undefined reference to `rk_strlwr'
 /usr/lib/libgssapi.so.7.1: undefined reference to `issuid'
 /usr/lib/libkrb5.so.20.0: undefined reference to `rk_cloexec'
 /usr/lib/libkrb5.so.20.0: undefined reference to `roken_gethostbyname'
 /usr/lib/libkrb5.so.20.0: undefined reference to `getarg'
 /usr/lib/libkrb5.so.20.0: undefined reference to `rk_strsep_copy'
 /usr/lib/libkrb5.so.20.0: undefined reference to `parse_time'
 /usr/lib/libkrb5.so.20.0: undefined reference to `rk_dns_srv_order'
 collect2: ld returned 1 exit status
 *** Error 1 in src/master (Makefile:72 'master')
 *** Error 1 in 
 /usr/ports/pobj/postfix-2.12.20140701-sasl2-mysql/postfix-2.12-20140701 
 (Makefile:83 'update')
 *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2727 
 '/usr/ports/pobj/postfix-2.12.20140701-sasl2-mysql/.build_done')
 *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1922 
 '/usr/ports/packages/i386/all/postfix-2.12.20140701-sasl2-mysql.tgz')
 *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2475 
 '_internal-package')
 *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2455 'package')
 *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1939 
 '/var/db/pkg/postfix-2.12.20140701-sasl2-mysql/+CONTENTS')
 *** Error 1 in /usr/ports/mail/postfix/snapshot 
 (/usr/ports/infrastructure/mk/bsd.port.mk:2455 'install')  
  
 What is the problem? Has been lost something? 
 
 Thanks.
 
 

Kerberos was removed, upgrading needed to remove old libraries.

See the final steps of the upgrade..

http://www.openbsd.org/faq/upgrade56.html#final

The port for Kerberos is here..

security/heimdal



Re: current snapshot (7/16) missing files in /etc

2014-07-19 Thread Nigel Taylor
On 07/19/14 07:54, Richard wrote:
 I found several files missing from a clean install of the snapshot of 
 7/16/2014:
 
 /etc/ntpd.conf
 /etc/rc.local
 /etc/mtree/BSD.local.dist
 
 I just copied these from a 5.5 installation, but a newbie would have 
 trouble...
 
 The /etc/mtree/BSD.local.dist file was discovered missing by doing a 
 make update-plist inside a /usr/ports directory.
 
 rich...@aaazen.com
 
 Richard Narron
 -
 Corruption is not the #1 priority of the Police Commissioner.  His job
 is to enforce the law and fight crime.
   -- P.B.A. President E. J. Kiernan
 
 


For /etc/mtree/BSD.local.dist

$ cd /usr/ports/infrastructure/
$ grep -r BSD.local.dist .
./lib/OpenBSD/FS.pm:OpenBSD::Mtree::parse($mtree, '/usr/local', 
'/etc/mtree/BSD.local.dist');
./package/find-plist-issues:OpenBSD::Mtree::parse($mtree, '/usr/local', 
'/etc/mtree/BSD.local.dist');
./bin/check-common-dirs:OpenBSD::Mtree::parse($mtree, '/usr/local', 
'/etc/mtree/BSD.local.dist');

Still references to BSD.local.dist in the ports tree..


Moved into the Attic... 15 July...

$ ls -lrt /cvs/src/etc/mtree/Attic/
total 184
-r--r--r--  1 cvsync  cvsync  14157 Jul 11 11:58 4.4BSD.var,v
-r--r--r--  1 cvsync  cvsync  54244 Jul 11 11:58 4.4BSD.usr,v
-r--r--r--  1 cvsync  cvsync   7773 Jul 11 11:58 4.4BSD.root,v
-r--r--r--  1 cvsync  cvsync  10583 Jul 15 10:14 BSD.local.dist,v


From cvs log

description:

revision 1.16
date: 2014/07/15 09:14:50;  author: espie;  state: dead;  lines: +1 -1;  
commitid: VM74ohHqnmCx3IOP;
folded back into 4.4BSD.dist
removed to unconfuse devs

okay aja, theo


I see nothing in current that tells those following current to remove 
/etc/mtree/BSD.local.dist
the problem will only be seen on new installations.




Some have been moved into examples

$ tar -tzf base56.tgz ./etc/examples
./etc/examples
./etc/examples/bgpd.conf
./etc/examples/chio.conf
./etc/examples/dhcpd.conf
./etc/examples/dvmrpd.conf
./etc/examples/exports
./etc/examples/ftpchroot
./etc/examples/hostapd.conf
./etc/examples/hosts.lpd
./etc/examples/ifstated.conf
./etc/examples/iked.conf
./etc/examples/inetd.conf
./etc/examples/ipsec.conf
./etc/examples/ldapd.conf
./etc/examples/ldpd.conf
./etc/examples/mixerctl.conf
./etc/examples/mrouted.conf
./etc/examples/ntpd.conf
./etc/examples/ospf6d.conf
./etc/examples/ospfd.conf
./etc/examples/pf.conf
./etc/examples/printcap
./etc/examples/rbootd.conf
./etc/examples/rc.local
./etc/examples/rc.securelevel
./etc/examples/rc.shutdown
./etc/examples/relayd.conf
./etc/examples/remote
./etc/examples/ripd.conf
./etc/examples/sasyncd.conf
./etc/examples/sensorsd.conf
./etc/examples/snmpd.conf
./etc/examples/sysctl.conf
./etc/examples/wsconsctl.conf
./etc/examples/ypldap.conf

ntpd.conf and rc.local should be there under examples on 5.6


There is another problem is building from cvs

$ ls -lrt /etc/examples
total 8
-rw-r--r--  1 root  wheel   240 Jul 12 13:07 printcap
-rw-r--r--  1 root  wheel  1850 Jul 12 13:07 remote

The examples don't get placed in /etc/examples by
building userland, likely as before this could have
replaced existing configurations.



Re: Sysmerge problem with xetc56.tgz on July 16 amd64 snapshot

2014-07-17 Thread Nigel Taylor
On 07/17/14 02:50, Kent Fritz wrote:
 # sysmerge -x xetc56.tgz
 === Fetching file:///root/xetc56.tgz
 === Fetching file:///root/SHA256.sig
 === Verifying xetc56.tgz against /etc/signify/openbsd-56-base.pub
 === Populating temporary root under /var/tmp/sysmerge.CJzwPVyHXg/temproot
 tar: WARNING! These patterns were not matched:
 ./usr/share/sysmerge/xetcsum
  ERROR: xetc56.tgz: badly formed xetc set, lacks
 ./usr/share/sysmerge/xetcsum
 
 Indeed, there's no /usr at all in the tarball.  Clue-stick welcome if
 I missed some key warning...
 
 Thanks,
 
 Kent.
 
 
Problem was found and fixed, your need a later snapshot



Re: libssl 25?

2014-06-19 Thread Nigel Taylor
On 06/19/14 13:17, Gustav Fransson Nyvell wrote:
 Hi,
 
 Question 1)
 Yes, yes, I know I messed up. Any idea how I can fix this?
 
 $ sudo pkg_add -va f1spirit
 Update candidates: quirks-1.146 - quirks-1.146 (ok)
 |No change in quirks-1.146No pkgname in packing-list for
 py-gobject3-common-3.10.2
 Can't install f1spirit-0.1615p0 because of libraries
 |library curl.24.3 not found
 | /usr/local/lib/libcurl.so.24.2 (curl-7.34.0p0): minor is too small
 |library ssl.25.0 not found
 | /usr/lib/libssl.so.20.0 (system): bad major
 | /usr/lib/libssl.so.24.1 (system): bad major
 ...
 
 $ uname -a
 OpenBSD uncouth.nyvell.se 5.5 GENERIC.MP#3 amd64
 
 $ ls /usr/lib/libssl*
 /usr/lib/libssl.a  /usr/lib/libssl.so.24.1
 /usr/lib/libssl.so.20.0/usr/lib/libssl_p.a
 
 How do I install ssl.25.0?
 
 Running -current.
 

/usr/lib/libssl is in the base so you go to an OpenBSD version that
matches the packages. As running current that's an upgrade to a more
recent snapshot.

 Question 2)
 apm(8) only seems to get one stab at changing settings. Once is okay, I
 do apm -H or apm -C, but then I have to do /etc/rc.d/apmd restart to
 change it again. Not sure where to get debug data, it only logs
 speedstep activity...
 
 //Gustav



Re: Problem compiling kde4/libs

2014-06-08 Thread Nigel Taylor
On 06/09/14 01:16, STeve Andre' wrote:
 Trying to compile kde4's libs I get the below error.  I see it's related
 to the recent ssl changes, but I don't see what I need to do to get
 around this.  The system is 5.5-current, compiled on June 4th.  I
 love the GNU messasge, too. ;-)
 
 What am I missing here?  I haven't found anything about this.
 
 Thanks, STeve Andre'
 
 
 /usr/ports/pobj/kdelibs-4.11.5/build-amd64/lib/libkdecore.so.50.1:
 warning: strcpy() is almost always misused, please use strlcpy()
 /usr/local/lib/qt4/libQtCore.so.9.0: warning: rand_r() isn't random;
 consider using arc4random()
 /usr/local/lib/qt4/libQtCore.so.9.0: warning: rand() isn't random;
 consider using arc4random()
 /usr/local/lib/qt4/libQtCore.so.9.0: warning: srand() seed choices are
 invariably poor
 /usr/ports/pobj/kdelibs-4.11.5/build-amd64/lib/libkdecore.so.50.1:
 warning: strcat() is almost always misused, please use strlcat()
 /usr/ports/pobj/kdelibs-4.11.5/build-amd64/lib/libkdecore.so.50.1:
 warning: sprintf() is often misused, please use snprintf()
 /usr/local/lib/libglib-2.0.so.4000.0: warning: stpcpy() is dangerous GNU
 crap; don't use it
 /usr/local/lib/libglib-2.0.so.4000.0: warning: vsprintf() is often
 misused, please use vsnprintf()
 /usr/lib/libkrb5.so.20.0: undefined reference to `RAND_egd_bytes'
 collect2: ld returned 1 exit status
 ninja: build stopped: subcommand failed.
 *** Error 1 in . (/usr/ports/devel/cmake/cmake.port.mk:31 'do-build':
 @cd /usr/ports/pobj/kdelibs-4.11.5/build-amd64  exec /usr/bin/env -i...)
 *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2691
 '/usr/ports/pobj/kdelibs-4.11.5/build-amd64/.build_done')
 *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1890
 '/usr/ports/packages/amd64/all/kdelibs-4.11.5p8.tgz')
 *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2443
 '_internal-package')
 *** Error 1 in /usr/ports/x11/kde4/libs
 (/usr/ports/infrastructure/mk/bsd.port.mk:2423 'package')
 
 
See current

2014/04/22 - kerberosV removed

libkrb5 should have been removed



Re: Man page for tmpfs

2013-12-17 Thread Nigel Taylor
On 12/17/13 12:28, Daniel Ouellet wrote:
 I saw the commit on Undeadly.org for the new tmpfs.
 
 Very nice!
 
 I was looking to find the man page to test it or just try it for fun,
 but I couldn't find one yet.
 
 http://www.openbsd.org/cgi-bin/man.cgi?query=tmpfsapropos=0sektion=0manpath=OpenBSD+Currentarch=i386format=html
 
 Am I missing something. When I don't see a man page or have something
 weird on my systems, I usually look at the latest one in case something
 changed before doing a new update.
 
 Not a big deal, just wondering what I may have miss.
 
 Is it classify under something else?
 
 The old mfs, fstab or mount didn't point anything on it either.
 
 Many thanks for the continuous improvements!
 
 Daniel
 
 
man mount_tmpfs

Only in the recent snapshots.

If not then CVS, cd /usr/src/sbin/mount_tmpfs
for source / man page



Re: Intel hd4000 - no Xvideo support

2013-10-10 Thread Nigel Taylor
On 10/10/13 16:37, Remco wrote:
 Otto Kurunczi wrote:
 
 First of all, your attachments were removed (information needs to be inline).
 
 I am new with OpenBSD, installed 5.3. Modified xorg.conf too.
 Mplayer cannot play videos as there is no Xvideo
 support for my video card. Dmesg and xorg.conf attached.
 How can I get Xvideo support? Thank you.

 
 Personally I use VLC which has options to select other types of video output, 
 like e.g. SDL. Is this possible with mplayer ?
 

 I've got an ATI card that appears to lack XVideo support as well. For me 
 Xvideo support is available when I run CURRENT which has newer video drivers 
 for my particular hardware. For your Intel hardware there are possibly 
 improved drivers in either the upcoming 5.4 release or CURRENT. (Lacking the 
 hardware, I can't confirm this myself)
 
 [demime 1.01d removed an attachment of type application/octet-stream which
 [had a name of dmesg.boot]

 [demime 1.01d removed an attachment of type application/octet-stream which
 [had a name of xorg.conf]
 Since this information was automatically removed, no one can tell if 
 something 
 is misconfigured.
 
 
mplayer -vo sdl

might be what your looking for...

Using Nvidia card, also lacks Xvideo support. I use mplayer, with -vo
sdl option.



Re: Snapshots of Sep 24

2013-09-27 Thread Nigel Taylor
On 09/27/13 21:44, Dmitrij D. Czarkoff wrote:
 Hello!
 
 I was updating my amd64 laptop with September 24 snapshot's bsd.rd, and it
 didn't let me select etc and xetc sets - they were simply missing in the list
 of sets. Is it a glitch? Or may be I missed some news?
 
Install allows the selection of etc / xetc.
Upgrade does not give those as an option. parts of etc / xetc are
updated using sysmerge. You might have changed the configuration, you
don't want to lose those changes.


See FAQ 4.5.1

,
Upgrade: Install a new set of install files on this machine, but do not
overwrite any configuration information, user data, or additional
programs. No disk formatting is done, nor are the /etc or /var
directories overwritten. A few important notes:



See FAQ 4.7

..
The etc53.tgz and xetc53.tgz sets are not installed as part of an
upgrade, only as part of a complete install, so any customizations you
make will not be lost. You will have to update your /etc, /dev and /var
directories manually.


It's been this way for a long time.



Re: vtigercrm package

2013-09-16 Thread Nigel Taylor
On 09/16/13 22:47, Vijay Sankar wrote:
 The vtigercrm package from -current snapshot and ports, which uses PHP
 5.4 gives the error
 
 Cannot re-assign auto-global variable _FILES
 
 From various vtiger forums, it looks like this is a problem with their
 software and nothing with our ports. So I tried to build after setting
 MODPHP_VERSION to 5.3 but that failed with the following:
 
 ===  Building package for vtigercrm-5.4.0p1
 Create /home/ports/packages/amd64/no-arch/vtigercrm-5.4.0p1.tgz
 Error: duplicate item in packing-list
 /var/www/vtigercrm/vtlib/ModuleDir/5.3.0
 Error: duplicate item in packing-list
 /var/www/vtigercrm/vtlib/ModuleDir/5.3.0/CallRelatedList.php
 Error: duplicate item in packing-list
 /var/www/vtigercrm/vtlib/ModuleDir/5.3.0/CustomView.php
 Error: duplicate item in packing-list
 /var/www/vtigercrm/vtlib/ModuleDir/5.3.0/Delete.php
 Error: duplicate item in packing-list
 /var/www/vtigercrm/vtlib/ModuleDir/5.3.0/DetailView.php
 Error: duplicate item in packing-list
 /var/www/vtigercrm/vtlib/ModuleDir/5.3.0/DetailViewAjax.php
 Error: duplicate item in packing-list
 /var/www/vtigercrm/vtlib/ModuleDir/5.3.0/EditView.php
 
 Please let me know if you can give me any clues on how to make this work.
 
 Thanks very much,
 
 Vijay
 
 
 Vijay Sankar, M.Eng., P.Eng.
 ForeTell Technologies Limited
 vsan...@foretell.ca
 
 
 -
 This message was sent using ForeTell-POST 4.9
 
 
$ cd /usr/ports/www/vtigercrm/pkg/PLIST
$ grep /CallRelatedList.php  PLIST
vtigercrm/modules/Accounts/CallRelatedList.php
vtigercrm/modules/Campaigns/CallRelatedList.php
vtigercrm/modules/Contacts/CallRelatedList.php
vtigercrm/modules/Emails/CallRelatedList.php
vtigercrm/modules/Faq/CallRelatedList.php
vtigercrm/modules/HelpDesk/CallRelatedList.php
vtigercrm/modules/Invoice/CallRelatedList.php
vtigercrm/modules/Leads/CallRelatedList.php
vtigercrm/modules/Potentials/CallRelatedList.php
vtigercrm/modules/PriceBooks/CallRelatedList.php
vtigercrm/modules/Products/CallRelatedList.php
vtigercrm/modules/PurchaseOrder/CallRelatedList.php
vtigercrm/modules/Quotes/CallRelatedList.php
vtigercrm/modules/SalesOrder/CallRelatedList.php
vtigercrm/modules/Vendors/CallRelatedList.php
vtigercrm/modules/Webmails/CallRelatedList.php
vtigercrm/vtlib/ModuleDir/5.0.4/CallRelatedList.php
vtigercrm/vtlib/ModuleDir/5.1.0/CallRelatedList.php
vtigercrm/vtlib/ModuleDir/5.2.0/CallRelatedList.php
vtigercrm/vtlib/ModuleDir/5.3.0/CallRelatedList.php
vtigercrm/vtlib/ModuleDir/${MODPHP_VERSION}.0/CallRelatedList.php


When MODPHP_VERSION gets replaced by 5.3 it creates duplicates that
weren't there before for 5.4.

Could be a problem that the PLIST was generated and should have been
5.4.0 rather than the subsituted ${MODPHP_VERSION}.0 happens now and
then, the 5.x.x is more likely the vtigercrm versions than the
MODPHP_VERSION - and why would you supply copies for other versions of
PHP, why use 5.4.0 and not just 5.4, looks wrong but needs Maintainer to
look and agree. If so needs fixing in the ports.



Re: /var/cache/fontconfig ??

2013-06-08 Thread Nigel Taylor
On 06/09/13 00:03, Jason McIntyre wrote:
 On Sat, Jun 08, 2013 at 01:43:45PM -0400, Jiri B wrote:
 Hello,

 I haven't found any comment in hier(7) about /var/cache and
 there seems to be only dir - 'fontconfig'.

 I'm not sure how this directory was created, probably during
 install of the xbaseXX set.

 Shouldn't this in /var/db ? If not, then hier(7) probably
 needs update.

 jirib

 
 you're correct that it's installed by xbaseXX, and that hier(7) should
 document it. however, i'm unsure of what its purpose is exactly, so if
 some kind developer can elaborate, i'll be happy to add an entry (cookie
 given for succint one line description that i can paste).
 
 jmc
 
 

See fc-cache(1)


These files are generated by fc-cache and contain maps from file
names to font properties. They are read by the fontconfig
library at application startup to locate appropriate fonts.



Re: ATI Radeon HD6570

2012-11-23 Thread Nigel Taylor
On 11/23/12 14:00, rustyBSD wrote:
 Hi,
 I have an ATI Radeon HD6570 card. Dmesg gives me:
 vga1 at pci1 dev 0 function 0 vendor ATI, unknown product 0x6759 rev 0x00
 and the driver used seems to be VESA.
 
 I naturally changed to:
 
 --- src/sys/dev/pci/pcidevs   2012-11-17 16:42:29.0 +0100
 +++ src/sys/dev/pci/pcidevs   2012-11-23 12:58:50.357249029 +0100
 @@ -1262,6 +1262,7 @@
  product ATI RADEON_X700_SE   0x5e4f  Radeon X700 SE
  product ATI RADEON_X700_SE_S 0x5e6f  Radeon X700 SE Sec
  product ATI RADEON_HD66700x6758  Radeon HD 6670
 +product ATI RADEON_HD65700x6759  Radeon HD 6570
  product ATI RADEON_HD58000x6899  Radeon HD 5800
  product ATI RADEON_HD57000x68b8  Radeon HD 5700
  product ATI RADEON_HD56700x68d8  Radeon HD 5670
 
 
 But it's still not recognized. I looked at pci/drm/radeon_drv.c,
 but I'm not sure I can add my card, as - according to man radeon -
 it's a REDWOOD chip, which doesn't seem to be supported on openbsd.
 
 My questions are:
 Are REDWOOD chips supported ?
 If yes, how can I get my card work correctly ?
 If no, is there any support planned ?
 
 Thanks
 
 
That is not a REDWOOD chip, it's TURKS, and both should be supported,
the man page is wrong 6570 occurs both under REDWOOD and TURKS.
REDWOOD are 5x50 series. Could still be in the wrong chip family.

The Xorg.0.log should tell you if the card is detected, it can be
rejected for some other reason, then fall back to next driver.

Do you get a message in Xorg.0.log like,
GPU only supported with KMS, using vesa instead.



Re: ATI Radeon HD6570

2012-11-23 Thread Nigel Taylor
On 11/23/12 16:56, rustyBSD wrote:
 Le 23/11/2012 17:35, Nigel Taylor a écrit :
 That is not a REDWOOD chip, it's TURKS, and both should be supported,
 
 Ahh yes I didn't see this in xorg.0.log
 
 the man page is wrong 6570 occurs both under REDWOOD and TURKS.
 REDWOOD are 5x50 series. Could still be in the wrong chip family.

 The Xorg.0.log should tell you if the card is detected, it can be
 rejected for some other reason, then fall back to next driver.

 Do you get a message in Xorg.0.log like,
 
 Yes, I have:
 
 [94.501] (II) VESA: driver for VESA chipsets: vesa
 [94.502] (II) GPU only supported with KMS, using vesa instead.
 [94.502] (II) Loading sub module vbe
 
 GPU only supported with KMS, using vesa instead.
 
 I don't know if I'm wrong, but if I add
product ATI RADEON_HD6570  0x6759  Radeon HD 6570
 it should at least appear in dmesg, no ?
 
 
Should appear in the dmesg, providing the include files have been
updated, then you rebuilt the kernel and install it. By running make the
pcidevs change should cause pcidevs.h pcidevs_data.h to be updated.

You may need two product ID's, there may be audio also, as below the
graphics is 0x6758 and audio is 0xaa90.

pcidevs:product ATI RADEON_HD6670   0x6758  Radeon HD 6670
pcidevs:product ATI RADEON_HD6670_HDA   0xaa90  Radeon HD 6670 Audio

pcidevs.h:#define   PCI_PRODUCT_ATI_RADEON_HD6670   0x6758
/* Radeon HD 6670 */
pcidevs.h:#define   PCI_PRODUCT_ATI_RADEON_HD6670_HDA   0xaa90
/* Radeon HD 6670 Audio */

pcidevs_data.h: PCI_VENDOR_ATI, PCI_PRODUCT_ATI_RADEON_HD6670,
pcidevs_data.h: Radeon HD 6670,
pcidevs_data.h: PCI_VENDOR_ATI, PCI_PRODUCT_ATI_RADEON_HD6670_HDA,
pcidevs_data.h: Radeon HD 6670 Audio,




There is a test in radeon_probe that the chip family SUMO and those
after will only be supported with KMS, that includes the TURKS family of
chips.

The confusion between REDWOOD and TURKS is 6570 is TURKS, the mobility
version of 6570 is REDWOOD and should be 6570M.



Re: ATI Radeon HD6570

2012-11-23 Thread Nigel Taylor
On 11/23/12 21:26, rustyBSD wrote:
 Le 23/11/2012 21:44, Nigel Taylor a écrit :
 On 11/23/12 16:56, rustyBSD wrote:
 Le 23/11/2012 17:35, Nigel Taylor a écrit :
 That is not a REDWOOD chip, it's TURKS, and both should be supported,

 Ahh yes I didn't see this in xorg.0.log

 the man page is wrong 6570 occurs both under REDWOOD and TURKS.
 REDWOOD are 5x50 series. Could still be in the wrong chip family.

 The Xorg.0.log should tell you if the card is detected, it can be
 rejected for some other reason, then fall back to next driver.

 Do you get a message in Xorg.0.log like,

 Yes, I have:

 [94.501] (II) VESA: driver for VESA chipsets: vesa
 [94.502] (II) GPU only supported with KMS, using vesa instead.
 [94.502] (II) Loading sub module vbe

 GPU only supported with KMS, using vesa instead.

 I don't know if I'm wrong, but if I add
product ATI RADEON_HD65700x6759  Radeon HD 6570
 it should at least appear in dmesg, no ?


 Should appear in the dmesg, providing the include files have been
 updated, then you rebuilt the kernel and install it. By running make the
 pcidevs change should cause pcidevs.h pcidevs_data.h to be updated.

 You may need two product ID's, there may be audio also, as below the
 graphics is 0x6758 and audio is 0xaa90.

 pcidevs:product ATI RADEON_HD6670   0x6758  Radeon HD 6670
 pcidevs:product ATI RADEON_HD6670_HDA   0xaa90  Radeon HD 6670 Audio

 pcidevs.h:#define   PCI_PRODUCT_ATI_RADEON_HD6670   0x6758
 /* Radeon HD 6670 */
 pcidevs.h:#define   PCI_PRODUCT_ATI_RADEON_HD6670_HDA   0xaa90
 /* Radeon HD 6670 Audio */

 pcidevs_data.h: PCI_VENDOR_ATI, PCI_PRODUCT_ATI_RADEON_HD6670,
 pcidevs_data.h: Radeon HD 6670,
 pcidevs_data.h: PCI_VENDOR_ATI, PCI_PRODUCT_ATI_RADEON_HD6670_HDA,
 pcidevs_data.h: Radeon HD 6670 Audio,




 There is a test in radeon_probe that the chip family SUMO and those
 after will only be supported with KMS, that includes the TURKS family of
 chips.

 The confusion between REDWOOD and TURKS is 6570 is TURKS, the mobility
 version of 6570 is REDWOOD and should be 6570M.





 
 So, what do I do ?
 Here is the full dmesg, I should have post it before
 
 
 OpenBSD 5.2-current (GENERIC.MP) #2: Fri Nov 23 22:13:59 CET 2012
 root@JackBSD:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 real mem = 2144862208 (2045MB)
 avail mem = 2065338368 (1969MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.5 @ 0x9f000 (58 entries)
 bios0: vendor American Megatrends Inc. version 2202 date 08/19/2010
 bios0: ASUSTeK Computer INC. M4A77T
 acpi0 at bios0: rev 2
 acpi0: sleep states S0 S1 S3 S4 S5
 acpi0: tables DSDT FACP APIC MCFG OEMB SRAT HPET SSDT
 acpi0: wakeup devices PCE2(S4) PCE3(S4) PCE4(S4) PCE5(S4) PCE6(S4) PCE7(S4) 
 PCE9(S4) PCEA(S4) RLAN(S4) PCEB(S4) PCEC(S4) SBAZ(S4) PS2M(S4) PS2K(S4) 
 UAR1(S4) P0PC(S4) UHC1(S4) UHC2(S4) UHC3(S4) USB4(S4) UHC5(S4) UHC6(S4) 
 UHC7(S4)
 acpitimer0 at acpi0: 3579545 Hz, 32 bits
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: AMD Athlon(tm) II X3 455 Processor, 3315.29 MHz
 cpu0: 
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC
 cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
 64b/line 16-way L2 cache
 cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
 cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
 cpu0: AMD erratum 721 detected and fixed
 cpu0: apic clock running at 200MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: AMD Athlon(tm) II X3 455 Processor, 3314.90 MHz
 cpu1: 
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC
 cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
 64b/line 16-way L2 cache
 cpu1: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
 cpu1: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
 cpu1: AMD erratum 721 detected and fixed
 cpu2 at mainbus0: apid 2 (application processor)
 cpu2: AMD Athlon(tm) II X3 455 Processor, 3314.90 MHz
 cpu2: 
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC
 cpu2: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
 64b/line 16-way L2 cache
 cpu2: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
 cpu2: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
 cpu2: AMD erratum 721 detected and fixed
 ioapic0 at mainbus0: apid

Re: NDOutils 1.5 on OpenBSD 5.0

2012-02-09 Thread Nigel Taylor
On 02/09/12 13:14, Stuart Henderson wrote:
 On 2012-02-09, Alvaro Mantilla Gimenez alv...@alvaromantilla.com wrote:
 Hi Stuart,

 El 08/02/12 20:09, Stuart Henderson escribis:
 On 2012-02-08, Alvaro Mantilla Gimenez alv...@alvaromantilla.com wrote:
 Hi,

   I am trying to install NDOutils 1.5 on OpenBSD 5.0 amd64. I am having
 a weird error during compilation.
 Not really weird, your include search path is wrong. Look at where
 gcc is searching and compare to where the files are.
 Are we talking about this error?

 /usr/bin/ld: /tmp//ccdrJBOI.o: relocation R_X86_64_32 can not be used
 when making a shared object; recompile with -fPIC
 /tmp//ccdrJBOI.o: could not read symbols: Bad value
 collect2: ld returned 1 exit status
 
 Oh I didn't get that far down; that error message from the linker
 is pretty clear though..
 
 I am not sure if this is something autogenerated by configure command
 or it is something I should change...somewhere...or just a GCC issue
 related with the platform (amd64).
 
 Yes you'll need to change the compiler flags to use -fPIC
 
 Also, I research about this and it seems it is related with amd64
 only...other 64 bits platforms seems not have any issues like this.

   I would like to know if somebody on
 this list has NDOutils 1.5 running with Nagios (from ports).
 No but icinga + idoutils is in ports/packages and should work ok.
 (the core program and classic aka nagios-style-but-nicer cgi web
 interface work well; idoutils has seen a bit less testing but should
 also work, the icinga-web port isn't quite finished yet but my
 uncommitted diffs are not far off).
 Thanks for the tip about icinga + idoutils. I will test those too.
 
 Personally I'm not going to spend much time on nagios problems
 but am a bit more interested in any problems with running icinga on
 OpenBSD. btw, I find that upstream icinga developers are usually
 quite responsive too.
 
 

If you search there are patches to get a 1.4 version working...

http://www.kernel-panic.it/openbsd/nagios/nagios5.html#nagios-5.3.1

You need to patch at least include/config.h.in

/usr/local/bin/mysql_config --include returns the include path, it's no longer 
a configure option...

$ mysql_config --include
-I/usr/local/include/mysql
$ 

That path is correct so the config.h generated from config.h.in is wrong, you 
can get around this, combined with the previous patches. 

env CFLAGS=-g -O2 -I/usr/local/include -fPIC ./configure --disable-pgsql 
--enable-mysql
make



Re: Trouble with large files in current snapshot

2011-11-27 Thread Nigel Taylor
On 11/27/11 20:35, Ted Unangst wrote:
 On Sun, Nov 27, 2011, Pieter Verberne wrote:
 On Sun, 27 Nov 2011 12:21:49 +0100, pet...@schwertfisch.de wrote:
 After upgrading to current (snapshot from Nov. 25) OpenBSD seems to
 be
 choking on large (2GB) files (tested with GENERIC.MP and GENERIC):
 
 Was it this change?
 
 http://www.openbsd.org/cgi-bin/cvsweb/src/sys/kern/vfs_syscalls.c.diff?r1=1.179;r2=1.180
 
 
Hi,

Problem is in sys/kern/vfs_vnops.c. Fix is now in CVS.

Nigel



Re: How to destroy softraid partition

2011-11-18 Thread Nigel Taylor
On 11/18/11 13:29, Ivo Chutkin wrote:
 Hi all,
 
 How can I destroy softraid partition on disk?
 I was playing with sofraid, now I want to install fresh copy on same disk.
 When I try to delete raid partition disklebel reports:
 
 disklebel: ioctl DIOCWDINFO: Open partition would move or shrink
 disklebel: unable to write lebel
 
 How can I delete this partition?
 
 It is snapshot from 16.11.2011. I am not able to extract dmesg, it is HP
 microserver with no com port.
 
 Thanks for the help,
 Ivo
 
 
Hi,

I recently hit the same problem, when trying to change a partition. I
booted using bsd.rd then I could do what I wanted with disklabel.

Nigel



Re: I can use snapshots packages in a release?

2011-10-24 Thread Nigel Taylor
On 10/24/11 22:29, Zantgo wrote:
 What happens is that usually we talk about unified and synchronized to the
 manual, but I have not seen anything about the packages, then my question is,
 I can use packet-release snapshots?, ie have my
 PKG_PATH =.../snapshots/packages.
 
 Zantgo
 
 
http://www.openbsd.org/faq/faq15.html

FAQ 15 - The OpenBSD packages and ports system

http://www.openbsd.org/faq/faq15.html#Easy

FAQ 15.2.2 - Making things easy: PKG_PATH

..
Of course, if you are using snapshots, you will replace 4.9 with
snapshots

http://www.openbsd.org/faq/faq15.html#NoFun

http://www.openbsd.org/faq/faq15.html#Latest



Re: Cannot boot OpenBSD on a Dell Zune 400

2011-10-16 Thread Nigel Taylor
On 10/16/11 17:20, Christer Solskogen wrote:
 On Sun, Oct 16, 2011 at 5:58 PM, Christer Solskogen
 christer.solsko...@gmail.com wrote:

 Then this happend:
 boot boot hd0a:/bsd
 booting hd0a:/bsd: /

 And it stops there. This is with the most recent snapshot.
 
 And now I installed again, but with auto layout of the partitions. And
 now the machine boots. Is there a limit of how big / can be?
 The machine have a 1TB disk. The attempt that failed I created a
 root-fs that was 90% of the disk (and swap for the rest).
 
 
 
Hi,

From FAQ 14.8 What are the issues regarding large drives with OpenBSD?

The boot/installation kernels only support FFS, not FFS2, so key system
partitions (/, /usr, /var, /tmp) should not be FFS2, or severe
maintenance problems can arise (there should be no reason for those
partitions to be that large, anyway). For this reason, very large
partitions should only be used for non-system partitions, for example,
/home, /var/www/, /bigarray, etc.



Re: Resizing partitions on expanded vmware disk

2011-08-20 Thread Nigel Taylor

On 08/20/11 11:05, Yannis Milios wrote:

Ok i created a new scsi hd (30gb) and put it as second disk on vm.
Booted OpenBSD and on boot prompt i gave boot sd0a:/bsd.rd
Then i choose (I) for installation and selected the 2nd disk (sd1).Using
disklabel it automatically created all partitions and i just resized f:
(/usr) partition and gave it extra space by shrinking k: partition (/home)
saved the settings but i did not proceed to the installation,i just reboot
the vm.
I booted normally on sd0 and ran disklabel -h sd0 and then disklabel -h sd1
and i confirmed that partitions are exactly the same on both disks with the
exception of f: (/usr) which now is bigger.So far so good...now i reboot
again boot sd0a/bsd.rd and i select (S) shell option.At this point i am a
bit confused how i will mount the 2 disks and copy all the contents from sd0
to sd1 by using cp command? thank you again




On Sat, Aug 20, 2011 at 11:21 AM, Dmitrij Czarkoffczark...@gmail.comwrote:


The easier way - create a new disc image and use bsd.rd to partition and
label it as needed. When done with it, mount all of Your volumes and use tar
or cp to populate the new image. A side effect of this approach is that You
can test the new image before loosing the old one.




cp does not preserve hard links tar or pax should be used.
You should do something like this to mount and copy..

mount /dev/sd0a /mnt
mount /dev/sd0k /mnt/home
mount /dev/sd0f /mnt/usr
... mount other partitions for disk sd0

mount /dev/sd1a /mnt2
mount /dev/sd1k /mnt2/home
mount /dev/sd1f /mnt2/usr
... mount other partitions for disk sd1

cd /mnt
pax -rw -p e . /mnt2
or tar -cf - . | tar -xphf - -C /mnt2

/usr/mdec/installboot /mnt2/boot /usr/mdec/biosboot sd1



Re: No sound with ATI SBx00 HD Audio

2011-07-27 Thread Nigel Taylor
On 07/27/11 21:42, Christiano F. Haesbaert wrote:
 I found out the datasheet for 0x4383
 
 http://developer.amd.com/assets/43009_sb7xx_rrg_pub_1.00.pdf
 
 I've no knowledge of PCI to debug it though.
 
 
Hi,

I have a Gigabyte GA-880GA-UD3H based on the same chip set, the sound
works. But I used the HD 4250 internal graphics/audio, I don't have any
extra graphics card, from the dmesg you appear to have a HD 5700 card
and HD 5700 audio.

Extract from ny dmesg ..
vga1 at pci1 dev 5 function 0 ATI Radeon HD 4250 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
azalia0 at pci1 dev 5 function 1 ATI Radeon HD 4200 HD Audio rev 0x00: msi
azalia0: no supported codecs
...
azalia1 at pci0 dev 20 function 2 ATI SBx00 HD Audio rev 0x40: apic 2
int 16
azalia1: codecs: Realtek/0x0892
audio0 at azalia1

Just possible that the internal, and card are conflicting/mixed up in
some way.

Regards

Nigel Taylor



Re: No sound with ATI SBx00 HD Audio

2011-07-27 Thread Nigel Taylor
On 07/27/11 23:57, Christiano F. Haesbaert wrote:
 On Wed, Jul 27, 2011 at 11:36:26PM +0100, Nigel Taylor wrote:
 On 07/27/11 21:42, Christiano F. Haesbaert wrote:
 I found out the datasheet for 0x4383

 http://developer.amd.com/assets/43009_sb7xx_rrg_pub_1.00.pdf

 I've no knowledge of PCI to debug it though.


 Hi,

 I have a Gigabyte GA-880GA-UD3H based on the same chip set, the sound
 works. But I used the HD 4250 internal graphics/audio, I don't have any
 extra graphics card, from the dmesg you appear to have a HD 5700 card
 and HD 5700 audio.

 Extract from ny dmesg ..
 vga1 at pci1 dev 5 function 0 ATI Radeon HD 4250 rev 0x00
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 azalia0 at pci1 dev 5 function 1 ATI Radeon HD 4200 HD Audio rev 0x00: msi
 azalia0: no supported codecs
 ...
 azalia1 at pci0 dev 20 function 2 ATI SBx00 HD Audio rev 0x40: apic 2
 int 16
 azalia1: codecs: Realtek/0x0892
 audio0 at azalia1

 Just possible that the internal, and card are conflicting/mixed up in
 some way.

 
 Hmm maybe I'll try removing the hd 5700, how old is your snapshot ?
 
 
Hi,

I built from CVS, it's just over one day old, I rechecked the sound
before sending first e-mail, and I had sound working previously some
months ago. It's not the system I use for listening to things.

Regards

Nigel Taylor



Re: xf86 driver won't compile

2011-07-20 Thread Nigel Taylor

On 07/20/11 16:06, David Coppa wrote:

On Wed, Jul 20, 2011 at 4:59 PM, Scott McEachernsc...@blackstaff.ca  wrote:

I think I'm missing something obvious here, so a clue-stick beating would

be

appreciated.

In order to get applications like mplayer to work properly, I need to
compile an ATI Radeon 4200 driver from x.org.  (Thanks to brynet for that
tip.)  That used to work fine, but around mid-May it stopped compiling
(details below).  The configure script output has this slight difference:

$ diff configure.ok configure.failure
88c88
  checking for LIBDRM_RADEON... no
---

checking for LIBDRM_RADEON... yes

132c132
  Kernel modesetting:  no
---

 Kernel modesetting:  yes


I think you need to pass --disable-kms to ./configure

ciao,
david



This is what I use

sh ./configure --prefix=/usr/X11R6 \
--sysconfdir=/etc \
--mandir=/usr/X11R6/man \
--with-xorg-module-dir=/usr/X11R6/lib/modules \
--disable-kms
make
sudo make install

Works with 6.14.2

Regards

Nigel Taylor



Re: new rc.d scripts

2011-07-15 Thread Nigel Taylor

On 07/15/11 20:14, Ted Unangst wrote:

When upgrading to a new snapshot with the rc.d system, how is the rc.d
directory supposed to be populated?  I ran sysmerge and got an /etc/rc
that called these scripts, but no actual scripts.

Is sysmerge supposed to install them?  It didn't.



Hi,

They should be in the base49.tgz

tar -tzf base49.tgz ./etc/rc.d | head
./etc/rc.d
./etc/rc.d/amd
./etc/rc.d/apmd
./etc/rc.d/aucat
./etc/rc.d/bgpd
./etc/rc.d/bootparamd
./etc/rc.d/btd
./etc/rc.d/cron
./etc/rc.d/dhcpd
./etc/rc.d/dhcrelay

This comes from a release I built today, so could be missing in the 
snapshot you used.


Regards

Nigel Taylor



Re: apache ssl behind nat problems

2011-07-11 Thread Nigel Taylor

Hi,

One guess would be the SSL certificate is for your internal hostname, 
not your external hostname. Those connecting to the external hostname, 
reject the connection because the hostname doesn't match the 
certificate. To use both internal and external names you have to create 
certificate under one name and include alternative names / ip addresses 
in the certificate.


Internally on my local network I refer to the my server by it's external 
name. With a pf rule

.
pass in log quick on $int_if inet proto tcp from any to $webext port 
https rdr-to 127.0.0.1 port https

.

If I connect to the internal name / ip address, I get an untrusted 
connection response, because I haven't added the alternatives.


Look in /var/www/logs,
.
[Tue Jul 12 01:14:16 2011] [error] OpenSSL: error:14094412:SSL 
routines:SSL3_READ_BYTES:sslv3 alert bad certificate [Hint: Subject CN 
in certificate not server name or identical to CA!?]
[Tue Jul 12 01:14:19 2011] [error] mod_ssl: SSL handshake failed (server 
new.host.name:443, client 192.168.202.23) (OpenSSL library error follows)
[Tue Jul 12 01:14:19 2011] [error] OpenSSL: error:14094412:SSL 
routines:SSL3_READ_BYTES:sslv3 alert bad certificate [Hint: Subject CN 
in certificate not server name or identical to CA!?]

.


Try connecting with tools like openssl, gnutls

openssl s_client -connect host:port
.
SSL handshake has read 2617 bytes and written 388 bytes
---
New, TLSv1/SSLv3, Cipher is DHE-RSA-AES256-SHA
Server public key is 4096 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
Protocol  : TLSv1
Cipher: DHE-RSA-AES256-SHA
.



Regards

Nigel Taylor

On 07/11/11 22:57, Jacob L. Leifman wrote:

Environment:
  - OpenBSD 4.9, stock (base) apache with self-signed certificate
  - behind a SOHO NAT router (with relevant in-bound redirects)

Problem: non-local SSL connections never complete the handshake
(verified while monitoring the interface with tcpdump, see below)

During troubleshooting I was able to eliminate a few suspects:
  - Regular un-encrypted HTTP (port 80) works every time;
  - https:// from the same LAN (i.e. no NAT) always works;
  - SSH always works (whether local or remote);
  - PF seems to have no bearing -- no difference in behavior whether
enabled, enabled with pass in quick for the remote test host, or even
altogether disabled.

Unfortunately, I cannot eliminate the NAT device and need to find a way
to work with it.

All clues(ticks) are appreciated,
-Jacob.

Sanitized tcpdump -netttvv log:
Jul 11 17:26:39.589073 00:0f:b5:ww:ww:ww 00:01:03:zz:zz:zz 0800 74:
a.b.c.d.37325  192.168.x.y.443: S [tcp sum ok]
2560292710:2560292710(0) win 5840mss 1452,sackOK,timestamp 3005841692
0,nop,wscale 0  (DF) (ttl 45, id 30330, len 60)
Jul 11 17:26:39.590087 00:01:03:zz:zz:zz 00:0f:b5:ww:ww:ww 0800 78:
192.168.x.y.443  a.b.c.d.37325: S [tcp sum ok]
1786229842:1786229842(0) ack 2560292711 win 16384mss
1460,nop,nop,sackOK,nop,wscale 3,nop,nop,timestamp 1751359378
3005841692  (DF) (ttl 64, id 5701, len 64)
Jul 11 17:26:42.584962 00:0f:b5:ww:ww:ww 00:01:03:zz:zz:zz 0800 74:
a.b.c.d.37325  192.168.x.y.443: S [tcp sum ok]
2560292710:2560292710(0) win 5840mss 1452,sackOK,timestamp 3005841992
0,nop,wscale 0  (DF) (ttl 45, id 30331, len 60)
Jul 11 17:26:42.585565 00:01:03:zz:zz:zz 00:0f:b5:ww:ww:ww 0800 78:
192.168.x.y.443  a.b.c.d.37325: S [tcp sum ok]
1786229842:1786229842(0) ack 2560292711 win 16384mss
1460,nop,nop,sackOK,nop,wscale 3,nop,nop,timestamp 1751359384
3005841992  (DF) (ttl 64, id 52775, len 64)
Jul 11 17:26:42.589685 00:01:03:zz:zz:zz 00:0f:b5:ww:ww:ww 0800 78:
192.168.x.y.443  a.b.c.d.37325: S [tcp sum ok]
1786229842:1786229842(0) ack 2560292711 win 16384mss
1460,nop,nop,sackOK,nop,wscale 3,nop,nop,timestamp 1751359384
3005841992  (DF) (ttl 64, id 3806, len 64)
Jul 11 17:26:48.584959 00:0f:b5:ww:ww:ww 00:01:03:zz:zz:zz 0800 74:
a.b.c.d.37325  192.168.x.y.443: S [tcp sum ok]
2560292710:2560292710(0) win 5840mss 1452,sackOK,timestamp 3005842592
0,nop,wscale 0  (DF) (ttl 45, id 30332, len 60)
Jul 11 17:26:48.585435 00:01:03:zz:zz:zz 00:0f:b5:ww:ww:ww 0800 78:
192.168.x.y.443  a.b.c.d.37325: S [tcp sum ok]
1786229842:1786229842(0) ack 2560292711 win 16384mss
1460,nop,nop,sackOK,nop,wscale 3,nop,nop,timestamp 1751359396
3005842592  (DF) (ttl 64, id 4014, len 64)
Jul 11 17:26:48.590024 00:01:03:zz:zz:zz 00:0f:b5:ww:ww:ww 0800 78:
192.168.x.y.443  a.b.c.d.37325: S [tcp sum ok]
1786229842:1786229842(0) ack 2560292711 win 16384mss
1460,nop,nop,sackOK,nop,wscale 3,nop,nop,timestamp 1751359396
3005842592  (DF) (ttl 64, id 59349, len 64)
Jul 11 17:27:00.584563 00:0f:b5:ww:ww:ww 00:01:03:zz:zz:zz 0800 74:
a.b.c.d.37325  192.168.x.y.443: S [tcp sum ok]
2560292710:2560292710(0) win 5840mss 1452,sackOK,timestamp 3005843792
0,nop,wscale 0  (DF) (ttl 45, id 30333, len 60)
Jul 11 17:27:00.584880 00:01:03:zz:zz:zz 00:0f:b5:ww:ww:ww 0800 78:
192.168.x.y.443  a.b.c.d.37325: S [tcp sum ok]
1786229842:1786229842(0

OpenBSD current i386 hangs on boot in lm0.

2011-07-06 Thread Nigel Taylor

Hi,

I updated from OpenBSD current i386, built from CVS 24th March 2011, to 
one built from CVS on 2nd July 2011. The bsd.rd booted, and was used to 
upgrade, on reboot this hung. I noted lm0 was the last line, rebooting 
with the older kernel version the next dmesg line was lm1 detached, and 
the boot completed.


The line in the /var/log/messages for old kernel are:-
/bsd: lm1 at iic0 addr 0x2d: W83781D
/bsd: lm0 at isa0 port 0x290/8: W83781D
/bsd: lm1 detached

Using boot -c with latest bsd, I disabled lm, this booted as normal with 
lm disabled. dmesg is below.


I downloaded the latest snapshot bsd 29th June 2011, booted from this an 
hit the same problem at lm0.


I booted from the bsd built from cvs, using boot -c and disabled just 
lm0, this booted as normal.


Updated from CVS today, and rebuilt the kernel, booted from the new bsd, 
this hung at the same point lm0.


Two other i386 systems are fine, but these don't have the lm device.

Please contact me if anymore information is required, or anything you 
would me to try out.


Regards

Nigel Taylor


OpenBSD 4.9-current (GENERIC) #6: Sat Jul  2 13:30:07 BST 2011
r...@lorien.asterisk.me.uk:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Celeron (GenuineIntel 686-class, 128KB L2 cache) 335 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PSE36,MMX,FXSR

real mem  = 267964416 (255MB)
avail mem = 253394944 (241MB)
User Kernel Config
UKC disable lm
305 lm0 disabled
306 lm* disabled
307 lm* disabled
UKC exit
Continuing...
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 08/01/02, BIOS32 rev. 0 @ 0xf0520
apm0 at bios0: Power Management spec V1.2
pcibios0 at bios0: rev 2.1 @ 0xf/0xdb2
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf0d10/160 (8 entries)
pcibios0: PCI Interrupt Router at 000:04:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0xb000
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82443BX AGP rev 0x03
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0xe400, size 0x400
ppb0 at pci0 dev 1 function 0 Intel 82443BX AGP rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 ATI Rage Magnum rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
piixpcib0 at pci0 dev 4 function 0 Intel 82371AB PIIX4 ISA rev 0x02
pciide0 at pci0 dev 4 function 1 Intel 82371AB IDE rev 0x01: DMA, 
channel 0 wired to compatibility, channel 1 wired to compatibility

wd0 at pciide0 channel 0 drive 0: MAXTOR STM380215A
wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, DVD-ROM GDR8163B, 0L23 ATAPI 
5/cdrom removable

cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 4 function 2 Intel 82371AB USB rev 0x01: irq 5
piixpm0 at pci0 dev 4 function 3 Intel 82371AB Power rev 0x02: SMI
iic0 at piixpm0
w83781d at iic0 addr 0x2d not configured
iic0: addr 0x2d 20=7c 21=5d 22=d8 23=b9 24=ca 25=d5 26=d9 27=22 29=54 
2b=89 2c=70 2d=89 2e=70 2f=ed 30=b0 31=75 32=c5 33=48 34=0a 35=8c 36=4b 
37=63 38=4a 39=c2 3a=33 3b=c4 3c=92 3d=03 3e=00 3f=00 40=01 41=5a 42=0f 
44=7f 45=00 46=40 47=a0 48=2d 49=00 4a=01 4b=40 4c=01 4d=95 4e=80 4f=5c 
50=00 51=7f 52=00 56=00 57=80 58=11 60=7c 61=5d 62=d8 63=b8 64=ca 65=d5 
66=d8 67=22 69=54 6b=89 6c=70 6d=89 6e=70 6f=ed 70=b0 71=75 72=c5 73=48 
74=0a 75=8c 76=4b 77=63 78=4a 79=c2 7a=33 7b=c4 7c=92 7d=03 7e=00 7f=00 
a0=7c a1=5d a2=d8 a3=bc a4=ca a5=d5 a6=da a7=22 a9=54 ab=89 ac=70 ad=89 
ae=70 af=ed b0=b0 b1=75 b2=c5 b3=48 b4=0a b5=8c b6=4b b7=63 b8=4a b9=c2 
ba=33 bb=c4 bc=92 bd=03 be=00 bf=00 c0=01 c1=5a c2=0f c4=7f c5=00 c6=40 
c7=a0 c8=2d c9=00 ca=01 cb=40 cc=01 cd=95 ce=80 cf=5c d0=00 d1=7f d2=00 
d6=00 d7=80 d8=11 e0=7c e1=5d e2=d8 e3=b8 e4=ca e5=d5 e6=d9 e7=22 e9=53 
eb=89 ec=70 ed=89 ee=70 ef=ed f0=b0 f1=75 f2=c5 f3=48 f4=0a f5=8c f6=4b 
f7=63 f8=4a f9=c2 fa=33 fb=c4 fc=92 fd=03 fe=00 ff=00 words 00= 
01= 02= 03= 04= 05= 06= 07=: w83781d
iic0: addr 0x48 01=00 02=4b 03=50 05=00 06=4b 07=50 09=00 0a=4b 0b=50 
0d=00 0e=4b 0f=50 11=00 12=4b 13=50 15=00 16=4b 17=50 19=00 1a=4b 1b=50 
1d=00 1e=4b 1f=50 21=00 22=4b 23=50 25=00 26=4b 27=50 29=00 2a=4b 2b=50 
2d=00 2e=4b 2f=50 31=00 32=4b 33=50 35=00 36=4b 37=50 39=00 3a=4b 3b=50 
3d=00 3e=4b 3f=50 41=00 42=4b 43=50 45=00 46=4b 47=50 49=00 4a=4b 4b=50 
4d=00 4e=4b 4f=50 51=00 52=4b 53=50 55=00 56=4b 57=50 59=00 5a=4b 5b=50 
5d=00 5e=4b 5f=50 61=00 62=4b 63=50 65=00 66=4b 67=50 69=00 6a=4b 6b=50 
6d=00 6e=4b 6f=50 71=00 72=4b 73=50 75=00 76=4b 77=50 79=00 7a=4b 7b=50 
7d=00 7e=4b 7f=50 81=00 82=4b 83=50 85=00 86=4b 87=50 89=00 8a=4b 8b=50 
8d=00 8e=4b 8f=50 91=00 92=4b 93=50 95=00 96=4b 97=50 99=00 9a=4b 9b=50 
9d=00 9e=4b 9f=50 a1=00 a2=4b a3=50 a5=00 a6=4b

Re: OpenBSD current i386 hangs on boot in lm0.

2011-07-06 Thread Nigel Taylor

Hi,

I am using a ASUS P2B motherboard, this has been running OpenBSD since 
2005 could be a few years longer. With no issues other than a hard disk 
failure. There is no multiboot in use, it's not a Medion computer, or 
using a supermicro motherboard.


The common issue is with the lm device hanging during boot with OpenBSD 
current.


Regards

Nigel Taylor

On 07/06/11 16:23, Francois Pussault wrote:

Hi all,

Medion computers, supermicro (many cheap models) motherboards are known as
'not free *unix* compatible'.
Therefore most of supermicro other motherboards just seem to work well with
*linux  *BSD.
Madion are hardware coded to be able only to boot a real windows OS, (even
reactOS often fail to boot correctly), Then you need to boot other OS to have
a
windows installed in first partition(s)  to use a multiboot, but even that
can fail





From: Jeff Rossjr...@openvistas.net
Sent: Wed Jul 06 17:07:40 CEST 2011
To: Nigel Taylornjtay...@asterisk.demon.co.uk, OpenBSD

misc@openbsd.org

Subject: Re: OpenBSD current i386  hangs on boot in lm0.


On 07/06/11 07:47, Nigel Taylor wrote:

Hi,

I updated from OpenBSD current i386, built from CVS 24th March 2011, to
one built from CVS on 2nd July 2011. The bsd.rd booted, and was used to
upgrade, on reboot this hung. I noted lm0 was the last line, rebooting
with the older kernel version the next dmesg line was lm1 detached, and
the boot completed.

The line in the /var/log/messages for old kernel are:-
/bsd: lm1 at iic0 addr 0x2d: W83781D
/bsd: lm0 at isa0 port 0x290/8: W83781D
/bsd: lm1 detached

Using boot -c with latest bsd, I disabled lm, this booted as normal with
lm disabled. dmesg is below.

I downloaded the latest snapshot bsd 29th June 2011, booted from this an
hit the same problem at lm0.

I booted from the bsd built from cvs, using boot -c and disabled just
lm0, this booted as normal.

Updated from CVS today, and rebuilt the kernel, booted from the new bsd,
this hung at the same point lm0.

Two other i386 systems are fine, but these don't have the lm device.

Please contact me if anymore information is required, or anything you
would me to try out.


I reported the same thing in these two messages:

http://marc.info/?l=openbsd-miscm=130755536116000w=2
http://marc.info/?l=openbsd-miscm=130764492616339w=2

This hang happens with the 4 different SuperMicro based motherboards I
have that have the lm chipset.

In the second message referenced above I noted that a snapshot dated May
25 booted normally and I first ran into the problem on June 6 so the
window is fairly small.

However, when I tried building kernels for that range of days I ran into
other problems and haven't been able to get back to it since.

Jeff




Cordialement
Francois Pussault
3701 - 8 rue Marcel Pagnol
31100 ToulouseB
FranceB
+33 6 17 230 820 B  +33 5 34 365 269
fpussa...@contactoffice.fr




Re: OpenBSD current i386 hangs on boot in lm0.

2011-07-06 Thread Nigel Taylor

On 07/06/11 17:04, Chris Cappuccio wrote:

Jeff Ross [jr...@openvistas.net] wrote:


This hang happens with the 4 different SuperMicro based motherboards
I have that have the lm chipset.

In the second message referenced above I noted that a snapshot dated
May 25 booted normally and I first ran into the problem on June 6 so
the window is fairly small.


Yet, a kernel compiled again Jun 6th sources does not display this behvaior

Therefore, it is caused by a change that was in the snapshots--but not 
committed until later

I was out of town for a week, but will now narrow down when the offending code 
was committed since it affects my X7SBL, PDSML, and probably other supermicro 
boards that I use in qty...



Hi,

This might be a different fault to the previous one reported.

I tried a kernel built from CVS using the follwoing dates
6th June Ok.
15th June Ok.
22nd June Hangs.
19th June Ok.
20th June Ok.
21st June Hangs.

The changed between the two dates are :-
cvs -R -q diff -uNp -D 2011/06/20 -D 2011/06/21 | grep Index:
Index: arch/amd64/conf/GENERIC
Index: arch/i386/conf/GENERIC
Index: dev/softraid.c
Index: dev/vnd.c
Index: dev/ata/wd.c
Index: dev/isa/if_lc_isa.c
Index: dev/isa/if_we.c
Index: dev/isa/mcd.c
Index: dev/isa/radiotrack2.c
Index: dev/isa/sf16fmr2.c
Index: dev/isa/wdc_isa.c
Index: dev/microcode/Makefile
Index: dev/pci/if_myx.c
Index: dev/pci/if_myxreg.h
Index: kern/subr_autoconf.c
Index: net/if_pflog.c
Index: net/pf.c
Index: net/pf_norm.c
Index: net/pfvar.h

I think I narrowed this down to kern/subr_autoconf.c, build a kernel 
extract from CVS with a date of 21st June, with kern/subr_autoconf.c 
kept at version 1.64. This booted without hanging.


1.65 log
serialize attach and detach of device sub-trees -- only one device
sub-tree may attach or detach at a time.  attach and detach will sleep
against each other.
this is fixing (working around?) some bizzare corner cases that have
been seen (but not fully diagnosed) where the device trees, disk 
registration

subsystem, and other things could get messed up.  one could argue though
that this serialization is a very good thing; it is easier than adding piles
of locks in various other places.
ok matthew jsing

In the case of lm from dmesg we have,

lm1 at iic0 addr 0x2d: W83781D
lm0 at isa0 port 0x290/8: W83781D
lm1 detached



Regards

Nigel Taylor



Re: ypldap.conf

2011-07-04 Thread Nigel Taylor

Hi,

I wonder if your ldap database is correctly, if openldap server 
/etc/openldap/slapd.conf should contain


suffix dc=ufv,dc=br
rootdn cn=admin,dc=ufy,dc=br

or if ldapd /etc/ldapd.conf

namespace dc=ufv,dc=br {
   rootdn cn=admin,dc=ufy,dc=br

If you included ou=appsrv in the suffix / namespace for example as 
ou=appsrv,dc=ufy,dc=br that wouldn't work.



I setup ldapd, and populated the database (with data used with openldap 
server before). namespace dc=my,dc=internal,dc=local


ldapsearch -H ldapi://%2fvar%2frun%2fldapi -W -D 
cn=admin,dc=my,dc=internal,dc=local -b dc=my,dc=internal,dc=local


185 Entries

ldapsearch -H ldapi://%2fvar%2frun%2fldapi -W -D 
cn=admin,dc=my,dc=internal,dc=local -b dc=my,dc=internal,dc=local 
'(ObjectClass=posixGroup)'


27 Entries

ldapsearch -H ldapi://%2fvar%2frun%2fldapi -W -D 
cn=admin,dc=my,dc=internal,dc=local -b dc=my,dc=internal,dc=local 
'(ObjectClass=posixAccount)'


154 Entries

27 Group + 154 Users + 4 ou's = 185

Your search should have worked.

Regards

Nigel Taylor

On 07/04/11 23:38, Friedrich Locke wrote:

I am trying to set my base dn to the dc=ufv,dc=br but i cannot
retrieve group information, here you have it:

Using the full DN, it works ok!

sioux@gustav$ ldapsearch -x -w XYZ -D cn=ypldap,ou=appsrv,dc=ufv,dc=br
-b ou=group,dc=ufv,dc=br '(objectClass=posixGroup)'

But when i take out ou=group:

sioux@gustav$ ldapsearch -x -w XYZ -D cn=ypldap,ou=appsrv,dc=ufv,dc=br
-b dc=ufv,dc=br '(objectClass=posixGroup)'

It does not work.

Any suggestion(s)?


On Mon, Jul 4, 2011 at 7:09 PM, Nigel Taylor
njtay...@asterisk.demon.co.uk  wrote:

On 07/04/11 21:30, Friedrich Locke wrote:


Hi,

I am trying to get ypldap.conf running and i had a doubt reading
ypldap.conf man page. I configured my ldap server  as:

ou=people,dc=ufv,dc=br holding entries for posixAccount, and
ou=groups,dc=ufv,dc=br holding entries for posixGroup.

AFAIK, ypldap.conf has only a single basedn directive. Due to my
lack of experience i got confused.
I would be glad to learn from your experience implementing ypdalp if
you would like to chare it.

Thanks once more.

Friedrich.



Hi,

ou organizational unit, is only relevant if you have multiple. So for the
search base you can omit the ou, your find all in ObjectClass posixGroup or
posixAccount. If you had posixAccount in an ou=Sales and ou=Engineering and
wanted to restrict the query to one of those ou's then you give the ou.

Rather than groups the ou generally is called group.

The basedn dc=ufv,dc=br is all that is required for more complex you can
put in the filter,
group filter ((ObjectClass=PosixGroup)(ou=group))

as all PosixGroup are in the ou group so ou=group is always true reduces to.

group filter (ObjectClass=PosixGroup)

Example extract from my LDIF file...

dn: ou=people,dc=my,dc=internal,dc=local
objectClass: organizationalUnit
ou: people

dn: ou=group,dc=my,dc=internal,dc=local
objectClass: organizationalUnit
ou: group

.
dn: cn=napops,ou=group,dc=my,dc=internal,dc=local
objectClass: posixGroup
objectClass: top
cn: napops
gidNumber: 5025
memberUid: dmell01
memberUid: npope01
.

dn: uid=npope01,ou=people,dc=my,dc=internal,dc=local
uid: npope01
cn: Neil Pope
objectClass: account
objectClass: posixAccount
objectClass: top
uidNumber: 5058354
gidNumber: 5069
gecos: Neil Pope
homeDirectory: /home/npres01
loginShell: /bin/ksh
.


Regards

Nigel Taylor




Re: ypldap

2011-07-02 Thread Nigel Taylor

On 07/02/11 07:36, Philip Guenther wrote:

On Fri, Jul 1, 2011 at 4:53 PM, Friedrich Locke
friedrich.lo...@gmail.com  wrote:

i would like to deploy ypldap, but i don't know, from what i read in
/etc/rc*, how to tell my system to start ypldap and not start ypserv.
(it, i.e., ypserv keeps starting and starting when i boot my system.


If you installed OpenBSD and ypserv starts on boot, then *YOU* changed
something.

So, what did *YOU* change?  Now, the *obvious* place to look would be
/etc/rc.conf.local, to look for ypserv_flags, but since this is an
open source UNIX, you could have messed this up^W^W^Wconfigured this
in many different ways.  Which did you pick?


Philip Guenther



Hi,

ypserv is started if the domain is present.

/var/yp/`domainname`

Look at the /etc/rc script and ypserv man page.

Would have to check, think I recall removing the /var/yp/`domain` in 
rc.shutdown, to stop ypserv starting, before openldap / ypldap.


I used it on an old server I no longer have.

Regards

Nigel Taylor



Re: Raid configuration help.

2011-06-28 Thread Nigel Taylor
On 06/28/11 01:36, Zeb Packard wrote:
 Hello all, I'm new so if I do anything rude please let me know so I can 
 adjust.
 
 I set up an openbsd file server using sftp, with a raid 1
 configuration and failover with Carp. My plan was to use rsync to sync
 up the file sharing directories and I believe I got a little bit ahead
 of myself when I thought I could rsync the /etc folder to streamline
 the configuration of my servers. It's quite possible that one of my
 systems was broken from an earlier attempt at reinstalling (which
 synced a functional, yet broken configuration with a good system), at
 the time I thought the raid automatically fixed the attempt at
 reinstalling, but after looking at my fstab file I'm pretty certain
 the raid hadn't been functioning properly for a while. (very stable
 system though that fails so gracefully) Anyways, long story short, I
 have a lot of work on that system, I'm not hoping to recover the
 beast, I just want to copy my files off of it and transfer them to a
 working system, but it is booting read-only with /etc/nologin in place
 and I cannot figure out why.
 
 Please help.
 
 Zeb Packard
 
 
Hi,

More details are required - like what type of raid?

softraid, raidframe, or raid controller.

A dmesg would help.

Read-only root partition suggests your in single user mode.
Single user mode is entered if the boot scrip fails, an error is being
detected, for example the root partition fsck failed and needs you to
run fsck manually.

Until you get past single user mode the /etc/nologin will not be removed
by the /etc/rc script.

Look at the dmesg for errors, or any messages on the console.

Overwriting file in /etc could cause all sorts of problems, rc scripts
corrupted could leave you in single user mode for example.


Regards

Nigel Taylor



Re: Raid configuration help.

2011-06-28 Thread Nigel Taylor
On 06/28/11 21:53, Zeb Packard wrote:
 Overwriting file in /etc could cause all sorts of problems, rc
 scripts corrupted could leave you in single user mode for example.
 
 
 Regards
 
 Nigel Taylor
 
 
 Thanks a bunch for the tips and encouragement. I was using the
 tutorial at http://www.argon18.com/raid_openbsd.html This tutorial
 was very useful up until I reached the fstab file, the configuration
 given does not seem to work. My new fstab file is as follows.
 
 /dev/sd0a / ffs rw 1 1 /dev/sd0b none swap sw 0 0 /dev/raid0d /home
 ffs rw,nodev,nosuid,softdep 1 2
 
 using either a full raid map (/dev/raid0a / ...) or mapping /home to 
 /dev/sd0d would cause the system to boot single user or call for
 fsck to be run.
Your putting the raid partitions in the fstab of the system recovery
partition. You want to boot without raid partitions to recover the raiddisk.
 
 Another question regarding the raid0.conf file given in the
 tutorial. It's listed as.
 
 START array 1 2 0 START disks /dev/sd0d /dev/sd1d START layout 128 1
 1 1 START queue fifo 100
 
 My question is why aren't I also raiding the sd0a and sd1a
 partitions?

OpenBSD cannot boot off a RaidFrame disk directly, so what you do is
have a small system boot partition on each disk which is sd0a and sd1a
(backup) 256Mb in the instructions in which a base system is installed.
This contains the bsd which used when OpenBSD boots.

After the initial booting it switches the root partition to the raid
partition raid0a. Normally will display raid0a as the default, but you
could enter sd0a. Or force prompting use boot -a at the Boot prompt.

sd0a / sd1a partitions are for recovery when something goes wrong with
the raid. They are not used during the normal running of the raid
system, apart from the initial boot.

 Does this mean I need to run a dump -0f- command whenever I make
 changes to the root partition?
If you make changes on the partition sd0a then a backup should be made
on sd1a.

You should have Boot boot -a
when prompted for the root partition enter sd0a
Then mount /dev/sd1a /mnt etc as per the article.

 The fstab configuration given in the tutorial gets wiped out on
 reboot. So, I can't assume that part of the tutorial is useful, but
 here's the configuration given for the secondary disk.
The fstab is created on the raid root partition raid0a, this is required

You effectively use the recovery system in sd0a, and mount the raid
system under /mnt

Use dump / restore to copy over the system, then setup the raid
partitions to mount in /mnt/etc/fstab which will become /etc/fstab when
running with the raid disks.

There are two fstab's the one for running the raid system, and the one
for recovering the raid system.
 
 /dev/raid0a / ffs rw 1 1 /dev/raid0b none swap sw 0 0 /dev/raid0d
 /home rw,nodev,nosuid,softdep 1 2
 
 Right now when I add raid0a to fstab it will boot single user, but
 raid0a is not in my raid0.conf file.
raid0.conf is for the raid0 disk that disk contains partitions such a
raid0a. raid0.conf should contain the two partitions sd0d, sd1d which
make up the raid0 disk.


 
 

Note - This is the old raidframe. (OpenBSD tech mail list recently
talked about removing this, you may want to consider switching to softraid).


Regards

Nigel Taylor



Re: i386 current crashes on boot

2011-06-06 Thread Nigel Taylor
On 06/05/11 11:22, Nigel Taylor wrote:
 Hi,
 
 I rebuilt GENERIC.MP from cvs (current 4th June 2011). This crashed on
 boot. I reverted to old bsd.mp from April this booted. I downloaded
 bsd.mp from a mirror site this booted (date 14th May 2011). I downloaded
 a more recent bsd.mp from ftp.openbsd.org (4 June 2011 GENERIC.MP #57),
 this crashed on boot in the same place as built from cvs. Below I have
 typed from screen the panic.
 
 wsdisplay0 at vga1 mux 1:console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 radeibdrm0 at vga1: apic 2 int 18
 drm0 at radeondrm0
 azalia0 at pci1 dev 5 function 1 ATI RS780 HD Audio rev 0x00: msi
 azalia0: no supported codecs
 panic: intr_disestablish: bogus irq 160
 Stopped at Debugger+0x4:  popl  %ebp
 Debugger(d08ebba2,d0bb4a34,d098c3b0,d0bb4a34,d0a5ddb8) at Debuuger+0x4
 panic(d098c3b0,a0,d0a3f4a0,3dc,3dc) at panic+0x5d
 isa_disestablish(0,d68f1480,5d,5,d9bb4a84) at isa_intr_disestabish+0ca
 azalia_pci_detach(d68bea00,0,2000,0,0,a0,d05d3990,d68bea00,d68bea1
 4,5,0,80012900,2000,0,0) at azalia_pci_detach+0x14a
 azalia_pci_attach(d68ae5080,d68bea00,d0bb4b54md03e77db,d05ab9f0) at
 azalia_pci_attach+0x1b9
 config_attach(d68ae580,d09c92a0,d0bb4b54,d05adb70,d0bb4b44) at
 config_attach+0x157
 pci_probe_deveice(d68ae580,80012900,0,0,8ae580) at pci_probe_device+0x420
 pci_enuimerate_bus(d68ae580,0,0,d03e77db,0) at pci_enumerate_bus+0x11c
 config_attach(d6923800,d09c9020,d0bb4c6c,d061e1e0,0) at config_attach+0x157
 ppbattach(d68ae780,d6923800,d0bb4d54,d03e77db,d05ab9f0) at ppbattach+0x2b8
 
 trace
 isa_intr_disestablish
 azailia_pci_detach
 azailia_pci_attach
 config_attach
 pci_probe_device
 pci_enumerate_bus
 config_attach
 ppbattach
 config_attach
 pci_probe_device
 pci_enumerate_bus
 config_attach
 mainbus_attach
 config_attach
 config_rootfound
 cpu_confgiure
 main
 
 ps
PID PPID PGRP UID SFLAGS WAit   COMMAND
 *0   -10   0 7  0x00200swapper
 
 
 dmesg from snapshot downloaded from mirror
 
 OpenBSD 4.9-current (GENERIC.MP) #112: Sat May 14 09:59:17 MDT 2011
 t...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
 cpu0: AMD Athlon(tm) II X2 240e Processor (AuthenticAMD 686-class,
 1024KB L2 cache) 2.81 GHz
 cpu0:
 FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT
 real mem  = 3488739328 (3327MB)
 avail mem = 3421507584 (3263MB)
 mainbus0 at root
 bios0 at mainbus0: AT/286+ BIOS, date 08/04/09, BIOS32 rev. 0 @ 0xf0010,
 SMBIOS rev. 2.5 @ 0x9f400 (69 entries)
 bios0: vendor American Megatrends Inc. version 080014 date 08/04/2009
 bios0: FOXCONN A7GM-S 2.0
 acpi0 at bios0: rev 0
 acpi0: sleep states S0 S3 S4 S5
 acpi0: tables DSDT FACP APIC MCFG OEMB HPET SSDT
 acpi0: wakeup devices PCE3(S4) PCE4(S4) PCE5(S4) PCE6(S4) PCE7(S4)
 PCEB(S4) PCEC(S4) SBAZ(S4) PS2K(S3) PS2M(S3) P0PC(S4) UHC1(S4) UHC2(S4)
 UHC3(S4) USB4(S4) UHC5(S4) UHC6(S4) UHC7(S4) PCE2(S4) PCE9(S4) PCEA(S4)
 PWRB(S3)
 acpitimer0 at acpi0: 3579545 Hz, 32 bits
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: apic clock running at 200MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: AMD Athlon(tm) II X2 240e Processor (AuthenticAMD 686-class,
 1024KB L2 cache) 2.81 GHz
 cpu1:
 FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT
 ioapic0 at mainbus0: apid 2 pa 0xfec0, version 21, 24 pins
 acpimcfg0 at acpi0 addr 0xe000, bus 0-255
 acpihpet0 at acpi0: 14318180 Hz
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus 1 (P0P1)
 acpiprt2 at acpi0: bus -1 (PCE3)
 acpiprt3 at acpi0: bus -1 (PCE4)
 acpiprt4 at acpi0: bus 3 (P0PC)
 acpiprt5 at acpi0: bus -1 (PCE2)
 acpiprt6 at acpi0: bus 2 (PCE9)
 acpiprt7 at acpi0: bus -1 (PCEA)
 acpicpu0 at acpi0: PSS
 acpicpu1 at acpi0: PSS
 acpitz0 at acpi0: critical temperature 60 degC
 acpibtn0 at acpi0: PWRB
 bios0: ROM list: 0xc/0xea00
 pci0 at mainbus0 bus 0: configuration mode 1 (bios)
 pchb0 at pci0 dev 0 function 0 AMD RS780 Host rev 0x00
 ppb0 at pci0 dev 1 function 0 AMD RS780 PCIE rev 0x00
 pci1 at ppb0 bus 1
 vga1 at pci1 dev 5 function 0 ATI Radeon HD 3200 rev 0x00
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 radeondrm0 at vga1: apic 2 int 18
 drm0 at radeondrm0
 azalia0 at pci1 dev 5 function 1 ATI RS780 HD Audio rev 0x00: apic 2
 int 19
 azalia0: no supported codecs
 ppb1 at pci0 dev 9 function 0 AMD RS780 PCIE rev 0x00
 pci2 at ppb1 bus 2
 re0 at pci2 dev 0 function 0 Realtek 8168 rev 0x03: RTL8168D/8111D
 (0x2800), apic 2 int 17, address 00:22:68:80:e9:f7
 rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
 ahci0 at pci0 dev 17 function 0 ATI SBx00 SATA rev 0x00: apic 2 int
 22, AHCI 1.1
 scsibus0 at ahci0: 32 targets
 ohci0 at pci0 dev 18 function 0 ATI SB700 USB rev 0x00: apic 2 int 16,
 version 1.0

i386 current crashes on boot

2011-06-05 Thread Nigel Taylor
 0x00: apic 2 int 17
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 ATI EHCI root hub rev 2.00/1.00 addr 1
ohci2 at pci0 dev 19 function 0 ATI SB700 USB rev 0x00: apic 2 int 18,
version 1.0, legacy support
ohci3 at pci0 dev 19 function 1 ATI SB700 USB rev 0x00: apic 2 int 18,
version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 ATI SB700 USB2 rev 0x00: apic 2 int 19
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 ATI EHCI root hub rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 ATI SBx00 SMBus rev 0x3a: SMI
iic0 at piixpm0
iic0: addr 0x2f 01=33 02=30 03=33 04=30 05=33 06=33 07=33 08=40 09=48
0a=48 0b=03 0c=98 10=00 11=70 12=40 5a=05 5b=10 5c=10 5d=19 5e=34 f0=20
f1=20 f2=02 fa=00 ff=5e words 00= 01=33ff 02=30ff 03=33ff 04=30ff
05=33ff 06=33ff 07=33ff
spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL5
spdmem1 at iic0 addr 0x51: 2GB DDR2 SDRAM non-parity PC2-6400CL5
pciide0 at pci0 dev 20 function 1 ATI SB700 IDE rev 0x00: DMA, channel
0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: SAMSUNG HD501LJ
wd0: 16-sector PIO, LBA48, 476940MB, 976773168 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6
azalia1 at pci0 dev 20 function 2 ATI SBx00 HD Audio rev 0x00: apic 2
int 16
azalia1: codecs: Realtek ALC888
audio0 at azalia1
pcib0 at pci0 dev 20 function 3 ATI SB700 ISA rev 0x00
ppb2 at pci0 dev 20 function 4 ATI SB600 PCI rev 0x00
pci3 at ppb2 bus 3
ohci4 at pci0 dev 20 function 5 ATI SB700 USB rev 0x00: apic 2 int 18,
version 1.0, legacy support
pchb1 at pci0 dev 24 function 0 AMD AMD64 10h HyperTransport rev 0x00
pchb2 at pci0 dev 24 function 1 AMD AMD64 10h Address Map rev 0x00
pchb3 at pci0 dev 24 function 2 AMD AMD64 10h DRAM Cfg rev 0x00
km0 at pci0 dev 24 function 3 AMD AMD64 10h Misc Cfg rev 0x00
pchb4 at pci0 dev 24 function 4 AMD AMD64 10h Link Cfg rev 0x00
usb2 at ohci0: USB revision 1.0
uhub2 at usb2 ATI OHCI root hub rev 1.00/1.00 addr 1
usb3 at ohci1: USB revision 1.0
uhub3 at usb3 ATI OHCI root hub rev 1.00/1.00 addr 1
usb4 at ohci2: USB revision 1.0
uhub4 at usb4 ATI OHCI root hub rev 1.00/1.00 addr 1
usb5 at ohci3: USB revision 1.0
uhub5 at usb5 ATI OHCI root hub rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
it0 at isa0 port 0x2e/2: IT8716F rev 3, EC port 0xe80
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
usb6 at ohci4: USB revision 1.0
uhub6 at usb6 ATI OHCI root hub rev 1.00/1.00 addr 1
mtrr: Pentium Pro MTRR support
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
root on wd0a swap on wd0b dump on wd0b


Regards

Nigel Taylor



Re: No packages 'gnome-utils' in snapshots and build from ports fails

2011-06-03 Thread Nigel Taylor
Hi,

Needs an RB_GENERATE, see devel/libgtop2/files/procmap.c used this at
end of file. Adding this builds, but I get a Seg fault when attempting
running built lsof on amd64.

/*
 * Don't implement address comparison.
 */
static __inline int
no_impl(void *p, void *q)
{
abort(); /* Should not be called. */
return 0;
}


RB_GENERATE(uvm_map_addr, vm_map_entry, daddrs.addr_entry, no_impl);


Regards

Nigel Taylor

On 06/03/11 18:41, Stuart Henderson wrote:
 In gmane.os.openbsd.misc, you wrote:
 On Fri, Jun 03, 2011 at 03:27:37PM +0200, David Coppa wrote:
 On Thu, Jun 2, 2011 at 7:14 PM, Antoine Jacoutot ajacou...@bsdfrog.org 
 wrote:

 I guess you are not current enough to build lsof.

 dproc.c: In function 'process_text':
 dproc.c:539: error: 'struct vm_map' has no member named 'nentries'
 dproc.c:545: error: 'struct vm_map' has no member named 'header'
 dproc.c:547: error: 'struct vm_map_entry' has no member named 'next'
 *** Error code 1

 I'm current (done a make build this morning) and I confirm lsof is
 broken due to vmmap.

 Ariane, please, can you help shedding some light?

 This is the same as procmap (from base) and libgtop (from ports) do.
 They traversed the map using a linked list (in the old allocator this
 list existed). The new allocator only has a tree.

 The easiest way to traverse a map from userspace is to recreate the tree
 in userspace, then use RB_FOREACH to traverse it. This is what is done
 to make libgtop2 work properly.
 See /usr/ports/devel/libgtop2/files/procmap.c for sample code; the
 load_vmmap_entries and unload_vmmap_entries code can be copied verbatim
 and adapted to lsofs idea of kvm_read.

 RB_INIT(root);
 nentries = load_vmmap_entries(server,
 (unsigned long) RB_ROOT(vmspace.vm_map.addr),
 RB_ROOT(root), NULL);
 if (nentries == -1) {
 unload_vmmap_entries(RB_ROOT(root));
 glibtop_error_io_r (server, kvm_read (entry));
 }

 RB_FOREACH(entry, uvm_map_addr, root) {
 /*
  * funky code goes here
  */
 }

 unload_vmmap_entries(RB_ROOT(root));

 The load_vmmap_entries function performs copy from kernel to userland.
 The unload_vmmap_entries is a recursive free() (and must be called if
 the copy fails).
 -- 
 Ariane


 
 Trying the diff below but I'm getting this when linking. Any clues
 as to what I'm missing?
 
 ./lib/liblsof.a(dvch.o)(.text+0x4fe): In function `dcpath':
 : warning: strcpy() is almost always misused, please use strlcpy()
 dproc.o(.text+0x531): In function `gather_proc_info':
 : undefined reference to `uvm_map_addr_RB_MINMAX'
 dproc.o(.text+0x64e): In function `gather_proc_info':
 : undefined reference to `uvm_map_addr_RB_NEXT'
 collect2: ld returned 1 exit status
 *** Error code 1
 
 $OpenBSD$
 --- dialects/n+obsd/dproc.c.orig  Wed May 11 13:54:00 2005
 +++ dialects/n+obsd/dproc.c   Fri Jun  3 18:35:26 2011
 @@ -93,7 +93,88 @@ ckkv(d, er, ev, ea)
  }
  
  
 +
  /*
 + * Download vmmap_entries from the kernel into our address space.
 + * We fix up the addr tree while downloading.
 + *
 + * Returns: the size of the tree on succes, or -1 on failure.
 + * On failure, *rptr needs to be passed to unload_vmmap_entries to free
 + * the lot.
 + */
 +ssize_t
 +load_vmmap_entries(unsigned long kptr,
 +struct vm_map_entry **rptr, struct vm_map_entry *parent)
 +{
 + struct vm_map_entry *entry;
 + unsigned long left_kptr, right_kptr;
 + ssize_t left_sz;
 + ssize_t right_sz;
 +
 + if (kptr == 0)
 + return 0;
 +
 + /* Need space. */
 + entry = malloc(sizeof(*entry));
 + if (entry == NULL)
 + return -1;
 +
 + /* Download entry at kptr. */
 + if (kvm_read (Kd, kptr,
 + (char *)entry, sizeof(*entry)) != sizeof(*entry)) {
 + free(entry);
 + return -1;
 + }
 +
 + /*
 +  * Update addr pointers to have sane values in this address space.
 +  * We save the kernel pointers in {left,right}_kptr, so we have them
 +  * available to download children.
 +  */
 + left_kptr = (unsigned long) RB_LEFT(entry, daddrs.addr_entry);
 + right_kptr = (unsigned long) RB_RIGHT(entry, daddrs.addr_entry);
 + RB_LEFT(entry, daddrs.addr_entry) =
 + RB_RIGHT(entry, daddrs.addr_entry) = NULL;
 + /* Fill in parent pointer. */
 + RB_PARENT(entry, daddrs.addr_entry) = parent;
 +
 + /*
 +  * Consistent state reached, fill in *rptr.
 +  */
 + *rptr = entry;
 +
 + /*
 +  * Download left, right.
 +  * On failure, our map is in a state that can be handled by
 +  * unload_vmmap_entries.
 +  */
 + left_sz = load_vmmap_entries(left_kptr,
 + RB_LEFT(entry, daddrs.addr_entry), entry);
 + if (left_sz == -1)
 + return -1;
 + right_sz = load_vmmap_entries(right_kptr,
 + RB_RIGHT(entry, daddrs.addr_entry), entry

Re: No packages 'gnome-utils' in snapshots and build from ports fails

2011-06-02 Thread Nigel Taylor
Hi,

sysutils/lsof doesn't build because of the changes to
src/sys/uvm/uvm_map.h changed 24 May 2011. There has been no update to
lsof since 14 May 2011, so lsof still needs fixing.


Problems with a number of other packages on amd64 devel/jdk/1.5 build
fails, lang/mono builds but crashes when run) so x11/mono-gtk2 build fails.

see mail misc list thread - vmmap: bad software everywhere
for an explanation.


Regards

Nigel Taylor

On 06/02/11 18:14, Antoine Jacoutot wrote:
 On Thu, 2 Jun 2011, Brett Mahar wrote:
 
 Hi,
 I installed the 5/31/11 i386 snapshot and am installing gnome from
 ports (downloaded ports file from same ftp://ftp.openbsd.org mirror on
 same date).
 
 I guess you are not current enough to build lsof.
 
 I installed eog; gedit; gnome-session; gnome-audio;
 gnome-control-center; gnome-media; gnome-panel; gnome-terminal; and
 nautilus with no problem. Install of gnome-utils failed (error message
 below).

 So I tried to install it from
 ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/packages/i386/ and it is
 not there. Also I tried a few other mirrors and they also do not have
 gnome-utils.

 Has this package been superseded by some other gnome- ?

 Brett.

 ===  Checking files for gnome-utils-2.32.0p3
 `/usr/ports/distfiles/gnome/gnome-utils-2.32.0.tar.bz2' is up to date.
 (SHA256) gnome/gnome-utils-2.32.0.tar.bz2: OK
 ===  gnome-utils-2.32.0p3 depends on: libgtop2-* - not found
 ===  Verifying install for libgtop2-* in devel/libgtop2
 ===  libgtop2-2.28.3p12 depends on: lsof-* - not found
 ===  Verifying install for lsof-* in sysutils/lsof
 ===  Building for lsof-4.83p4
 (cd lib; make DEBUG=-O2 -pipe  CFGF=-DOPENBSDV=4070
 -DN_UNIXV=/dev/ksyms -DHASNFSPROTO -DHASIPv6 -DHAS9660FS=1
 -DHASMSDOSFS=1 -DHASI_E2FS_PTR -DHASEXT2FS=2 -DHASEFFNLINK=i_effnlink
 -DHAS_DINODE_U -DHASI_FFS1 -DHAS_UM_UFS -DHASNCVPID -DUVM
 -DHAS_UVM_INCL -DHAS_SYS_PIPEH -DHASKVMGETPROC2 -DHAS_STRFTIME
 -DLSOF_VSTR=\4.9\)
 cc  -DOPENBSDV=4070 -DN_UNIXV=/dev/ksyms -DHASNFSPROTO -DHASIPv6
 -DHAS9660FS=1 -DHASMSDOSFS=1 -DHASI_E2FS_PTR -DHASEXT2FS=2
 -DHASEFFNLINK=i_effnlink -DHAS_DINODE_U -DHASI_FFS1 -DHAS_UM_UFS
 -DHASNCVPID -DUVM -DHAS_UVM_INCL -DHAS_SYS_PIPEH -DHASKVMGETPROC2
 -DHAS_STRFTIME -DLSOF_VSTR=\4.9\ -I/usr/include -I/sys -O2 -pipe
 -c dproc.c
 dproc.c: In function 'process_text':
 dproc.c:539: error: 'struct vm_map' has no member named 'nentries'
 dproc.c:545: error: 'struct vm_map' has no member named 'header'
 dproc.c:547: error: 'struct vm_map_entry' has no member named 'next'
 *** Error code 1

 Stop in /usr/ports/pobj/lsof-4.83/lsof_4.83/lsof_4.83_src (line 92 of
 /usr/share/mk/sys.mk).
 *** Error code 1

 Stop in /usr/ports/sysutils/lsof (line 2444 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/sysutils/lsof (line 1661 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/sysutils/lsof (line 2232 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/sysutils/lsof (line 2212 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/sysutils/lsof (line 1692 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/sysutils/lsof (line 2212 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/devel/libgtop2 (line 1850 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/devel/libgtop2 (line 1692 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/devel/libgtop2 (line 2212 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/x11/gnome/utils (line 1850 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/x11/gnome/utils (line 2264 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/x11/gnome/utils (line 1661 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/x11/gnome/utils (line 2232 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/x11/gnome/utils (line 2212 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/x11/gnome/utils (line 1692 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/x11/gnome/utils (line 2212 of
 /usr/ports/infrastructure/mk/bsd.port.mk).



Re: amd64 ramdisk_cd, add mount_msdos

2011-05-16 Thread Nigel Taylor
On 05/16/11 10:05, Stuart Henderson wrote:
 Useful for following http://www.openbsd.org/faq/faq4.html#getdmesg,
 amongst other things...  ok?
 
 Index: list.local
 ===
 RCS file: /cvs/src/distrib/amd64/ramdisk_cd/list.local,v
 retrieving revision 1.17
 diff -u -p -r1.17 list.local
 --- list.local12 Oct 2010 23:37:41 -  1.17
 +++ list.local16 May 2011 09:03:57 -
 @@ -5,6 +5,7 @@ LINK  instbin bin/sha256
  
  LINK instbin sbin/ping6
  LINK instbin sbin/rtsol
 +LINK instbin sbin/mount_msdos
  LINK instbin sbin/mount_udf
  
  LINK instbin sbin/dhclient
 
 
Hi,

Already have mount_msdos a little later in the file!

# $OpenBSD: list.local,v 1.17 2010/10/12 23:37:41 deraadt Exp $

# add local links; use bin/sh since instbin has already been unlinked
LINKinstbin bin/sha256


LINKinstbin sbin/ping6
LINKinstbin sbin/rtsol
LINKinstbin sbin/mount_udf

LINKinstbin sbin/dhclient
LINKinstbin sbin/bioctl
LINKinstbin sbin/mount_msdos
LINKinstbin sbin/mount_ext2fs
.



Regards

Nigel Taylor



Re: place xenocara compile output into /scratch

2011-04-09 Thread Nigel Taylor
On 04/09/11 04:57, Amit Kulkarni wrote:
 hi,
 
 how do i redirect a compile of xenocara to say /scratch? i can do that
 easily for userland using
 
 cd /usr/src/etc  env DESTDIR=/scratch make distrib-dirs
 
 i don't want to fiddle too much like changing X11BASE X11ETC just a
 simple way to do it.
 
 thanks
 
 
Hi,

The same way, see FAQ 5.5 Making a release.

This
cd /usr/src/etc  env DESTDIR=/scratch make distrib-dirs

only creates the directory structure under /scratch and doesn't compile userland
into /scratch. Did you miss the rest out?

Compile still goes to /usr/obj or /usr/xobj, what you are possibly referring to
is the install part of the build which takes the compiled from /usr/obj
/usr/xorg and installs into the correct location, the install uses DESTDIR see
man release(8).

Regards

Nigel Taylor



Re: what is the “Online Certificate Status Protocol”

2011-03-09 Thread Nigel Taylor
On 03/09/11 09:30, erikmccaskey64 wrote:
 I use privoxy. In the user.action file i have a redirect rule and a few 
 websites: 
 
 
 { +redirect{s@http://@https://@} }
 .twitter.com
 .facebook.com
 
 
 Ok! it's working great, e.g.: if i visit any *twitter.com URL it gets 
 redirected to HTTPS!
 
 
 But: with wireshark i can see some OCSP packets [ 
 http://en.wikipedia.org/wiki/Online_Certificate_Status_Protocol ]
 
 
 Question: What are these packets? Why aren't there in HTTPS?
 
 
 Is my redirection method with privoxy is secure?
 
 
 Thank you for any tips/opinions!
 
 
Hi,

SSL Certificates chains should be validated before they are used, OCSP is one
method used as part of the validation process, this is done during the
establishment of an SSL connection and is not encrypted. SSL encryption should
only be used once the certificate / public key chain has been validated.

If a certificate chain is compromised you don't want to use it, because someone
might be decrypting the traffic thought to be safe.

Look in the certificates you will find URLs for CRL, and/or OSCP.

Regards

Nigel Taylor



Re: Is it safe to run tcpdump?

2011-03-05 Thread Nigel Taylor
On 03/05/11 12:10, erikmccaskey64 wrote:
 Is it safe to always run tcpdump on the server, e.g.: like this:
 
 
 tcpdump -qn dst net 192.168.1.0/24
 
 
 I need it to audit the network .. :\
 
 
Hi,

Safe No, because according to the above your displaying to the screen. Running
tcpdump requires you to have logged on as root, leaving something running logged
on as root is not the safe way. At least use sudo, or use tcpdump to capture to
a file using -w parameter in the background, something like
$ sudo tcpdump -qn -w /pathto/xxx.pcap dst net 192.168.1.0/24 

Also ensure that there is enough space for xxx.pcap on the filesystem.

tcpdump on OpenBSD uses privilege separation, and switches to _tcpdump user,
chroot'd to /var/empty directory.


Regards

Nigel Taylor



Re: a good audit tool ?

2011-03-04 Thread Nigel Taylor
On 03/04/11 20:34, Francois Pussault wrote:
 Thanks I m going to try that.
 
 From: Alessandro Baggi alessandro.ba...@gmail.com
 Sent: Fri Mar 04 19:59:43 CET 2011
 To: misc@openbsd.org
 Subject: Re: a good audit tool ?


 On 01/03/2011 19:47, Francois Pussault wrote:
 he network are unix-like and some unix computers
 OpenVAS based on nessus
 
 
Hi,

I have been working on a port for OpenVAS v4 for OpenBSD, still only a beta
version. It will not build on OpenBSD without patches, plus it requires another
port not in the ports tree yet, libmicrohttpd-0.9.7.

There was a OpenBSD port for OpenVAS sent to the mail lists for an early
version, since then v2 and v3 of the client just crashed and I never had the
time to work out why.

There are linux or Windows versions and a VM / Live CD of OpenVAS.

Regards

Nigel Taylor



Re: Trouble getting groups through ypldap

2010-10-14 Thread Nigel Taylor
It could be the groups your missing have no members, which fails to output the
group. You can confirm this my adding a user to one of the groups, and see if
the group is displayed. This following change, rather than skipping output of
the group, outputs group with a null list of members.

Regards

Nigel Taylor

$ cvs -R -q -d /cvs diff -u
Index: ldapclient.c
===
RCS file: /cvs/src/usr.sbin/ypldap/ldapclient.c,v
retrieving revision 1.14
diff -u -r1.14 ldapclient.c
--- ldapclient.c6 Jun 2009 05:02:58 -   1.14
+++ ldapclient.c5 Jul 2009 18:18:35 -
@@ -611,7 +611,7 @@
}
} else if (idm-idm_list  F_LIST(i)) {
if (aldap_match_entry(m, attrs[j++],
ldap_attrs) == -1)
-   goto next_grpentry;
+   continue;
if (ldap_attrs[0] == NULL)
goto next_grpentry;
for (k = 0; k = 0  ldap_attrs[k] != NULL; 
k++) {





On 10/14/10 20:15, John Danks wrote:
 I'm attempting to setup OpenLDAP, Samba and ypldap on 4.7. OpenLDAP is
 up and running along with Samba, and I've used the smbldap tools to
 populate the directory.
 
 I'm having trouble getting the full list of LDAP groups with getent.
 At first I ran getent group and didn't see any of the LDAP groups.
 Then I noticed that the ypldap.conf example uses basedn
 ou=Users,dc=domain,dc=tld, so I changed it to basedn
 dc=domain,dc=tld. Now getent group shows only the first of the LDAP
 groups:
 
 # getent group
 ...
 nogroup:*:32766
 nobody:*:32767
 _openldap:*:544
 _dbus:*:572
 _avahi:*:629
 _avahi-autoipd:*:630
 _cups:*:541
 Domain Admins:*:512:root
 
 I ran the equivalent search that ypldap was doing (based on watching
 OpenLDAP in the foreground) and got the full list of groups. So it
 looks like something between OpenLDAP and ypldap isn't working quite
 right. I looked at the changes to ypldap since 4.7 and there doesn't
 seem to be anything relevant.
 
 I'm out of ideas for troubleshooting short of trying a snapshot, which
 I'll try later today.
 
 Any ideas where to look next?
 
 Here's my ypldap.conf:
 
 domain pmh.org
 interval 30
 
 provide map passwd.byname
 provide map passwd.byuid
 provide map group.byname
 provide map group.bygid
 
 directory ldap.pmh.org {
 binddn cn=Manager,dc=pmh,dc=org
 bindcred secret
 #   basedn ou=Users,dc=pmh,dc=org
 basedn dc=pmh,dc=org
 
 passwd filter (objectClass=posixAccount)
 
 attribute name maps to uid
 fixed attribute passwd *
 attribute uid maps to uidNumber
 attribute gid maps to gidNumber
 attribute gecos maps to cn
 attribute home maps to homeDirectory
 fixed attribute shell loginShell
 fixed attribute change 0
 fixed attribute expire 0
 fixed attribute class ldap
 
 group filter (objectClass=posixGroup)
 
 attribute groupname maps to cn
 fixed attribute grouppasswd *
 attribute groupgid maps to gidNumber
 list groupmembers maps to memberUid
 }
 
 And dmesg:
 
 OpenBSD 4.7 (GENERIC) #558: Wed Mar 17 20:46:15 MDT 2010
 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: Intel Pentium III (GenuineIntel 686-class, 128KB L2 cache) 898 MHz
 cpu0: 
 FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXS
 R,SSE
 real mem  = 266694656 (254MB)
 avail mem = 249700352 (238MB)
 mainbus0 at root
 bios0 at mainbus0: AT/286+ BIOS, date 08/23/01, BIOS32 rev. 0 @ 0xfda74, 
 SMBIOS
 rev. 2.3 @ 0xf0ff0 (49 entries)
 bios0: vendor Intel Corp. version CB81010A.15A.0026.P05.0108230926 date 
 08/23/
 2001
 bios0: Gateway E-1600
 apm0 at bios0: Power Management spec V1.2
 apm0: AC on, battery charge unknown
 acpi at bios0 function 0x0 not configured
 pcibios0 at bios0: rev 2.1 @ 0xf/0x1
 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf3370/144 (7 entries)
 pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00)
 pcibios0: PCI bus #1 is the last bus
 bios0: ROM list: 0xc/0xc000 0xcc000/0x1000 0xcd000/0x1000
 cpu0 at mainbus0: (uniprocessor)
 pci0 at mainbus0 bus 0: configuration mode 1 (bios)
 pchb0 at pci0 dev 0 function 0 Intel 82810E Host rev 0x03
 vga1 at pci0 dev 1 function 0 Intel 82810E Video rev 0x03
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 intagp0 at vga1
 agp0 at intagp0: aperture at 0xf800, size 0x400
 ppb0 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0x02
 pci1 at ppb0 bus 1
 fxp0 at pci1 dev 8 function 0 Intel 82562 rev 0x01, i82562: irq 5, address 
 00:
 03:47:a3:9b:b8
 inphy0 at fxp0 phy 1: i82562ET 10/100 PHY, rev. 0
 ichpcib0 at pci0 dev 31 function 0 Intel 82801BA LPC rev 0x02

Re: BSD and Active Directory?

2009-12-18 Thread Nigel Taylor
I use password authentication to login with an AD account into a windows
terminal services platform. All windows platforms are 2003 R2, then ssh using
gssapi to get to OpenBSD - no password required, or the same to Solaris 10, Red
Hat v4 platforms. I use a modified version of putty from Quest that supports
gssapi on Windows, sshd_config has gssapi enabled. I can login using cygwin ssh
or locally with the AD account/password to OpenBSD. The real aim in this case is
to use a single sign-on. I can also use smart card authentication to the
terminal server, and the single sign-on to any Linux/Unix platform and OpenBSD.

I am using OpenBSD v4.6 stable, running samba v3.4.3 ads favour see mail lists,
ldap-client, ldap-server, p5-ldap from ports, portmap, ypldap, ypbind, plus
other ports. Note I use a modified ypldap - that allows empty groups, this is
for another system using smbldap-tools the aim to automatically add samba users
in ldap.

ypldap uses an extra login class kauth defined in login.conf with auth=krb5. An
entry in ypldap.conf fixed attribute class kauth is used.

Red Hat and Solaris are using Quest's Vintela, this extends the AD schema in a
manner ypldap does not support (or I haven't found a way to make this work so
far, I need to do some sub queries for memberships), instead I extract using a
perl script creating a ldif file which creates the entries in local ldap server
for users/groups using the nis schema. I have around 140 users and 30 groups
from AD in the local ldap, the perl script also filters out any users that
haven't been assigned a uid, or groups with no gid and users with a uid's below
a value, and disabled accounts. the perl script uses Net::LDAP from the p5-ldap
port.

This also works with samba, the terminal server can get to samba shares on the
OpenBSD, using the group/users setup in ldap and authenticating with AD.

To get multiple groups for users besides a +, as the last line the group file,
the group file must contain an exclusion see getgrouplist man page, or you need
to create /etc/netid for the user to group mappings. ypldap doesn't support
netid.byname currently, sudo doesn't work because of this.

The only difference is the ypldap.conf refers to the local ldap in my case
populated with the AD accounts/groups, rather than using ypldap directly against
the active directory ldap.

getent passwd or group will return both local and those accounts/groups in ldap.

The yp_first is reported by ypbind, your initial e-mail suggests ypldap hasn't
completed the first stages, you should see something like this

# ypldap -dv
startup [debug mode]
configuration starting
applying configuration
connecting to directories
starting directory update
updates are over, cleaning up trees now
flattening trees
pushing line: aalle01:*:5020671:5046:kauth:0:0::/home/adusers/aalle01
:/bin/bash
pushing line: aarno01:*:5972151:5002:kauth:0:0::/home/adusers/aarno
 01:/bin/sh
pushing line: acham01:*:5617157:5002:kauth:0:0::/home/adusers/acham
 03:/bin/sh
pushing line: acham02:*:5020098:5046:kauth:0:0::/home/adusers/ach
   am02:/bin/bash
pushing line: achil01:*:50042186:5001:kauth:0:0::/home/adusers/achil01
:/bin/sh
.
pushing line: ncwadmins:*:5024:dmell01,npres01
pushing line: ncwops:*:5043:dmell01,npres01
pushing line: nfmadmins:*:5032:dmell01,npres01
pushing line: nfmops:*:5031:dmell01,npres01
pushing line: nmnadmins:*:5028:dmell01,npres01
.

I think until ypldap reaches this point it's not listening, and ypbind can't
connect.

You could try ypldap.conf with a filter for a small set of users / groups. This
will tell you if you exceeded a limit or there something wrong in the 
ypldap.conf.


Regards

Nigel Taylor


Joakim Dellrud wrote:
 Okay, I have understood that there is some difference between a solution and
 another. But what I need to do is to pull a user with the unix attributes in
 a 2k3 ad server to a bsd machine. It is already working seamless in a centos
 enviroment. But there is the nsswitch and pam. My problem is that I have to
 use the smallest amount possible of space and packages for this to work. For
 the record I already have the UNIX SFU installed (thought I did mention
 that).
 
 I had the impression that ypldap.conf is equal to the ldap.conf I use in the
 centos env. Is that not the case? Is ypldap not used to bind against an ad
 with a user and pull info that then are used to auth against?
 
 ==
 
 I don't know if I need to clarify what I want to do but I will anyway:
 The existing Active Directory (with SFU) are going to host two types of
 users one USER with one password and another USER.root with a different
 password. Then when I ssh against one server I want to use my USER and when
 inside I use kinit USER.root to gain a root ticket (afterwards I use ksu
 to elevate the USER to the local root account). In Centos I've managed to
 make this work through editing of /etc/krb5.conf, /etc/openldap/ldap.conf,
 /etc/ldap.conf, /etc

Re: Missing library for pthread-stubs

2009-11-09 Thread Nigel Taylor
X windows (xenocara). lib pthread-stubs is found in /usr/X11R6/lib.

Also caused by using some current ports with 4.6 stable.

Regards

Nigel Taylor

sda wrote:
 hello,
 
 can someone advise what should i read/install to pass this check:
 
 Missing library for pthread-stubs
 
 OpenBSD current i386
 
 thanks,
 regards,
 sda
 
 [demime 1.01d removed an attachment of type application/pgp-signature]