Date: Sun, 25 Sep 2005 00:05:20 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 616 ************************************************** Saturday 24 September 2005 Number 616 ************************************************** Subjects for today 1 Re: mmap/ munmap functions : Dave Yeo" 2 Re: mmap/ munmap functions : Knut St. Osmundsen" 3 configure problems : Dave Saville" 4 Re: mmap/ munmap functions : Paul Smedley 5 Re: configure problems : Steven Levine" 6 Re: configure problems : Dave Yeo" **= Email 1 ==========================** Date: Fri, 23 Sep 2005 07:29:58 -0800 From: "Dave Yeo" Subject: Re: mmap/ munmap functions On Thu, 22 Sep 2005 20:47:37 +0930, Paul Smedley wrote: >Hi All, >Anyone have some source to implement mmap and munmap for use with >Innotek GCC? > >I see on hobbes there's a lib for use with emx - has anyone used this >with Innotek GCC? I have something here called MMAP-1_77-SRC. Unluckily rather then producing mmap.dll it produces mmf.exe. (a test program) Attempting to build with GCC 3.3.5 produces errors [I:\usr\src\MMAP-1_77-SRC]make gcc -I. mmf_test.o mmf.o mmf.o: Undefined symbol _DosSetExceptionHandler referenced from text segment mmf.o: Undefined symbol _DosOpen referenced from text segment mmf.o: Undefined symbol _DosQueryFileInfo referenced from text segment mmf.o: Undefined symbol _DosClose referenced from text segment mmf.o: Undefined symbol _DosAllocMem referenced from text segment mmf.o: Undefined symbol _DosClose referenced from text segment mmf.o: Undefined symbol _DosClose referenced from text segment mmf.o: Undefined symbol _DosFreeMem referenced from text segment mmf.o: Undefined symbol _DosQueryMem referenced from text segment mmf.o: Undefined symbol _DosSetFilePtr referenced from text segment mmf.o: Undefined symbol _DosWrite referenced from text segment mmf.o: Undefined symbol _DosWrite referenced from text segment mmf.o: Undefined symbol _DosQueryMem referenced from text segment mmf.o: Undefined symbol _DosSetMem referenced from text segment mmf.o: Undefined symbol _DosSetFilePtr referenced from text segment mmf.o: Undefined symbol _DosRead referenced from text segment mmf.o: Undefined symbol _DosSetMem referenced from text segment mmf.o: Undefined symbol _DosSetMem referenced from text segment make: *** [mmf_test.exe] Error 1 Probably just needs a define defined and it does look like it uses the same API as mmap. If you'd like I can send it to you. Further investigation points to the source never being released and also that mmap/munmap was written in pascal. There is a good chance it would work with Innotek_libc by regenerating the lib or linking directly against the DLL Dave **= Email 2 ==========================** Date: Fri, 23 Sep 2005 18:03:11 +0200 From: "Knut St. Osmundsen" Subject: Re: mmap/ munmap functions Dave Yeo wrote: > On Thu, 22 Sep 2005 20:47:37 +0930, Paul Smedley wrote: > > >>Hi All, >>Anyone have some source to implement mmap and munmap for use with >>Innotek GCC? >> >>I see on hobbes there's a lib for use with emx - has anyone used this >>with Innotek GCC? > > > I have something here called MMAP-1_77-SRC. Unluckily rather then producing > mmap.dll it produces mmf.exe. (a test program) Attempting to build with GCC 3.3.5 > produces errors > [I:\usr\src\MMAP-1_77-SRC]make > gcc -I. mmf_test.o mmf.o > mmf.o: Undefined symbol _DosSetExceptionHandler referenced from text segment > mmf.o: Undefined symbol _DosOpen referenced from text segment > mmf.o: Undefined symbol _DosQueryFileInfo referenced from text segment > mmf.o: Undefined symbol _DosClose referenced from text segment > mmf.o: Undefined symbol _DosAllocMem referenced from text segment > mmf.o: Undefined symbol _DosClose referenced from text segment > mmf.o: Undefined symbol _DosClose referenced from text segment > mmf.o: Undefined symbol _DosFreeMem referenced from text segment > mmf.o: Undefined symbol _DosQueryMem referenced from text segment > mmf.o: Undefined symbol _DosSetFilePtr referenced from text segment > mmf.o: Undefined symbol _DosWrite referenced from text segment > mmf.o: Undefined symbol _DosWrite referenced from text segment > mmf.o: Undefined symbol _DosQueryMem referenced from text segment > mmf.o: Undefined symbol _DosSetMem referenced from text segment > mmf.o: Undefined symbol _DosSetFilePtr referenced from text segment > mmf.o: Undefined symbol _DosRead referenced from text segment > mmf.o: Undefined symbol _DosSetMem referenced from text segment > mmf.o: Undefined symbol _DosSetMem referenced from text segment > make: *** [mmf_test.exe] Error 1 > #define INCL_BASE #include Kind Regards, knut **= Email 3 ==========================** Date: Fri, 23 Sep 2005 17:55:26 +0100 (BST) From: "Dave Saville" Subject: configure problems The Topfield range of PVRs has the ability to run user written software to alter the way the box functions. Topfield only release the cross compiler to run under cygwin. A guy in Australia has come up with a script to build it all on other platforms. I just had to try it :-) I had to hack the makefile a bit - backslashes and adding sh in front of invoked scripts etc. Much to my amazement it downloaded all required files *and* patched them. Problems, of course, started as soon as it tried to run configure. Seeing as this is a highly customised configure for the cross compiler what would be the best course to resolve the issues? The first hurdle is getting it to like the HOST string. TIA -- Regards Dave Saville **= Email 4 ==========================** Date: Sat, 24 Sep 2005 03:48:40 +0930 From: Paul Smedley Subject: Re: mmap/ munmap functions Hi Dave, Dave Yeo wrote: > On Thu, 22 Sep 2005 20:47:37 +0930, Paul Smedley wrote: > >> Hi All, >> Anyone have some source to implement mmap and munmap for use with >> Innotek GCC? >> >> I see on hobbes there's a lib for use with emx - has anyone used this >> with Innotek GCC? > > I have something here called MMAP-1_77-SRC. Unluckily rather then producing > mmap.dll it produces mmf.exe. (a test program) Attempting to build with GCC 3.3.5 > produces errors > Probably just needs a define defined and it does look like it uses the same API as > mmap. If you'd like I can send it to you. > Further investigation points to the source never being released and also that mmap/munmap was written in pascal. There is a good chance it would work with Innotek_libc by regenerating the lib or linking directly against the DLL > Dave Yeah please send it over. Cheers, Paul. **= Email 5 ==========================** Date: Fri, 23 Sep 2005 15:37:28 -0700 From: "Steven Levine" Subject: Re: configure problems In <0064641480.00000JWX at pooh.deezee.org>, on 09/23/05 at 05:55 PM, "Dave Saville" said: >A guy in Australia has come up with a script to build it all on other >platforms. I just had to try it :-) >I had to hack the makefile a bit - backslashes and adding sh in front of >invoked scripts etc. Why? What version of autoconf was used to build the configure script? For configure scripts generated by reasonably recent versions of autoconf, I find set CONFIG_SHELL=d:/bin/sh.exe set MAKESHELL=d:/bin/sh.exe set SHELL=d:/bin/sh.exe :: ensure gnu install found set PATH=d:\usr\bin;%PATH set PATH=d:\usr\autoconf_257\bin;%PATH title GNUDev echo Remember to export ac_executable_extensions=.exe from bash gets pretty good results. >as this is a highly customised configure for the cross compiler what >would be the best course to resolve the issues? The first hurdle is >getting it to like the HOST string. If you want detailed guesses, you are going to have to provide detailed data. A link to the configure script and some snippets from config.log would be a good place to start. Regards, Steven -- ---------------------------------------------------------------------- "Steven Levine" MR2/ICE 2.67 #10183 Warp4.something/14.100c_W4 www.scoug.com irc.fyrelizard.com #scoug (Wed 7pm PST) ---------------------------------------------------------------------- **= Email 6 ==========================** Date: Fri, 23 Sep 2005 19:10:36 -0800 From: "Dave Yeo" Subject: Re: configure problems On Fri, 23 Sep 2005 17:55:26 +0100 (BST), Dave Saville wrote: >The Topfield range of PVRs has the ability to run user written software to >alter the way the box functions. Topfield only release the cross compiler to >run under cygwin. > >A guy in Australia has come up with a script to build it all on other >platforms. I just had to try it :-) > >I had to hack the makefile a bit - backslashes and adding sh in front of >invoked scripts etc. Instead of hacking the makefile you should just do a set MAKESHELL=sh.exe > >Much to my amazement it downloaded all required files *and* patched them. >Problems, of course, started as soon as it tried to run configure. Seeing as >this is a highly customised configure for the cross compiler what would be the >best course to resolve the issues? The first hurdle is getting it to like the >HOST string. If there is a configure.in (or configure.ac) you could try running autoconf to rebuild configure in a more OS/2 friendly way. Dave