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

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

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

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

For details, see and

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

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.

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.

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.

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.

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.

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.

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?

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.


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"

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

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, ...).

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.

Hardware / Re: Getting a new printer
« on: June 06, 2024, 09:25:38 am »
If you use the Manage Printers GUI then there's no need to clean the PPD manually - just select Import PPD from the menu and it will handle all of that automatically.
Does it import more than one ppd files too? I've tried to import at least 4 ppds for different printers in the lasts 20 years. Most of them with the IBM cli tools before your versions come up. I'm thinking about if it's worth starting from scratch again.

Btw. I've sometimes still the problem with your psndrv (?) that it takes very long until the page came out. Sometimes pages are printed only after a reboot. Also I can't still print with small margins (less than 12,xmm). Although one of my printers allow 4-5mm the other can print without any margin on the other system. Maybe my setup is mess up hence the question to the expert on this topic :-).

Hardware / Re: Getting a new printer
« on: June 05, 2024, 09:51:39 am »
Hi Martin

Looking at sane supported scanners I see the ecotank l3160 is supported by current sane release   man page

So, looks like you may have to wait until current sane release - 1.3.1 - is ported to see if the l4150 will also work...


Personally I've no need for sane since a long time. Both my Brother MFC-J6957DW and my HP Officejet  X476dw scan to SMB shares. At least the Brother to ftp too. I usually store some scan profiles to some of my computers including my wifes one. Works with our Samba. Didn't test on Linux until now. Both are connected via Ethernet cause they are used by different systems and I really dislike and avoid USB when possible.

On both you can set all the scan settings (pdf/jpeg/resolution/dublex/.....) on the local display or you can use the web interface. The web interface works with our old SM. Never wanna go back again playing with sane/Tame/... or such.

Applications / Re: AOS RAM Disk
« on: June 04, 2024, 09:15:58 am »
I've setup the RAM disk but don't use it for anything except testing. I tried formated with HPFS and JFS but no matter what it's slower than any of my SSDs. Also tried HPFS (or FAT?) strategy 1 (?) which should be faster but that does not work with the applications I tried. FAT32 of course is the slowest file system for use on OS/2. So don't even think about it could be a good option on anything else then data interchange with other OSes. IMHO when you have a SSD in your system it's not worth playing with RAM disk.

Hardware / Re: Modern Motherboards - Whats working
« on: June 03, 2024, 09:08:02 am »
file 'C:\OS2\svgadata.pmi'
I ever thought this file is used for SNAP only. But maybe all gradd based drivers use is? SNAP manual deinstallation instruction mention that deleting this file is needed. 

Pages: [1] 2 3 ... 57