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.


Topics - Andi B.

Pages: [1] 2 3 4
1
Programming / Parameter passing to dll - difference VAC / GCC - varargs
« on: January 20, 2024, 01:50:50 pm »
I've a dll which exports functions which I wanna call from VAC, GCC (and Watcom) compiled programs.

Problem is gcc seems to pass varargs different than VAC.
I've a function in the dll something like
Code: [Select]
ULONG         _System   xPmPrintf(char *Format, ...);which works when called by programs compiled with VAC3.65 but produces garbage when called by a gcc test program (except the first arg).

I found here http://trac.netlabs.org/odin32/ticket/19 that Dmitriy noted about a problem with gcc and varargs but can't find a solution.

Any hints?

2
Can someone please remind me where I find the ignore user setting? My KI / KNI / AI / NAI / useless non-related nonsense detector get triggered regularly.

3
Programming / Where to find Toolkit2.0 - SOM compiler .sc files....
« on: December 23, 2023, 04:58:35 pm »
I've toolkit 2.1 and probably all newer ones. Even Watcom10.6 includes some .sc files. But the project I'm working on seems to need Toolkit v2.0.

I've no clue about SOM and classes and.... but there is one .csc file in my project which constantly bothers me. There should be a way to convert this .sc file to the newer .idl form. ctoi.cmd which is included in os2tk45. But it complains about a file in toolkit21
Code: [Select]
{0}[e:\_work\pmprintf\trunk] ctoi WPSTEST.CSC
WPSTEST.CSC:
"wpobject.sc", line 440: error: Override method "somInitClass" not in base class.
"wpobject.sc", line 444: error: Override method "somNew" not in base class.
"wpobject.sc", line 448: error: Override method "somRenew" not in base class.
Number of errors: 3
error in converting WPSTEST.CSC

So I think I need toolkit20. Where can I find it? Any other ideas? Maybe I try to disable all these SOM things in pmprintf cause I guess nobody will ever use pmprintf with som classes anymore anyhow.

4
I connect to some Linux box via SSH. After figuring out all the keys stuff it works. But now I've updated to 'OpenSSH_8.4p1, OpenSSL 1.1.1s  1 Nov 2022' and see some problems/differences. As I'm not familiar with all these SSH and Linux stuff I want to ask here before opening a ticket.

Old version 'OpenSSH_5.3p1, OpenSSL 0.9.8k 25 Mar 2009' worked fine. I've colored dir (dir, ls -la, ls -ls, ...) but with new version 'OpenSSH_8.4p1, OpenSSL 1.1.1s  1 Nov 2022' the colors are gone. I know I've setup these colors in some conf file on the Linux box (I think) but don't remember where anymore. But there must be a difference between our two ssh versions. Cause I can connect with the old version at the same time as with the new ssh.exe version. Old has colored dir, new not. I'm using the same user of course.

I also noticed that with the old version 'nano' works while with the new version nano gives an 'Error opening terminal: os2.'.

Anyone knows what this 'terminal: os2. means? Or how to change? Or how to find out why the old version works better than the new one?

Additional info - the old ssh version was installed here in /usr/local/bin. No clue from where I got it but most probably not from the netlabs repository as it would have been in /usr/bin then.

5
I've tried FreeRDP to connect to different Linux boxes. It works but using FreeRDP the Linux host uses EN keyboard layout. All my Linux boxes does have German keyboards attached and work as expected when I'm sitting in front of them. My OS/2 system has a German keyboard too. But when I connect from my OS/2 system a Linux host via FreeRDP they get the English keys instead the German ones.

I don't see any setting in our FreeRDP port to translate the keys. Is there anything I'v to adjust on Linux (host) side?

6
Applications / LarsenCommander - new test version
« on: May 19, 2023, 12:07:08 pm »
Since a while I'm working on some problems in LarsenCommander again. There is still one problem I want to resolve before I make an official release. But as I'm preparing for holiday vacation I think it may be good to spread the current version to the public.

Main difference to older releases is - I reenabled big buffers for file copy operations. The advantage is much faster copy speed especially with big files. Copy speed is still not as fast as the copy command from a 4os2 command prompt but the difference is not as dramatic than before. I had to rework and extend the original dynamic buffer adaption code for this. It seems current copy speed is the maximum you can get when copying with an PM application.

The max. copy buffer size in old releases was determined by a simple algorithm and based on the setting in Options - Various - File Copy/move tab. I had to limit the buffer in some 1.7. release to 60k cause there was a subtle bug in ndfs DAV plugin which leads to some zero bytes in large files copied with the help of big buffers. The side effect was a limited copy speed at about 30MBytes/s I just discovered a few months ago. There's an old ticket about the ndpdav bug which is resolved in newer releases I think. So I think it's save to reenable big buffers again. For convenience I include my fixed ndpdav.dll in this lcmd*zip. But you probably don't need it. Current ndfs 3.1.6 also has changed in a way that such subtle plugin bugs shouldn't show up anymore. But be warned if you use old ndfs/ndpdav versions.

Lcmd also uses high memory for the copy buffer now. So if you watch your memory consumption (f.i. with above512.cmd or theseus) you may find a bit less memory usage from the scarce lower shared mem. Unfortunately this does not fix another long standing problem - copying big trees of directories sometimes leads to eat up a lot (sometimes all) lower shared memory. This may eventually bring your system down until you kill lcmd. Finally I can reproduce this problem but unfortunately I don't have a fix for this right now. If you ever run into this bug in the past, sorry there's no fix in this release for that.

In this archive I've also included the current available translations. When you want to use lcmd with another language or make your own translation look into the locale directory.

I've also checked in all current sources at the official home of LarsenCommander - https://sourceforge.net/projects/lcmd/

Have fun :-)

7
Anyone running Injoys Firewall VPN feature?

Or how to you connect securely into your home LAN from outside world?

It seems to be possible to configure an AVM Fritzbox for this task. Is there a simple how to to get this working? I mean connection from the outside with a notebook running OS/2 (or Linux or Win) to my internal OS/2 server and ...



8
I can start the daemon 'git daemon --reuseaddr --base-path=/git_repositories/ /git_rerepositories/', I can sort of connect from the other machine with 'git clone git@server:/git_repositories/test' but get
Code: [Select]
Cloning into 'test'...
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

My goal is to have git repositories on my server running OS/2. At first I started with ssh which seems to be the usual way to connect to a git server. But can't get this running. See the other thread - https://www.os2world.com/forum/index.php/topic,3175.0.html

Now I tried with git daemon which is in netlabs.exp. But can't get this to work either. Seems I've to setup a linux server instead...

9
I'm thinking about buying a HP OfficeJet Pro 7740 printer but it only supports 'HP PCL 3 GUI, HP PCL 3 Enhanced'. Usually I have printers with postscript and/or PCL5(+) support. No I wonder if I can use the features of this A3 printing engine. I guess scanner will work the same way as it does with my HP OfficeJet Pro 475dw (smb, ftp?, email). Working fax isn't that important. But I need high resolution print outs on A3 page sizes (11 x 17"). Color, duplex and tray selection.

I'm pretty sure ported programs will work good enough with the help of cups. But how about the standard OS/2 drivers? PCL 3 seems pretty old but back at the days when OS/2 drivers where written I fear it was limited to 300dpi and maybe even color didn't work work PCL3. Any knows?

10
Applications / OpenOffice default Font Arial -> Calibri?
« on: January 29, 2023, 10:41:37 am »
How can I set the default font to Calibri? Usually f.i. in Calc font is set to Arial. I think this is the same for all platforms. Is there a way to set the default to Arial? Do I have to change the default templates for that?

11
I just had a curious problem with my T540p. I've different eCS / OS/2 / ArcaOS installation next to Win10/7 on this Thinkpad. I now decided to make an additional NTFS partition available for Win and never thought this will lead to such catastrophic problem. Steps I did -
- booted OS/2 and with DFSee I created a new NTFS partition in den middle of the disk where there was some free space
- booted W10 and formated the newly partition with NTFS

A few days afterwards I wanted to boot one of the OS/2 partitions. But booting hangs after checking drive E:. Drive D: was checked before but the other JFS partitions afterwards were not checked (M: V: L: T: O: R: P: ...). The system simply hangs.

As all my installations do have JFS /autocheck:* I can't start any of the installed systems. Moreover this system can't be booted by the ArcaOS stick (known issue for this T540p). I can't boot from an old eCS CD too. I also didn't find any ALT-F1 cmd line working. What works was booting DOS from DFSee stick and changes partition type of the partition AFTER the new NTFS partition from 06 (FAT) to 07 and fix/align the one partition AFTER the NTFS one.

I think when I formated the NTFS partition from W10 this does also overwrite some stuff of the next partition behind. Or at least crippled some of the partition info of all these logical partitions. And afterwards OS/2 can't handle that and simply stopped booting. Although I do all my partitioning stuff with DFSee, Win always finds some way to destroy something. Or say it in other words, does some alignment on the disk which OS/2 can't deal with.

Now I've my systems booting again as usual. But I can't access the partition after the NTFS one anymore. Probably I've to delete it. Never thought that a simple format from W10 of an already aligned partition (with DFSee running from OS/2) can make such damage. Maybe I should let some gap around OS/2 partitions in future whenever I prepare a partition for Win.

12
Applications / 4OS2 Location Discussion
« on: January 10, 2023, 08:52:54 am »
....
4OS2 is at https://github.com/StevenLevine/4os2.
...
Gregg
Interesting. Then http://trac.netlabs.org/4os2 is outdated and should not be used anymore.

13
After uninstalling some .i686 libs I reinstalled successfully a lot of packages but can't install cups anymore -
Code: [Select]
{0}[m:\] yum install cups
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package cups.pentium4 1:2.2.13-1.oc00 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package     Arch            Version                   Repository          Size
================================================================================
Installing:
 cups        pentium4        1:2.2.13-1.oc00           netlabs-rel        2.0 M

Transaction Summary
================================================================================
Install       1 Package

Total size: 2.0 M
Installed size: 2.0 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:cups-2.2.13-1.oc00.pentium4                                1/1
Error unpacking rpm package 1:cups-2.2.13-1.oc00.pentium4
error: unpacking of archive failed on file /@unixroot/var/run/cups/certs: cpio: unlink


Failed:
  cups.pentium4 1:2.2.13-1.oc00

Complete!

{1}[m:\]
Any ideas?

in @unixroot/var/run/cups/certs there is a file created which is read only. Does not help when I delete it, it will be recreated. Reboot doesn't help either.

14
Applications / ssh - sshd
« on: October 30, 2022, 06:58:59 pm »
I want to set up a ssh server on my system. I've not much experience with SSH until now. I installed the openssh packages (yum install openssh-servers ..) but can't start the daemon.

I tried all combinations with or without path like p:\usr\sbin\sshd.exe or P:/usr/sbin/sshd.exe ... but I get always -
Code: [Select]
sshd re-exec requires execution with an absolute path

Anyone running successfully an ssh server on OS/2?

15
As some of you may know I'm not very satisfied with startup speed of the calendar on our platform. It may depend on the number of (repeating) entries I have in my calendars, or the number of calendars (2-6), or ...

Problem is when starting the calendar it takes about a minute or more to populate. For this time part of the system hangs (seems so). If I activate Lightning in SM then SM hangs and the whole WPS including the mouse pointer. When using Thunderbird (and disable Lightning in SM) only TB hangs for that long time. WPS (and other programs) works after a few seconds.

Now I added another calendar to TB and see this message at the bottom of TB window 'Checking Calendar 3 of 4294967299'. Maybe there is some problem with signedness? If TB really wants to check 4294967299 calendars this may be another reason why it takes so long.

I've to say in this case the real problem seems to be that our TB port can't handle a new authentication for the new calendar. As this is what I would expect at that time. It's the 4. (not the 3.) calendar that I added and this one does not have authentication information yet. Calendar location is something like 'https://kalender.gmx.de/begenda/dav/emailaddress@gmx.net/calendar' if this is of interest.

One side not - gmx.de cause I discovered with TB38 on Win that TB38 is not able to handle two authentications to calendars at the same domain (gmx.net). So I choice gmx.net, gmx.at, gmx.de. A general problem of TB38 not our port. Also the time delay at startup maybe a general TB38 problem that only is not so much annoying on other platforms than on ours.

Anyway, I'll try my best to keep my email and calendars working as good as possible on OS/2. And until now, most works still astonishing well. THANKS Dave (and bww and...). Maybe there are some hints for others in this thread.

Pages: [1] 2 3 4