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 ... 307 308 [309] 310 311 ... 356
4621
It's probably how it is compiled or linked. You can use exehdr to change it.
exehdr /PMTYPE:PM foo.exe

4622
Programming / Re: Compiling latest samba-server
« on: June 14, 2016, 01:12:39 am »
Quote
Analyzing config.log provides the following:
weakld: cannot open library file '\@unixroot\usr\lib\libcx0_s.a'.
emxomfld: weak prelinker failed. (rc=8)

These error messages can be deceiving, can you look in config.log for the command line that triggered the error, you can leave out all the defines

4623
Programming / Re: Compiling latest samba-server
« on: June 12, 2016, 08:44:51 pm »
Make sure this is in your environment, perhaps in config.sys,
Code: [Select]
REM [*] Unix environment
SET SHELL=sh.exe
SET EMXSHELL=sh.exe
SET CONFIG_SHELL=sh.exe
SET MAKESHELL=sh.exe
SET EXECSHELL=sh.exe
set LANG=en_US

Not sure about the LANG if you're using a non-English environment.

4624
Applications / Re: Temperature monitor
« on: June 12, 2016, 06:53:47 pm »
I use smartbar, but if it will work depends on used chipsets. ..

I thought I'd give this a try, installing the latest release from Hobbes (3.2) causes a fail in the TCPIP module though:
[...]

It works here with my dialup connection but where it is tapping into the TCPIP stream seems weird. My computer is also the gateway for the house with Injoy doing NAT. If I load a page here, the Smartbar TCPIP monitor correctly shows the traffic but if the traffic goes from PPP1 to LAN0 or the other way, it does not show up in Smartbar even though it shows in the ecentre widget and the modem is blinking. I also notice in the settings that traffic ranges are for dial-up speeds.
The program needs updating for modern Internet useage

4625
Applications / Re: Firefox 38.8.0 for OS/2 Beta 7
« on: June 12, 2016, 06:38:47 pm »
Ideally only RPM/YUM should touch any files in @UNIXROOT and we're lucky to only have one repository and can mostly avoid rpmhell (conflicting rpms from different sources).
There's still problems like glib2 currently missing charset.alias, http://trac.netlabs.org/rpm/ticket/181#ticket
What really gets me is that RPM seems fragile. I have 2 installs of it and they're both subtly broken with some programs that won't update. I also think that the maintainers have taken the splitting of packages too far. While some programs need to be DLLs for various reasons, we have way too many which makes having conflicting DLLs more likely. Doesn't help having the 8.3 DLL name limit either.

4626
Applications / Re: Temperature monitor
« on: June 12, 2016, 06:39:43 am »
Really it depends on your hardware. I usually use coretemp (hobbes), which directly reads my C2D cpu temps, eg currently 35/50 with the 2nd core disabled due to idleness so it doesn't update. Just tried smartbar which reports my CPU (maybe the sensor in the socket) as 27 while my MB is running at 246 :) Previously I used various temp monitoring programs depending on chipset, the last being XMBMon2.
Coretemp being open source could probably be adapted to read any modern CPU's temperature register and might currently work with newer Intel CPU's

4627
Programming / Re: Compiling latest samba-server
« on: June 12, 2016, 02:19:04 am »
Do you have Perl installed? If not, then install it. Probably needs a ticket as well as autoconf and automake depend on Perl, unluckily for some stupid reason (probably because RH does it) there are a lot of Perl sub-packages, not sure which are needed but quite likely you're missing a sub-package, perhaps perl-file or similar. (to lazy to wait 20 minutes for Arca Noae Package Manager to load, hate RPM)

4628
Programming / Re: Compiling latest samba-server
« on: June 11, 2016, 06:55:27 pm »
Probably also need automake and libtool as well.

4629
Applications / Re: How to display how much ram is installed
« on: June 10, 2016, 05:15:49 pm »
There are lots of utilities to show total ram/used ram/swap. I have memwatch here (should be on Hobbes along with many others)
Ramfs dynamically grows and shrinks and uses swappable memory so will swap out if it grows bigger then available memory. It has some quirks, generally only shows 64MBs free and can give out of space errors for large files. Also doesn't work right for LIBC symlinks.
It's easy to test.

4630
Programming / Re: The OS/2 API Project at EDM/2
« on: June 09, 2016, 04:20:18 pm »
I notice that lxlite -c:exemap NLS.DLL outputs
Code: [Select]
Module Entry Table
 Index ┬ Entry Type ┬ Entry Attributes─────────────────────
 00001 │  Forwarder │ -> DOSCALLS.391(DOSCASEMAP)
 00002 │  Forwarder │ -> DOSCALLS.392(DOSGETCOLLATE)
 00003 │  Forwarder │ -> DOSCALLS.393(DOSGETCTRYINFO)
 00004 │  Forwarder │ -> DOSCALLS.394(DOSGETDBCSEV)
 00005 │  Forwarder │ -> DOSCALLS.395(DosQueryCtryInfo), (DosQueryCtryInfo)
 00006 │  Forwarder │ -> DOSCALLS.396(DosQueryDBCSEnv), (DosQueryDBCSEnv)
 00007 │  Forwarder │ -> DOSCALLS.397(DosMapCase), (DosMapCase)
 00008 ┴  Forwarder ┴ -> DOSCALLS.398(DosQueryCollate), (DosQueryCollate)

No mention of "Dos32QueryCtryInfo"

4631
Setup & Installation / Re: Need help with QSINIT
« on: June 04, 2016, 09:10:55 am »
Will the RAM disk work with less then 4GBs of ram installed?

4632
Applications / Re: Firefox 38.8.0 for OS/2 Beta 7
« on: June 01, 2016, 04:19:40 pm »
i386 has been depreciated. Too many programs need instructions (for atomic operations) that are only available on i486 or newer and i686 seems like a good minimum requirement

4633
Programming / Re: Compiling PM app on 2016.
« on: June 01, 2016, 05:42:05 am »
You can compile a PM program with just the libc headers, which include their own version of os2.h which can load os2emx.h or the toolkit headers. The toolkit headers are generally better and some programs such as MPlayer need them (to pull in the 4cc stuff).
Looks like GCC is not happy doing the conversion and probably needs a cast, newer GCCs are picky.
You also have to include os2.h correctly by defining some things, depending on what functions you're using. The toolkit docs are the source of exactly what. Generally this will work
Code: [Select]
#define INCL_BASE
#define INCL_PM
#include <os2.h>

You should also use the -Zomf flag to link to native libs.
Code: [Select]
gcc -Zomf -o WELCOM.EXE WELCOM.C
GCC actually outputs aout object code, an ancient format and can use emxomf to convert it to the native OMF format.

4634
Programming / Re: Compiling PM app on 2016.
« on: May 31, 2016, 04:50:08 pm »
Your choices are OpenWatcom, which does have an IDE and is sorta still alive and open source or GCC probably along with make, though you can just do gcc -o hello.exe hello.c, use batch files or other makes. Linker options include ld.exe (ours is so old it is GPL v1 with RMS as primary authour), wlink, the OpenWatcom linker, which is preferred as we the source and Steven has checkin rights, or the IBM linkers.
SD386 on Hobbes is an open source debugger though IBM seems to have forgot a license when they open sourced it.

For your first try, you might want to install OpenWatcom and try the IDE. There is also the "Programming OS/2 Warp for Dummies" book.
Ask here for advice on compile flags etc.

4635
Applications / Re: Firefox 38.8.0 for OS/2 Beta 7
« on: May 31, 2016, 12:27:02 am »
Perhaps Flash remembers where it found NSPR previously or it's hard coded to look for it in the program directory. If on the second run it works...
Understand that Flash is no longer supported and buggy when used with the recent Mozilla releases so it is suggested to uninstall it.

Pages: 1 ... 307 308 [309] 310 311 ... 356