espeak does not play

2024-02-06 Thread 4
azalia0 at pci0 dev 14 function 0 "Intel Gemini Lake HD Audio" rev 0x06: msi
azalia0: no supported codecs
-- or(with some changes) -- 
azalia0 at pci0 dev 14 function 0 "Intel Gemini Lake HD Audio" rev 0x06: msi
azalia0: codecs: Intel/0x280d
audio0 at azalia0
-- but still doesn't work T_T --

uaudio0 at uhub0 port 1 configuration 1 interface 1 "GeneralPlus USB Audio 
Device" rev 1.10/1.00 addr 2
uaudio0: class v1, full-speed, sync, channels: 2 play, 1 rec, 8 ctls
audio0 at uaudio0
uhidev0 at uhub0 port 1 configuration 1 interface 3 "GeneralPlus USB Audio 
Device" rev 1.10/1.00 addr 2
uhidev0: iclass 3/0

# sndioctl -dv
010:input[0].level=0..255 (228)
011:input[0].mute=0..1 (0)
006:output[0].level=0..255 (196)
007:output[1].level=0..255 (196)
008:output[0].mute=0..1 (0)
009:output[1].mute=0..1 (0)
001:server.device=0
002:server.device=1
003:server.device=2
004:server.device=3
005:flite0.level=0..127 (127)

flite -t "test" -plays
espeak "test" -does not play
espeak -d snd/0 "test" -does not play
espeak -d snd/1 "test" -does not play
espeak -d rsnd/1 "test" -does not play
espeak -d rsnd/0 "test" -does not play

what am i doing wrong?



Re: dhcpcd not obtaining ipv6 /48

2024-02-06 Thread void

On Mon, Feb 05, 2024 at 02:56:51PM -0800, Courtney wrote:

What do you get as output when you run dhcpcd in the foreground?


# /usr/local/sbin/dhcpcd -B
dhcpcd-10.0.2 starting
DUID 00:01:00:01:2a:79:re:da:ct:ed:c2:10:48:8e
cnmac0: IAID c2:10:48:8e
cnmac1: IAID c2:10:48:8f
pppoe0: IAID 00:00:00:06
pppoe0: IA type 3 IAID 00:00:00:01
pppoe0: IA type 25 IAID 00:00:00:02
pppoe0: soliciting a DHCPv6 lease
pppoe0: soliciting an IPv6 router
pppoe0: Router Advertisement from fe80::4afd:8eff:reda:cted
pppoe0: adding address 2a02:8011:redacted::1/64
pppoe0: adding route to 2a02:8011:redacted::/64
pppoe0: adding default route via fe80::4afd:8eff:reda:cted

it just gets the /64 in the pppoe (so: cnmac1)

If invoked with --inform6, this appears in the log

cnmac0: failed to request DHCPv6 information
cnmac1: failed to request DHCPv6 information


^Creceived SIGINT, stopping
pppoe0: removing interface
cnmac1: removing interface
cnmac0: removing interface
dhcpcd exited

dhcpcd.conf looks like this:

ipv6only
noipv6rs
duid
persistent
option rapid_commit
require dhcp_server_identifier

script ""

allowinterfaces pppoe0 cnmac0 cnmac1

interface pppoe0
ipv6rs
ia_na 1 


ia_pd 2/::48 cnmac0/1

###

The /48 should appear on cnmac0

--



cwm crash when destroying window during move (patch included)

2024-02-06 Thread ZenitDS


Hello,

This is my first time posting here so please forgive me if
something is not correct.

When running cwm you can destroy the client window while
you are moving or resizing it, leading to crash of the WM
when the prop window is accessed (the one at the top-left that
indicates the position/scale).

I include a demonstration for the crash and also a patch that
fixes it. Hopefully someone with more experience can implement
a better fix.

Also, should this go into the tech mailing list instead of misc?

Demonstration code for the crash:

#include 

#include 
#include 

int
main(void)
{
Display *dpy;
Window win;
int scr;
XEvent ev;

dpy = XOpenDisplay(NULL);
if (!dpy)
err(1, "XOpenDisplay");

scr = DefaultScreen(dpy);

win = XCreateSimpleWindow(dpy, RootWindow(dpy, scr), 0, 0, 500, 500, 0, 
0, WhitePixel(dpy, scr));
if (!win)
err(1, "XCreateSimpleWindow");

XSelectInput(dpy, win, StructureNotifyMask | SubstructureNotifyMask | 
ExposureMask);
XMapRaised(dpy, win);

while (1) {
XNextEvent(dpy, );
switch (ev.type) {
case CreateNotify:
goto end;
case Expose:
XClearWindow(dpy, win);
break;
default:
break;
}
}
end:
XDestroyWindow(dpy, win);

XCloseDisplay(dpy);

return 0;
}

Here is the patch:

Index: calmwm.h
===
RCS file: /cvs/xenocara/app/cwm/calmwm.h,v
retrieving revision 1.379
diff -u -p -r1.379 calmwm.h
--- calmwm.h20 Jul 2023 14:39:34 -  1.379
+++ calmwm.h6 Feb 2024 20:20:22 -
@@ -481,7 +481,7 @@ struct geom  screen_area(struct screen_
 struct screen_ctx  *screen_find(Window);
 voidscreen_init(int);
 voidscreen_prop_win_create(struct screen_ctx *, Window);
-voidscreen_prop_win_destroy(struct screen_ctx *);
+voidscreen_prop_win_destroy(struct screen_ctx *, int);
 voidscreen_prop_win_draw(struct screen_ctx *,
 const char *, ...)
__attribute__((__format__ (printf, 2, 3)))
Index: kbfunc.c
===
RCS file: /cvs/xenocara/app/cwm/kbfunc.c,v
retrieving revision 1.174
diff -u -p -r1.174 kbfunc.c
--- kbfunc.c20 Jul 2023 14:39:34 -  1.174
+++ kbfunc.c6 Feb 2024 20:20:22 -
@@ -169,9 +169,23 @@ kbfunc_client_move_mb(void *ctx, struct 
 
screen_prop_win_create(sc, cc->win);
screen_prop_win_draw(sc, "%+5d%+5d", cc->geom.x, cc->geom.y);
-   while (move) {
-   XMaskEvent(X_Dpy, MOUSEMASK, );
+   while (move > 0) {
+   XMaskEvent(X_Dpy, MOUSEMASK | SubstructureNotifyMask, );
switch (ev.type) {
+   /* check for destroy events, in case the client window
+* gets destroyed, which forcefully closes the prop window.
+*/
+   case DestroyNotify:
+   /* set move to -1 to specify abrupt exit */
+   if (ev.xdestroywindow.window == cc->win) {
+   screen_prop_win_destroy(sc, 1);
+   client_remove(cc);
+   move = -1; 
+   } else if (ev.xdestroywindow.window == sc->prop.win) {
+   screen_prop_win_destroy(sc, 0);
+   move = -1; 
+   }
+   break;
case MotionNotify:
/* not more than 60 times / second */
if ((ev.xmotion.time - ltime) <= (1000 / 60))
@@ -199,9 +213,11 @@ kbfunc_client_move_mb(void *ctx, struct 
break;
}
}
-   if (ltime)
-   client_move(cc);
-   screen_prop_win_destroy(sc);
+   if (move != -1) {
+   if (ltime)
+   client_move(cc);
+   screen_prop_win_destroy(sc, 1);
+   }
XUngrabPointer(X_Dpy, CurrentTime);
 }
 
@@ -258,9 +274,22 @@ kbfunc_client_resize_mb(void *ctx, struc
 
screen_prop_win_create(sc, cc->win);
screen_prop_win_draw(sc, "%4d x %-4d", cc->dim.w, cc->dim.h);
-   while (resize) {
+   while (resize > 0) {
XMaskEvent(X_Dpy, MOUSEMASK, );
switch (ev.type) {
+   /* check for destroy events, in case the client window
+* gets destroyed, which forcefully closes the prop window.
+*/
+   case DestroyNotify:
+   if (ev.xdestroywindow.window == cc->win) {
+

Re: Astertisk missing library

2024-02-06 Thread Peter Fraser
Although not understanding the output of LD_DEBUG, I made a guess, that the 
problem was with load order.

After a bit of experimentation, I added

load = res_audiosocket.so
load = res_speech.so
load = res_stasis.so
load = res_pjproject.so
load = res_rtp_asterisk.so
load = res_pjsip.so
load = res_xmpp.so
load = res_pjsip_session.so
load = res_rtp_multicast.so
load = res_ael_share.so
load = res_pjsip_pubsub.so
load = res_stasis_recording.so
load = res_pjsip_outbound_publish.so

To the beginning of modules.conf asterisk loaded without missing symbols. 

-Original Message-
From: Peter Fraser 
Sent: Tuesday, February 6, 2024 2:22 PM
To: misc@openbsd.org
Subject: RE: Astertisk missing library

setting LD_DEBUG does generate a lot of output 8384 lines.

first is the extracted code where app_audiosocket.so is loaded, the error is 
reported. It was a line 607 in the debug ouptut the second is the section is 
where res_audiosocket.so is loaded. It was at line 4622 in the output.

I find it very strange that asterisk reports an error after  app_audiosocket.so 
is loaded, but later seems properly load res_audiosocket.so which contains the 
missing symbols.

I am hoping that someone can extract something from this.
I do have all 8000 plus line of output if someone is interested.

dlopen: loading: /usr/local/lib/asterisk/modules/app_audiosocket.so
objname [/usr/local/lib/asterisk/modules/app_audiosocket.so], dynp 
0x5bda75834a0, objtype 4 lbase 5bda757f000, obase 5bda757f000  flags 
/usr/local/lib/asterisk/modules/app_audiosocket.so = 0x0 head 
/usr/local/lib/asterisk/modules/app_audiosocket.so
obj /usr/local/lib/asterisk/modules/app_audiosocket.so has 
/usr/local/lib/asterisk/modules/app_audiosocket.so as head linking 
/usr/local/lib/asterisk/modules/app_audiosocket.so as dlopen()ed head 
[/usr/local/lib/asterisk/modules/app_audiosocket.so]
examining: '/usr/local/lib/asterisk/modules/app_audiosocket.so'
loading: libBlocksRuntime.so.0.0 required by 
/usr/local/lib/asterisk/modules/app_audiosocket.so
loading: libpthread.so.27.1 required by 
/usr/local/lib/asterisk/modules/app_audiosocket.so
linking dep /usr/local/lib/libBlocksRuntime.so.0.0 as child of 
/usr/local/lib/asterisk/modules/app_audiosocket.so
linking dep /usr/lib/libpthread.so.27.1 as child of 
/usr/local/lib/asterisk/modules/app_audiosocket.so
tail /usr/local/lib/asterisk/modules/app_audiosocket.so
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_connect'
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_init'
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_send_frame'
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_receive_frame'
unload_shlib called on /usr/local/lib/asterisk/modules/app_audiosocket.so
unload_shlib called on /usr/local/lib/libBlocksRuntime.so.0.0
unload_shlib called on /usr/lib/libpthread.so.27.1 unload_shlib unloading on 
/usr/local/lib/asterisk/modules/app_audiosocket.so
dlopen: /usr/local/lib/asterisk/modules/app_audiosocket.so: done 
(failed).dlopen: loading: /usr/local/lib/asterisk/modules/app_audiosocket.so
objname [/usr/local/lib/asterisk/modules/app_audiosocket.so], dynp 
0x5bda75834a0, objtype 4 lbase 5bda757f000, obase 5bda757f000  flags 
/usr/local/lib/asterisk/modules/app_audiosocket.so = 0x0 head 
/usr/local/lib/asterisk/modules/app_audiosocket.so
obj /usr/local/lib/asterisk/modules/app_audiosocket.so has 
/usr/local/lib/asterisk/modules/app_audiosocket.so as head linking 
/usr/local/lib/asterisk/modules/app_audiosocket.so as dlopen()ed head 
[/usr/local/lib/asterisk/modules/app_audiosocket.so]
examining: '/usr/local/lib/asterisk/modules/app_audiosocket.so'
loading: libBlocksRuntime.so.0.0 required by 
/usr/local/lib/asterisk/modules/app_audiosocket.so
loading: libpthread.so.27.1 required by 
/usr/local/lib/asterisk/modules/app_audiosocket.so
linking dep /usr/local/lib/libBlocksRuntime.so.0.0 as child of 
/usr/local/lib/asterisk/modules/app_audiosocket.so
linking dep /usr/lib/libpthread.so.27.1 as child of 
/usr/local/lib/asterisk/modules/app_audiosocket.so
tail /usr/local/lib/asterisk/modules/app_audiosocket.so
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_connect'
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_init'
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_send_frame'
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_receive_frame'
unload_shlib called on /usr/local/lib/asterisk/modules/app_audiosocket.so
unload_shlib called on /usr/local/lib/libBlocksRuntime.so.0.0
unload_shlib called on /usr/lib/libpthread.so.27.1 unload_shlib unloading on 
/usr/local/lib/asterisk/modules/app_audiosocket.so
dlopen: 

BSDCan CFP closes Monday

2024-02-06 Thread Pamela Mosiejczuk

Reminder that the BSDCan talk/tutorial submission period ends on the 12th, so 
there's one last weekend to apply!

We're a brand new organizing team, but we'll be at the same familiar venue: 
UOttawa 29 May - 1 June, with two days of
half- and full-day tutorials followed by two days for the conference itself.

Check out:
https://www.bsdcan.org/2024/papers.php for the call for papers and link to the 
instructions
https://www.bsdcan.org/2024/proposalhints.php for some tips on writing your 
proposal
https://indico.bsdcan.org/ if you are ready to submit! (please include a 
comment with bio and travel $ estimate)


Talks for any level of experience and a wide variety of topics are welcome, and 
we also have space for BOF sessions or
round-table discussions by request. Please note on your proposal if you wish to 
present remotely. (Details for this option
have yet to be ironed out, but we hope to avoid excluding community members for 
reasons of health or safety). The
conference will offer paid travel and accommodations to in-person speakers, and 
a mask policy will be in effect. There
will be a social event the afternoon before the conference begins and a closing 
dinner (meal not included) on the last day.

 



Re: Astertisk missing library

2024-02-06 Thread Peter Fraser
setting LD_DEBUG does generate a lot of output 8384 lines.

first is the extracted code where app_audiosocket.so is loaded, the error is 
reported. It was a line 607 in the debug ouptut
the second is the section is where res_audiosocket.so is loaded. It was at line 
4622 in the output.

I find it very strange that asterisk reports an error after  app_audiosocket.so 
is loaded, but later seems properly
load res_audiosocket.so which contains the missing symbols.

I am hoping that someone can extract something from this.
I do have all 8000 plus line of output if someone is interested.

dlopen: loading: /usr/local/lib/asterisk/modules/app_audiosocket.so
objname [/usr/local/lib/asterisk/modules/app_audiosocket.so], dynp 
0x5bda75834a0, objtype 4 lbase 5bda757f000, obase 5bda757f000
 flags /usr/local/lib/asterisk/modules/app_audiosocket.so = 0x0
head /usr/local/lib/asterisk/modules/app_audiosocket.so
obj /usr/local/lib/asterisk/modules/app_audiosocket.so has 
/usr/local/lib/asterisk/modules/app_audiosocket.so as head
linking /usr/local/lib/asterisk/modules/app_audiosocket.so as dlopen()ed
head [/usr/local/lib/asterisk/modules/app_audiosocket.so]
examining: '/usr/local/lib/asterisk/modules/app_audiosocket.so'
loading: libBlocksRuntime.so.0.0 required by 
/usr/local/lib/asterisk/modules/app_audiosocket.so
loading: libpthread.so.27.1 required by 
/usr/local/lib/asterisk/modules/app_audiosocket.so
linking dep /usr/local/lib/libBlocksRuntime.so.0.0 as child of 
/usr/local/lib/asterisk/modules/app_audiosocket.so
linking dep /usr/lib/libpthread.so.27.1 as child of 
/usr/local/lib/asterisk/modules/app_audiosocket.so
tail /usr/local/lib/asterisk/modules/app_audiosocket.so
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_connect'
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_init'
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_send_frame'
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_receive_frame'
unload_shlib called on /usr/local/lib/asterisk/modules/app_audiosocket.so
unload_shlib called on /usr/local/lib/libBlocksRuntime.so.0.0
unload_shlib called on /usr/lib/libpthread.so.27.1
unload_shlib unloading on /usr/local/lib/asterisk/modules/app_audiosocket.so
dlopen: /usr/local/lib/asterisk/modules/app_audiosocket.so: done 
(failed).dlopen: loading: /usr/local/lib/asterisk/modules/app_audiosocket.so
objname [/usr/local/lib/asterisk/modules/app_audiosocket.so], dynp 
0x5bda75834a0, objtype 4 lbase 5bda757f000, obase 5bda757f000
 flags /usr/local/lib/asterisk/modules/app_audiosocket.so = 0x0
head /usr/local/lib/asterisk/modules/app_audiosocket.so
obj /usr/local/lib/asterisk/modules/app_audiosocket.so has 
/usr/local/lib/asterisk/modules/app_audiosocket.so as head
linking /usr/local/lib/asterisk/modules/app_audiosocket.so as dlopen()ed
head [/usr/local/lib/asterisk/modules/app_audiosocket.so]
examining: '/usr/local/lib/asterisk/modules/app_audiosocket.so'
loading: libBlocksRuntime.so.0.0 required by 
/usr/local/lib/asterisk/modules/app_audiosocket.so
loading: libpthread.so.27.1 required by 
/usr/local/lib/asterisk/modules/app_audiosocket.so
linking dep /usr/local/lib/libBlocksRuntime.so.0.0 as child of 
/usr/local/lib/asterisk/modules/app_audiosocket.so
linking dep /usr/lib/libpthread.so.27.1 as child of 
/usr/local/lib/asterisk/modules/app_audiosocket.so
tail /usr/local/lib/asterisk/modules/app_audiosocket.so
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_connect'
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_init'
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_send_frame'
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_receive_frame'
unload_shlib called on /usr/local/lib/asterisk/modules/app_audiosocket.so
unload_shlib called on /usr/local/lib/libBlocksRuntime.so.0.0
unload_shlib called on /usr/lib/libpthread.so.27.1
unload_shlib unloading on /usr/local/lib/asterisk/modules/app_audiosocket.so
dlopen: /usr/local/lib/asterisk/modules/app_audiosocket.so: done (failed).

and much further down

dlopen: loading: /usr/local/lib/asterisk/modules/res_audiosocket.so
objname [/usr/local/lib/asterisk/modules/res_audiosocket.so], dynp 
0x5bdacbf6e68, objtype 4 lbase 5bdacbf2000, obase 5bdacbf2000
 flags /usr/local/lib/asterisk/modules/res_audiosocket.so = 0x0
head /usr/local/lib/asterisk/modules/res_audiosocket.so
obj /usr/local/lib/asterisk/modules/res_audiosocket.so has 
/usr/local/lib/asterisk/modules/res_audiosocket.so as head
linking /usr/local/lib/asterisk/modules/res_audiosocket.so as dlopen()ed
head [/usr/local/lib/asterisk/modules/res_audiosocket.so]
examining: '/usr/local/lib/asterisk/modules/res_audiosocket.so'
loading: libpthread.so.27.1 

Re: Second Redis instance?

2024-02-06 Thread Stuart Henderson
On 2024-02-06, Louis Brauer  wrote:
>> Giving opportunity to use /usr/local/etc/redis-FOO.conf
>> /usr/local/etc/redis-BAR.conf respectively, as separate instances.
>>
>> How can I do the same under OpenBSD 7.4?
>
> You could just copy the /etc/rc.d/redis file to /etc/rc.d/redis2 and modify 
> the daemon_flags settings in it to use a separate config file.
>
> Then 
> - rcctl enable redis2 
> - rcctl start redis2
>
> I just tried that and it seems to work.

Not properly. See my reply.

-- 
Please keep replies on the mailing list.



Re: Second Redis instance?

2024-02-06 Thread Nowarez Market
I have no clue about Redis but for my Memcached I'm using the "exec" by script
launching the binary with different parameters that in your case could be a 
different
conf for instance. I'm not sure about a more clean solution.

I tried to ask in the past without receiving any reply.

> N0\/\/@r€Z
> --
>    /\/\@rk€T

Feb 6, 2024 16:04:21 Mark :

> I've redis-6.2.13 installed and running.
> 
> I need to run a second Redis instance with a different .conf file.
> 
> For instance, under FreeBSD, this is as easy as adding in rc.conf file;



Re: Entry in the list of UNIX and OpenBSD providers

2024-02-06 Thread Christian Weisgerber
"Theobald, Gerd":

> C Germany
> P Baden-Wuerttemberg
> T Nuremberg
> Z D-90411

Nuremberg is not in Baden-Wuerttemberg.

-- 
Christian "naddy" Weisgerber  na...@mips.inka.de



Re: Entry in the list of UNIX and OpenBSD providers

2024-02-06 Thread Stuart Henderson
On 2024-02-06, Theobald, Gerd  wrote:
> we would be delighted to be included in your list of providers 
> https://www.openbsd.org/support.html#Germany as a professional training 
> provider for UNIX and OpenBSD, among others. Here follows the information in 
> the desired format.

> U https://www.it-schulungen.com

The OpenBSD course that I see when searching on the website
(https://www.it-schulungen.com/seminare/serversysteme/unix/openbsd/openbsd-kompaktkurs.html)
will need an update, systrace was removed in 2016.




Re: Second Redis instance?

2024-02-06 Thread Sebastien Marie
"Louis Brauer"  writes:

>> Giving opportunity to use /usr/local/etc/redis-FOO.conf
>> /usr/local/etc/redis-BAR.conf respectively, as separate instances.
>>
>> How can I do the same under OpenBSD 7.4?
>
> You could just copy the /etc/rc.d/redis file to /etc/rc.d/redis2 and modify 
> the daemon_flags settings in it to use a separate config file.
>
> Then 
> - rcctl enable redis2 
> - rcctl start redis2
>
> I just tried that and it seems to work.

yes it is working. but I would use a symlink (ln -s /etc/rc.d/redis{,2})
instead of copying the file: this way you have package update for the
script for free.
-- 
Sebastien Marie



Re: Second Redis instance?

2024-02-06 Thread Stuart Henderson
On 2024-02-06, Mark  wrote:
> Hi.
>
> I've redis-6.2.13 installed and running.
>
> I need to run a second Redis instance with a different .conf file.
>
> For instance, under FreeBSD, this is as easy as adding in rc.conf file;
>
> redis_profiles="foo bar"
>
> Giving opportunity to use /usr/local/etc/redis-FOO.conf
> /usr/local/etc/redis-BAR.conf respectively, as separate instances.
>
> How can I do the same under OpenBSD 7.4?
>
> Any help, ideas, tips & tricks would be appreciated,
> Kindest regards.

Unfortunately redis sets the process name in a way that doesn't allow
distinguishing multiple instances by matching the name with the command
line flags, and that's the only way that the rc.d framework allows
matching daemon processes to the script, so running multiple copies via
the rc.d framework won't work in a generic way.

(in the case of many other daemons, one can simply symlink the rc.d
script under a different name, and set flags separately for each name,
but that won't work here)..

You could copy /etc/rc.d/redis under a different name and modify it
so that pexp matches the process title when run with the alternative
config file, or otherwise run it outside of rc.d (e.g. from rc.local).

-- 
Please keep replies on the mailing list.



Re: Second Redis instance?

2024-02-06 Thread Louis Brauer
> Giving opportunity to use /usr/local/etc/redis-FOO.conf
> /usr/local/etc/redis-BAR.conf respectively, as separate instances.
>
> How can I do the same under OpenBSD 7.4?

You could just copy the /etc/rc.d/redis file to /etc/rc.d/redis2 and modify the 
daemon_flags settings in it to use a separate config file.

Then 
- rcctl enable redis2 
- rcctl start redis2

I just tried that and it seems to work.

Louis



Entry in the list of UNIX and OpenBSD providers

2024-02-06 Thread Theobald, Gerd
Hi there,


we would be delighted to be included in your list of providers 
https://www.openbsd.org/support.html#Germany as a professional training 
provider for UNIX and OpenBSD, among others. Here follows the information in 
the desired format.

C Germany
P Baden-Wuerttemberg
T Nuremberg
Z D-90411
O IT-Schulungen.com / New Elements GmbH
I Jean-Pierre Kroiss
A Thurn-und-Taxisstr. 10
M i...@it-schulungen.com
U https://www.it-schulungen.com
B +49 911 65008222
X +49(0)911 - 650083-99
N it-schulungen.com has been a provider of professional training
for 20 years. Our portfolio also includes numerous courses on Unix and OpenBSD.


Thanks a lot & best regards

Gerd


Dr. Gerd Theobald
Marketing Consultant

g.theob...@newelements.de
phone +49-177 7543098
fax+49-911-65008-399

www.it-schulungen.com
Education Center der New Elements GmbH
Thurn-und-Taxis-Straße 10
90411 Nürnberg

Seminare mit gesicherten 
Terminen I Neuigkeiten und 
Angebote I
Geschäftsführer: Atasoy Altinci, Michael Deinhard Dipl.-Kfm. (Uni) I 
Amtsgericht Nürnberg HRB 25042 I USt-IdNr.: DE263750718

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das 
unerlaubte Kopieren, sowie die unbefugte Weitergabe dieser Mail sind nicht 
gestattet.

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please notify
the sender immediately and destroy this e-mail. Any unauthorized copying, 
disclosure or distribution of the material in this e-mail is strictly forbidden.



Second Redis instance?

2024-02-06 Thread Mark
Hi.

I've redis-6.2.13 installed and running.

I need to run a second Redis instance with a different .conf file.

For instance, under FreeBSD, this is as easy as adding in rc.conf file;

redis_profiles="foo bar"

Giving opportunity to use /usr/local/etc/redis-FOO.conf
/usr/local/etc/redis-BAR.conf respectively, as separate instances.

How can I do the same under OpenBSD 7.4?

Any help, ideas, tips & tricks would be appreciated,
Kindest regards.

Mark.


Re: No audio playback with azalia0 Intel Braswell HD Audio

2024-02-06 Thread Peter Hessler
It seems that your audio is connected in an.interesting way:

 "808622A8" at acpi0 not configured

I guess we'll need a driver to support that.

Please use sendbug(1) to make a report, and make sure it includes the
acpidump from the system.

-peter

On 2024 Feb 05 (Mon) at 20:28:16 -0800 (-0800), jrmu wrote:
:Greetings,
:
:I am attempting to play audio on an HP Chromebook 11 G5 Setzer,
:but OpenBSD appears to be missing the necessary codecs. Are there any
:workarounds? I'm guessing that switching from the built-in speakers to
:headphones won't make any difference. Any suggestions appreciated.
:
:Here's the output I see when using ogg123:
:
:bsd$ ogg123 -d sndio Mozart_-_Eine_kleine_Nachtmusik_-_1._Allegro.ogg
:
:Audio Device:   sndio audio output
:
:Playing: Mozart_-_Eine_kleine_Nachtmusik_-_1._Allegro.ogg
:Ogg Vorbis stream: 2 channel, 44100 Hz
:Title: ADVENT CHAMBER ORCHESTRA Artist=Roxanna Pavel Goldstein, Musical 
Director
:ERROR: Cannot open device sndio.
:
:
:I tried running sndiod in debug mode:
:
:bsd$ doas sndiod -
:snd0 pst=cfg.default: rec=0:1 play=0:1 vol=8388608 dup
:snd0 pst=cfg.0: rec=0:1 play=0:1 vol=8388608 dup
:snd1 pst=cfg.1: rec=0:1 play=0:1 vol=8388608 dup
:snd2 pst=cfg.2: rec=0:1 play=0:1 vol=8388608 dup
:snd3 pst=cfg.3: rec=0:1 play=0:1 vol=8388608 dup
:helper(helper|ini): created
:poll: helper: 1
:worker(worker|ini): created
:listen(/tmp/sndio/sock0|ini): created
:default/server.device=0:1 at 1 -> opt_dev:default/0: added
:default/server.device=1:0 at 2 -> opt_dev:default/1: added
:default/server.device=2:0 at 3 -> opt_dev:default/2: added
:default/server.device=3:0 at 4 -> opt_dev:default/3: added
:poll: listen: 1 worker: 1
:sock(sock|ini): created
:listen(/tmp/sndio/sock0|ini): processed in 226us
:worker(worker|ini): processed in 1us
:sock,rmsg,widl: no messages to build anymore, idling...
:poll: sock: 1 listen: 1 worker: 1
:helper: recv: cmd = 0, num = 0, mode = 3, fd = -1
:helper: send: cmd = 3, num = 0, mode = 0, fd = -1
:helper(helper|ini): processed in 339us
:poll: helper: 1
:helper: recv: cmd = 0, num = 0, mode = 1, fd = -1
:helper: send: cmd = 3, num = 0, mode = 0, fd = -1
:helper(helper|ini): processed in 105us
:poll: helper: 1
:sock,rmsg,widl: reading 40 todo
:sock,rmsg,widl: read full message
:sock,rmsg,widl: AUTH message
:sock,rmsg,widl: reading 40 todo
:sock,rmsg,widl: read full message
:sock,rmsg,widl: HELLO message
:sock,rmsg,widl: hello from , mode = 1, ver 7
:app/ogg0.level=127 at 5 -> slot_level:ogg0: added
:snd0 pst=cfg: device requested
:worker: send: cmd = 0, num = 0, mode = 3, fd = -1
:worker: recv: cmd = 3, num = 0, mode = 0, fd = -1
:worker: send: cmd = 0, num = 0, mode = 1, fd = -1
:worker: recv: cmd = 3, num = 0, mode = 0, fd = -1
:worker: send: cmd = 0, num = 0, mode = 2, fd = -1
:worker: recv: cmd = 3, num = 0, mode = 0, fd = -1
:snd0 pst=cfg: failed to open audio device
:sock,rmsg,widl: closing
:sock(sock|zom): destroyed
:sock(sock|zom): processed in 8478us
:listen(/tmp/sndio/sock0|ini): processed in 1us
:worker(worker|ini): processed in 0us
:poll: listen: 1 worker: 1
:helper: recv: cmd = 0, num = 0, mode = 2, fd = -1
:helper: send: cmd = 3, num = 0, mode = 0, fd = -1
:helper(helper|ini): processed in 206us
:poll: helper: 1
:^Cpoll: helper: 1
:helper: hup
:helper(helper|zom): destroyed
:helper(helper|zom): processed in 54us
:nothing to do...
:worker(worker|zom): destroyed
:listen(/tmp/sndio/sock0|zom): destroyed
:default/server.device=0:1 at 1 -> opt_dev:default/0: removed
:default/server.device=1:0 at 2 -> opt_dev:default/1: removed
:default/server.device=2:0 at 3 -> opt_dev:default/2: removed
:default/server.device=3:0 at 4 -> opt_dev:default/3: removed
:snd0 pst=cfg: draining
:snd1 pst=cfg: draining
:snd2 pst=cfg: draining
:snd3 pst=cfg: draining
:nothing to do...
:snd0 pst=cfg: deleting
:snd1 pst=cfg: deleting
:snd2 pst=cfg: deleting
:snd3 pst=cfg: deleting
:
:Below is my dmesg output:
:
:OpenBSD 7.4 (GENERIC.MP) #1382: Wed Sep 27 10:51:31 MDT 2023
:dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
:real mem = 2068180992 (1972MB)
:avail mem = 1985822720 (1893MB)
:random: good seed from bootblocks
:mpath0 at root
:scsibus0 at mpath0: 256 targets
:mainbus0 at root
:bios0 at mainbus0: SMBIOS rev. 3.0 @ 0x1fee8000 (17 entries)
:bios0: vendor coreboot version "MrChromebox-4.20.1" date 07/21/2023
:bios0: GOOGLE Setzer
:efi0 at bios0: UEFI 2.7
:efi0: EDK II rev 0x1
:acpi0 at bios0: ACPI 6.0
:acpi0: sleep states S0 S1 S3 S4 S5
:acpi0: tables DSDT FACP SSDT MCFG TCPA APIC HPET TCPA BGRT
:acpi0: wakeup devices XHCI(S3)
:acpitimer0 at acpi0: 3579545 Hz, 24 bits
:acpimcfg0 at acpi0
:acpimcfg0: addr 0xe000, bus 0-255
:acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
:cpu0 at mainbus0: apid 0 (boot processor)
:cpu0: Intel(R) Celeron(R) CPU N3060 @ 1.60GHz, 2480.32 MHz, 06-4c-04, patch 
0411
:cpu0: 

Re: No audio playback with azalia0 Intel Braswell HD Audio

2024-02-06 Thread Alexandre Ratchov
On Mon, Feb 05, 2024 at 08:28:16PM -0800, jrmu wrote:
> Greetings,
> 
> I am attempting to play audio on an HP Chromebook 11 G5 Setzer,
> but OpenBSD appears to be missing the necessary codecs. Are there any
> workarounds? I'm guessing that switching from the built-in speakers to
> headphones won't make any difference. Any suggestions appreciated.
> 

You could build a kernel with AZALIA_DEBUG and figure out  why the codec is
not supported.

> azalia0 at pci0 dev 27 function 0 "Intel Braswell HD Audio" rev 0x35: msi
> azalia0: no supported codecs



Re: Astertisk missing library

2024-02-06 Thread Stuart Henderson
On 2024-02-06, deich...@placebonol.com  wrote:
> are the libraries in the search path?

they're not normal library deps for the main binary, all dlopen()'d from
the relevant path.

> On February 5, 2024 10:54:38 AM MST, Peter Fraser  wrote:
>>I should also add the libraries re on my system, and nm says they contain the 
>>simples
>>I don't know why they are not loading.

maybe you'll get some clues by running with LD_DEBUG set in the
environment - there will be a *lot* of output so run under script(1).

or, try comparing /etc/asterisk with one of your working machines and
see what's different.

>>From: owner-m...@openbsd.org  On Behalf Of Stuart 
>>Henderson
>>Sent: Monday, February 5, 2024 7:15 AM
>>To: misc@openbsd.org
>>Subject: Re: Astertisk missing library
>>
>>On 2024-02-04, Peter Fraser  wrote:
>>> Asterisk 20.5.2 works for me two different amd64 computers that I upgraded 
>>> from 7.3  amd64  to 7.4.
>>...
>>> [Feb  4 10:33:11] NOTICE[107524]: loader.c:2405 load_modules: 280 modules 
>>> will be loaded.
>>> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined 
>>> symbol 'ast_audiosocket_connect'
>>> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined 
>>> symbol 'ast_audiosocket_init'
>>> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined 
>>> symbol 'ast_audiosocket_send_frame'
>>> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined 
>>> symbol 'ast_audiosocket_receive_frame'
>>
>>those are in res_audiosocket.so
>>
>>> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
>>> symbol 'ast_speech_new'
>>> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
>>> symbol 'ast_speech_destroy'
>>> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
>>> symbol 'ast_speech_grammar_load'
>>> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
>>> symbol 'ast_speech_grammar_unload'
>>> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
>>> symbol 'ast_speech_grammar_activate'
>>
>>and those in res_speech.so
>>
>>> asterisk:/usr/local/lib/asterisk/modules/app_stasis.so: undefined symbol 
>>> 'stasis_app_exec'
>>
>>res_statis
>>
>>> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
>>> 'ast_sip_cli_traverse_objects'
>>> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
>>> 'ast_sip_cli_traverse_objects'
>>> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
>>> 'ast_sip_cli_traverse_objects'
>>> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
>>> 'ast_sip_cli_traverse_objects'
>>> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
>>> 'ast_sip_push_task_wait_servant'
>>
>>res_pjsip
>>
>>etc. I think you may be missing something in modules.conf. I'd probably start 
>>with a copy of /usr/local/share/examples/asterisk/default/modules.conf
>>and see if that works, then tweak from there.
>>
>>--
>>Please keep replies on the mailing list.
>>
>


-- 
Please keep replies on the mailing list.



Re: No audio playback with azalia0 Intel Braswell HD Audio

2024-02-06 Thread Jan Stary
azalia0 at pci0 dev 27 function 0 "Intel Braswell HD Audio" rev 0x35: msi
azalia0: no supported codecs

You would have something like

azalia0 at pci1 dev 27 function 0 "Intel 3400 HD Audio" rev 0x06: msi
azalia0: codecs: Conexant/0x5069, Intel/0x2804, using Conexant/0x5069
audio0 at azalia0

if any codecs of this card were supported.
In particular, you don't have an audio(4) device;
there is no "workaround" to that.

Someone has to write the driver for your Braswell.
(Idealy, donate the notebook to a developer :-)

Jan


On Feb 05 20:28:16, j...@ircnow.org wrote:
> Greetings,
> 
> I am attempting to play audio on an HP Chromebook 11 G5 Setzer,
> but OpenBSD appears to be missing the necessary codecs. Are there any
> workarounds? I'm guessing that switching from the built-in speakers to
> headphones won't make any difference. Any suggestions appreciated.
> 
> Here's the output I see when using ogg123:
> 
> bsd$ ogg123 -d sndio Mozart_-_Eine_kleine_Nachtmusik_-_1._Allegro.ogg
> 
> Audio Device:   sndio audio output
> 
> Playing: Mozart_-_Eine_kleine_Nachtmusik_-_1._Allegro.ogg
> Ogg Vorbis stream: 2 channel, 44100 Hz
> Title: ADVENT CHAMBER ORCHESTRA Artist=Roxanna Pavel Goldstein, Musical 
> Director
> ERROR: Cannot open device sndio.
> 
> 
> I tried running sndiod in debug mode:
> 
> bsd$ doas sndiod -
> snd0 pst=cfg.default: rec=0:1 play=0:1 vol=8388608 dup
> snd0 pst=cfg.0: rec=0:1 play=0:1 vol=8388608 dup
> snd1 pst=cfg.1: rec=0:1 play=0:1 vol=8388608 dup
> snd2 pst=cfg.2: rec=0:1 play=0:1 vol=8388608 dup
> snd3 pst=cfg.3: rec=0:1 play=0:1 vol=8388608 dup
> helper(helper|ini): created
> poll: helper: 1
> worker(worker|ini): created
> listen(/tmp/sndio/sock0|ini): created
> default/server.device=0:1 at 1 -> opt_dev:default/0: added
> default/server.device=1:0 at 2 -> opt_dev:default/1: added
> default/server.device=2:0 at 3 -> opt_dev:default/2: added
> default/server.device=3:0 at 4 -> opt_dev:default/3: added
> poll: listen: 1 worker: 1
> sock(sock|ini): created
> listen(/tmp/sndio/sock0|ini): processed in 226us
> worker(worker|ini): processed in 1us
> sock,rmsg,widl: no messages to build anymore, idling...
> poll: sock: 1 listen: 1 worker: 1
> helper: recv: cmd = 0, num = 0, mode = 3, fd = -1
> helper: send: cmd = 3, num = 0, mode = 0, fd = -1
> helper(helper|ini): processed in 339us
> poll: helper: 1
> helper: recv: cmd = 0, num = 0, mode = 1, fd = -1
> helper: send: cmd = 3, num = 0, mode = 0, fd = -1
> helper(helper|ini): processed in 105us
> poll: helper: 1
> sock,rmsg,widl: reading 40 todo
> sock,rmsg,widl: read full message
> sock,rmsg,widl: AUTH message
> sock,rmsg,widl: reading 40 todo
> sock,rmsg,widl: read full message
> sock,rmsg,widl: HELLO message
> sock,rmsg,widl: hello from , mode = 1, ver 7
> app/ogg0.level=127 at 5 -> slot_level:ogg0: added
> snd0 pst=cfg: device requested
> worker: send: cmd = 0, num = 0, mode = 3, fd = -1
> worker: recv: cmd = 3, num = 0, mode = 0, fd = -1
> worker: send: cmd = 0, num = 0, mode = 1, fd = -1
> worker: recv: cmd = 3, num = 0, mode = 0, fd = -1
> worker: send: cmd = 0, num = 0, mode = 2, fd = -1
> worker: recv: cmd = 3, num = 0, mode = 0, fd = -1
> snd0 pst=cfg: failed to open audio device
> sock,rmsg,widl: closing
> sock(sock|zom): destroyed
> sock(sock|zom): processed in 8478us
> listen(/tmp/sndio/sock0|ini): processed in 1us
> worker(worker|ini): processed in 0us
> poll: listen: 1 worker: 1
> helper: recv: cmd = 0, num = 0, mode = 2, fd = -1
> helper: send: cmd = 3, num = 0, mode = 0, fd = -1
> helper(helper|ini): processed in 206us
> poll: helper: 1
> ^Cpoll: helper: 1
> helper: hup
> helper(helper|zom): destroyed
> helper(helper|zom): processed in 54us
> nothing to do...
> worker(worker|zom): destroyed
> listen(/tmp/sndio/sock0|zom): destroyed
> default/server.device=0:1 at 1 -> opt_dev:default/0: removed
> default/server.device=1:0 at 2 -> opt_dev:default/1: removed
> default/server.device=2:0 at 3 -> opt_dev:default/2: removed
> default/server.device=3:0 at 4 -> opt_dev:default/3: removed
> snd0 pst=cfg: draining
> snd1 pst=cfg: draining
> snd2 pst=cfg: draining
> snd3 pst=cfg: draining
> nothing to do...
> snd0 pst=cfg: deleting
> snd1 pst=cfg: deleting
> snd2 pst=cfg: deleting
> snd3 pst=cfg: deleting
> 
> Below is my dmesg output:
> 
> OpenBSD 7.4 (GENERIC.MP) #1382: Wed Sep 27 10:51:31 MDT 2023
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 2068180992 (1972MB)
> avail mem = 1985822720 (1893MB)
> random: good seed from bootblocks
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 3.0 @ 0x1fee8000 (17 entries)
> bios0: vendor coreboot version "MrChromebox-4.20.1" date 07/21/2023
> bios0: GOOGLE Setzer
> efi0 at bios0: UEFI 2.7
> efi0: EDK II rev 0x1
> acpi0 at bios0: ACPI 6.0
> acpi0: sleep states S0 S1 S3 S4 S5
> acpi0: tables DSDT FACP SSDT MCFG TCPA APIC HPET TCPA BGRT
> acpi0: wakeup devices XHCI(S3)
> acpitimer0 at acpi0: 3579545