Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Dave Yeo

Pages: [1] 2 3 ... 361
1
Applications / Re: SFTP client
« on: May 23, 2025, 04:31:07 pm »

2
Applications / Re: SFTP client
« on: May 23, 2025, 08:16:30 am »
I had a brain fart, it was getpid(). Added the include and it compiled. For modern code, it rejected GCC 9.2.0 as too old, so far only an include needed :)

3
Applications / Re: SFTP client
« on: May 23, 2025, 07:53:17 am »
There's no problem calling C code from C++ as long as the declarations are properly wrapped in extern "C" blocks.

We don't have a get_pid, but we do have getpid which libc defines in sys\process.h and it is properly wrapped.

OK, that explains things.
I actually managed to build a statically linked botan.exe and botan-test.exe, the library is over 14 MB's.
Running botan-test.exe gets quite a ways before crashing at,
...
Code: [Select]
argon2:
terminate called recursively
terminate called recursively

terminate called after throwing an instance of 'Killed by SIGABRT
pid=0xstd::system_error2f0e ppid=0x0076 tid=0x0009 slot=0x00df pri=0x0200 mc=0x0
001 ps=0x0010
'
H:\TMP\BOTAN\BOTAN-TEST.EXE  what():  Operation not permitted

terminate called recursively
Creating 2F0E_09.TRP
Moved 2f0e_09.TRP to W:\var\log\app\682fa811-2f0e_09-BOTAN-TEST-exceptq.txt
Need to add a -g somewhere. trp attached
Probably going to have to ask upstream for advice in building a working DLL. Source will need some patching to support sockets, with luck only an include but probably avoid IPv6 stuff.

4
Applications / Re: SFTP client
« on: May 23, 2025, 05:42:05 am »
I looked at Qt SFTP clients, found one but it has a dependency on botan. Spent last night looking at botan's weird Python based build system, and yes it is weird. They also refuse to support any OS that the original vendor has dropped support for.
https://github.com/sandsmark/QSsh
https://botan.randombit.net/
Botan is interesting and with makefile editing, it builds fine with a broken DLL, only failure was get_pid(), not sure about calling it from C++.

5
Mail-News / Re: Oauth2 proxy
« on: May 21, 2025, 06:07:00 am »
A python path issue?
Perhaps using _virtualenv would work if I can remember how to do it.

Seems Python3 comes with a light weight virtualenv, https://realpython.com/python-virtual-environments-a-primer/#linux-1.
Need to use bash, still the same problem,
Code: [Select]
bash-5.0# python -m pip install emailproxy
WARNING: The directory 'w:/home/.cache/pip' or its parent directory is not owned
 or is not writable by the current user. The cache has been disabled. Check the
permissions and owner of that directory. If executing pip with sudo, you should
use sudo's -H flag.
Collecting emailproxy
  Downloading emailproxy-2025.3.14-py3-none-any.whl.metadata (38 kB)
Collecting cryptography>=2.2 (from emailproxy)
  Downloading cryptography-45.0.2.tar.gz (743 kB)
     --------------------------- ----------- 524.3/743.9 kB 2.8 MB/s eta 0:00:01
     --------------------------------------- 743.9/743.9 kB 2.8 MB/s eta 0:00:00

ERROR: Invalid member in the tar file h:/tmp/pip-unpack-prwpg07h/cryptography-45
.0.2.tar.gz: '.gitattributes' would be extracted to 'h:/tmp/pip-install-eriz9zy6
/cryptography_7cbb1fea01e946c08b459fde6f7c0682/.gitattributes', which is outside
 the destination

6
Mail-News / Re: Oauth2 proxy
« on: May 21, 2025, 05:17:44 am »
It's an interesting project, though I wish I knew where the bug is in our Thunderbird as oauth2 should just work.
It's been a long time (perhaps Firefox 10 development?) since I've played with this Python stuff. So far I've done,
Code: [Select]
yum install python3-setuptools python3-setuptools_scm
python -m ensurepip --upgrade
python -m pip install --upgrade pip
python -m pip install -r requirements-core.txt

Which results in this error, (rerunning the error causing command)
Code: [Select]
K:\work\email-oauth2-proxy>python -m pip install cryptography
WARNING: The directory 'w:/home/.cache/pip' or its parent directory is not owned
 or is not writable by the current user. The cache has been disabled. Check the
permissions and owner of that directory. If executing pip with sudo, you should
use sudo's -H flag.
Collecting cryptography
  Downloading cryptography-45.0.2.tar.gz (743 kB)
     --------------------------------------- 743.9/743.9 kB 2.3 MB/s eta 0:00:00

ERROR: Invalid member in the tar file h:/tmp/pip-unpack-ye_q2rxg/cryptography-45
.0.2.tar.gz: '.gitattributes' would be extracted to 'h:/tmp/pip-install-zhxi8tme
/cryptography_a6b377d357bc4600a896c1f43f6d019b/.gitattributes', which is outside
 the destination

So it doesn't like the idea of installing a hidden file (.gitattributes) in %TMPDIR%.
According to the documentation, shouldn't need the -m parameter either, but it results in,
Code: [Select]
K:\work\email-oauth2-proxy>python  pip install cryptography
W:\USR\BIN\python.exe: can't open file 'K:/work/email-oauth2-proxy/pip': [Errno
2] No such file or directory

A python path issue?
Perhaps using _virtualenv would work if I can remember how to do it.



7
Applications / Re: General Software Testing
« on: May 21, 2025, 01:04:26 am »
Generally, it locks my computer completely. If I double click it fairly quickly after it starts so it has a frame, it doesn't seem to lock it up though I never let it run for very long as I didn't want to power cycle my computer again :)
The CPU meter is broken and likely gets confused by our fast CPU's and the multi-cores.

8
Applications / Re: warpin problem
« on: May 20, 2025, 01:03:39 am »
i deleted that file and i also deleted the whole folder. nothing helped..
i wonder where else the "(wrong) information of another installed warpin could be stored...

OS2.INI seems to have the PATH to warpin stored here. Fire up regedit2 and look close to the end of HINI_USER_PROFILE for the Warpin entry. Here it shows the expected W:\sys\install\warpin

9
Programming / Re: Qt6 Application Testing
« on: May 18, 2025, 07:07:01 pm »
yum install libraw

10
Programming / Re: EDM/2 - The API Project - Undocumented
« on: May 18, 2025, 06:54:06 pm »
Code: [Select]
G:\os2tk45>grep -ir devhelp_ *
h/entry.h:  int    (*DevHelp_OpenEventSem)();
h/entry.h:  int    (*DevHelp_SemHandle)();
h/entry.h:  int    (*DevHelp_PostEventSem)();
h/entry.h:  int    (*DevHelp_CloseEventSem)();
h/pddentry.h:extern void DevHelp_RegisterPDD(char *PDD_Name, void *PDD_Function);
h/pddentry.h:extern void *DevHelp_DynamicAPI(short Parm_Count, void *Worker);

Code: [Select]
G:\os2tk45>grep -ir devhlp_ * > out
grep.exe: book/addendum.inf: binary file matches
grep.exe: book/cp2.inf: binary file matches
grep.exe: book/sg244640.inf: binary file matches
grep.exe: write error: Disk full

Which is weird as "G:\os2tk45>grep -ir devhlp_ * | less" shows a few hundred hits. Actually, 158 hits.


11
Programming / Re: EDM/2 - The API Project - Undocumented
« on: May 18, 2025, 01:57:57 am »
Seems it is uppercased internally anyways.

12
Virtualization / Re: Win-OS/2 - Open vbesvga.drv video driver
« on: May 17, 2025, 07:32:29 pm »
Testing on real hardware, it did seem more snappy. Didn't fix my issue of full screen WinOS2 sessions hanging when closed.

13
Programming / Re: EDM/2 - The API Project - Undocumented
« on: May 17, 2025, 05:39:12 pm »
DosOpenMutexWaitSem is the one in the Programming Guide and Reference Addendum, under Additional APIs Supported in Warp Serever for e-business, so not a typo.

??? That item _is_ the typo in question.

Compare the sequence of functions in that listing with those in the Control Program Guide and Reference. Where the Addendum has DosOpenMutexWaitSem, the more authoritative CP Ref has DosOpenMuxWaitSem.

OK, I made a typo when grepping for DosOpenMuxWaitSem. Now I see it in 3 inf's and prototyped in bsedos.h.
Thanks for the correction

14
Setup & Installation / Re: Cannot update python
« on: May 17, 2025, 06:06:46 am »
Doug had this to say on the testers list in response to an earlier ANPM crash I had,
Quote
This is caused by trying to update HPLIP, HPLIP-COMMON, or HPLIP-LIBS. If you select only LIBAIO, it includes those three, and all updates properly.
Should have remembered sooner.

15
Setup & Installation / Re: Cannot update python
« on: May 17, 2025, 05:14:40 am »
I had to remove python3-createrepo_c-1.2.1-1, and then like Martin, ANPM crashed. Command line worked.

Pages: [1] 2 3 ... 361