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 - Andi B.

Pages: [1] 2 3 ... 57
1
...
@Andi, the OpenWatcom debugger won't work, need to use a native debugger.
I thought I had it up and running long time ago. But maybe my memory is wrong.

What I did some time ago was booting up to command line with netbios drivers enabled and the watcom debug/netbios driver and remote debugged a cli program from another machine with wdw. I saw (wdw told me) that my cli program wanted to call a ..... (?) function which wasn't available when booted up only to cli without pmshell.

2
Lars, do you have any chance to start it in OpenWatcom Debugger (wd.exe)?

3
Quote
Unfortunately it is not possible to use PMDLL when booted to a commandline, and I don't know about an existing VIO-equivalent.
chkdll32.exe. Not tested if it works from ALT-F1.

4
Quote
BTW, libc seems to use _system, not __system__
I also wondered where the leading and trailing __ coming from. You see above I used _System which something magically changed to __system__. The same goes with other such attributes. cdecl is converted to __cdecl__ and so on IIRC. If an attribute is not recognized f.i. 'system' the error message is different.


5
Hi/2.

You can append `asm("variable_name")' to a variable declaration like:

Quote
__attribute__ ((dllexport)) extern const char *NdpTypes[] asm("NdpTypes");

You can use `__asm__' instead of `asm'.

For details, see http://trac.netlabs.org/libc/wiki/Faq#Howtodeclareavariablesoitwontgetanunderscore and https://gcc.gnu.org/onlinedocs/gcc/Asm-Labels.html.

Thank you so much. This works, though I've to test even more.

Quote
_System
I get -
Code: [Select]
./h/ndextpl2.h:354:102: error: '__system__' was not declared in this scope
  354 | extern const char __attribute__((visibility("default"))) __attribute__ ((dllexport)) __attribute__ ((_System))*NdpTypes[];
with that. As with a lot of other combinations I tried.

.def file - the whole thing started as I could not find out how to convince
Code: [Select]
g++.exe (GCC) 9.2.0 20190812 (OS/2 RPM build 9.2.0-5.oc00)to use a .def file. So I thought it's more clear to put such thing straight into the code.

Thanks for all inputs.

6
Browsers like Seamonkey or Firefox with the versions we have still support ftp://user:pwd@server....

Not sure if we ever had a port of Filezilla.

ftp.exe cli or ftppm (or was it pmftp.exe?). At least with Warp connect these should be included anyway.

7
I tried various combinations of dllexport (which seems to be mandatory to export the symbol) and stdcall cdecl... But I ever end up with exporting _NdpTypes instead NdpTypes. I was under the impression that c++ don't add the _ but obviously I misinterpreted some stuff.

Another idea, is there any emx tool which can modify the exported symbols? Or add a new symbol to a dll which references to the orignal?

Btw. this all started cause I didn't manage to convince c++/linker to work with a .def file as it was used with icc or watcom. You know I'm not experienced with all this stuff so there is much guessing on my side.

8
I do not use MATE currently, but I think that mate-session-save might be the thing you are looking for.
Unfortunately this is not what I'm looking for. I like a window manager or program which stores the window positions and sizes on the desktop when the program is closed and restores it when the same program it started again. F.i. when I start Semonkey the browser window takes always about 1500x1000 pixel at position x, y 200, 200 (from bottom left) whereas the email window is sized about 800x1000 pixel at 2500x1300 and the calendar (lightning) window is below the email window at about 2500x200 sized 1200x800.

This is (was) the standard behavior with OS/2 and until Win7 I think.

9
Hardware / Asrock B550M Pro4 - anyone tested this?
« on: July 09, 2024, 01:17:38 pm »
This board looks pretty good to me regarding all the interfaces I like. Anyone tested this in CSM/legacy mode with a Ryzen 7 with integrated graphic (5700G I wanna have)?
- Memory available to OS/2 > 3GB?
- Ryzen 7 graphic with Panorama and 3840x2160 working?
- M2 slots working for boot device?

I know there is a thread about the B450M Pro4 but B550M Pro4 I would like.

10
Off Topic discussions / Which Linux desktop for long time OS/2 users?
« on: July 07, 2024, 12:30:18 pm »
I've played a bit with Linux systems in the last months and I'm a bit familiar with Debian now. I've a NAS running Debian and OpenMediaFault which also serves my git repositories. I'm also running a Debian box with MATE which I connect with RDP from my main OS/2/eCS/ArcaOS system when I need a newer browser.

MATE is not a bad choice. But what I didn't find with any Linux I tried until now is, how can I convince the desktop to remember the window position of my programs. I understand there are people outside there who work on very small displays like with notebook and they 'full screen' every program the use. But I'm used to big displays. 2 times 24" at least or 42.5" are my standard displays. I need a window manager like the WPS who respect my needs. Not the needs of smartphone junkies or notebook users only. My mail window have to stay near top right. Chatzilla near bottom right (but not below or over some task bars). Browser windows near the center/bottom. Various other programs have to be placed on the different places I closed them last time.

Which Linux window manager or which setting can do that the way it was standard the last decades? Did I overlook some setting or helper program? On later Windozes I've to use a WindowManager utility for this. At least there is a solution. But on Linux?

Btw. RDP should work too. I remember that's the reason I didn't test KDE plasma and Gnome at first as I understand they use Wayland which TTBOMK does not work with RDP.

11
I'm trying to build a dll which should export some functions and global variables. I made this long time ago I think with our gcc3.xx but now want to do the same with our g++.exe (GCC) 9.2.0.

I think exporting symbols is disabled now by default so I added to the functions I want to export
Code: [Select]
__attribute__ ((dllexport)) which works fine. Now when I look at my dll with
Code: [Select]
lxlite /C:exp myown.dllI see the exported functions as I expected.

But my global variables still have the C naming convention leading _ which I don't like. F.i. I have -
Code: [Select]
00048 │ _NdpAttribute
00049 │ _NdpPropertiesInfo
00050 ┴ _NdpTypes
but I wanna have them without the _

The variables are defined that way -
Code: [Select]
__attribute__ ((dllexport)) extern const char *NdpTypes[];and I use g++ instead gcc. So I thought it should work the same as with the functions (they don't have the _).

Any thoughts?


12
Applications / Re: ArcaOS v5.1 and VirtualBox OS/2 Version
« on: June 29, 2024, 11:46:04 am »
For some reasons I stay with 5.0.6. I remember playing a while to get 5.0.51 working as stable as 5.0.6 but gave up. Would be fine if we could make a newer version working. Although I'm sure the biggest problem of VBOX for us (massive usage of lower shared memory) isn't better with newer versions.

Quote
VIRTUALADDRESSLIMIT=3072

Would suggest VIRTUALADDRESSLIMIT=2816 instead. Here strange things happen with 3072. I've noted some time ago " neither simplebrowser nor Seamonkey nor ndpiso plugin works with 3072 -> 2900"

13
Programming / Re: Compiling PM Samples with OpenWatcom
« on: June 11, 2024, 09:31:31 am »
Just one question, any idea how do you add the "bldlevel information" that is on "SCALE.DEF" to be included on the .exe ?
IMO the usual way is to add the description (bldlevel string) in the .def file and link this with the linker call. Or define in directly with the linker call (option description).

F.i. a line in .def looks like 'option    description @buildlevel.txt' where buildlevel.txt holds the current information (usually updated with a script to add current build date/time). One watcom project come to my mind - 4os2. I would compile it and look at the output to see how it exactly works. (quick copy paste from master.mif there wlink $(lflags) @xxxx.def file { $(4os2objs) }. Unfortunately 4os2 build files are a bit strange and hard to read.

wlink ... option description @..\buildlevel.txt file xx.obj or
wlink ... option description 'My buildlevel in proper format' ...  should work

14
Applications / Re: AOS RAM Disk
« on: June 07, 2024, 10:03:51 am »
...
There are too many variables to even start to estimate speed, never mind try to compare it.
...
True but not fully. You can compare your own SSDs and RAMDISK and cache settings very well when you use the same test method. You also can give others a clue what seems to be possible on other systems compared to yours. F.i. before the post here I never saw any system with only nearly that fast RAMDISK as posted here. The same goes with NVM compared to SSD which is interesting to me. I didn't bother playing with NVM before and so don't have any experience myself until now.

On the other hand I don't rely on values of LarsenCommander UNTIL I've
- rechecked the same copy operation from command line and
- I repeated the test numerous times and
- the whole copy process (number of files and/or size of files) takes more than 15-30 seconds

Remember I'm the one how tweaked the copy algorithm in LCMD :-) Although I trust the values LCMD sums up you've to be careful to extrapolate what you're really measure (filesystem cache performance, SSD write/read performance or only SSD cache performance, ...).


15
Applications / Re: AOS RAM Disk
« on: June 06, 2024, 09:32:09 am »
.... IMHO when you have a SSD in your system it's not worth playing with RAM disk.
To correct myself this seems to be not valid for other/newer systems. The numbers Doug posted on the other thread are much better than on my system. On my old system I can get transfer rates up to 160-180MBytes/s for SSDs and conventional (spinning?) disks compared to the slow ~60MBytes/s to the RAM disk. Maybe I will change my mind when I build up a new system with NVM and faster RAM some times.

Pages: [1] 2 3 ... 57