Date: Sun, 11 Apr 2004 00:04:05 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 344 ************************************************** Saturday 10 April 2004 Number 344 ************************************************** Subjects for today 1 Re: Libtool & DLLs : Andreas Buening 2 Re: Make dist : Andreas Buening 3 Re: INFO files : Dave and Natalie" 4 Re: INFO files : Neil Waldhauer" 5 Building EMXBIND : John Poltorak 6 TeX : John Poltorak 7 Re: Problem building AWK : John Poltorak 8 structure has no member named `st_blksize' : John Poltorak 9 Re: structure has no member named `st_blksize' : Andrew MacIntyre 10 Re: structure has no member named `st_blksize' : Andreas Buening 11 Re: structure has no member named `st_blksize' : John Poltorak 12 Re: structure has no member named `st_blksize' : Andreas Buening **= Email 1 ==========================** Date: Fri, 09 Apr 2004 15:58:10 +0200 From: Andreas Buening Subject: Re: Libtool & DLLs John Poltorak wrote: > > I've just been looking at Libtool v1.4.3 which has been ported to OS/2 and > trying out some of the demoes, but didn't see anything which created a > DLL. > > Does anyone have a simple example of how to create one using libtool? Basically the same as for autoconf/automake only. You have to add AC_LIBTOOL_WIN32_DLL AC_PROG_LIBTOOL (in this order!) to your configure.ac before your *OUTPUT* macros. And, of course, instead of bin_PROGRAMS you need something that produces a library. I guess, you need lib_LTLIBRARIES = libhello.la in your configure.ac. This should produce a hello.{a|lib|dll} depending on your configure options and env. vars. To get all necessary files you have to run "libtoolize -c" or so before you run aclocal and the other autotools. (Alternatively you can copy the missing files like libtool.m4 and ltmain.sh manually into your package directory.) Bye, Andreas **= Email 2 ==========================** Date: Fri, 09 Apr 2004 15:57:55 +0200 From: Andreas Buening Subject: Re: Make dist a > Does anyone know anything about the DIST target in Makefiles or where I > can find some info about it? > > I suspect it is related to creating a distributable package... If so, I'd > like to explore the possibility of using it to make binary packages of > various apps straight from the original source. It produces a .tar.gz containing all source files in the current directory. Bye, Andreas **= Email 3 ==========================** Date: Fri, 09 Apr 2004 08:09:24 -0800 From: "Dave and Natalie" Subject: Re: INFO files On Fri, 9 Apr 2004 10:15:33 +0100, John Poltorak wrote: >On Thu, Apr 08, 2004 at 04:09:16PM -0600, John Drabik wrote: >> On Thu, 8 Apr 2004 09:55:13 +0100, John Poltorak wrote: >> >> >Is there a PM Info viewer available? >> >> Does NewView on Hobbes handle them the way you want? > > >It would be nice if it did ;-)... > >I'm talking about GNU Info files rather than OS/2 INF files. Perhaps Aaron would be open to extending NewView to Info and Man pages? Dave **= Email 4 ==========================** Date: Fri, 9 Apr 2004 09:50:06 -0700 From: "Neil Waldhauer" Subject: Re: INFO files On Fri, 09 Apr 2004 08:09:24 -0800, "Dave and Natalie" wrote: > Perhaps Aaron would be open to extending NewView to Info and Man pages? I'd almost rather have a particular viewer for info and one for man rather than combine all those functions with a program whose job it is to exactly emulate OS/2 view for the .HLP and .INF files. -- Neil Waldhauer, neil at blondeguy.com **= Email 5 ==========================** Date: Fri, 9 Apr 2004 18:25:52 +0100 From: John Poltorak Subject: Building EMXBIND Can anyone tell me how easy it is to build EMXBIND? Is there a Makefile for it? I know I tried building EMX/GCC at one point but got hopelessly stuck... -- John **= Email 6 ==========================** Date: Fri, 9 Apr 2004 19:16:40 +0100 From: John Poltorak Subject: TeX Does FreeBSD include TeX? And if so how much does it differ from emTeX? Also does anyone know if emTeX includes source? I'd like to rebuild it use a more FHS compliant directory structure. Can anyone remind me where the latest version of emTeX can be found? Is this it:- ? http://tug.ctan.org/tex-archive/systems/os2/emtex/?action=/tex-archive/systems/os2/ -- John **= Email 7 ==========================** Date: Fri, 9 Apr 2004 19:36:32 +0100 From: John Poltorak Subject: Re: Problem building AWK On Thu, Apr 08, 2004 at 10:25:25PM +0100, John Poltorak wrote: > > > Here is a problem I had before when building AWK After fixing the LD=ld problem, I now get:- cd awklib && make all make[1]: Entering directory `U:/unixos2/workdir/gawk-3.0.3/awklib' gcc -g -O ./eg/lib/pwcat.c -o pwcat gcc -g -O ./eg/lib/grcat.c -o grcat ../eg/lib/grcat.c: In function `main': ../eg/lib/grcat.c:23: structure has no member named `gr_passwd' make[1]: *** [grcat] Error 1 make[1]: Leaving directory `U:/unixos2/workdir/gawk-3.0.3/awklib' make: *** [awklib/all] Error 2 cd doc && make info make[1]: Entering directory `U:/unixos2/workdir/gawk-3.0.3/doc' make[1]: Nothing to be done for `info'. make[1]: Leaving directory `U:/unixos2/workdir/gawk-3.0.3/doc' ../mkinstalldirs /usr/local/bin /usr/local/share/awk \ /usr/local/lib /usr/local/info /usr/local/man/man1 /usr/local/libexec/awk mkdir /usr/local/share/awk mkdir /usr/local/libexec mkdir /usr/local/libexec/awk rm -f /usr/local/bin/gawk fullname=gawk-3.0.`./gawk '{print $3}' ./patchlevel.h` ; \ ../install-sh -c gawk /usr/local/bin/$fullname ; \ (cd /usr/local/bin; ln $fullname gawk) SYS1041: The name .\gawk is not recognized as an internal or external command, operable program or batch file. (cd /usr/local/bin; \ if [ ! -f awk ]; \ then ln gawk awk; \ fi; exit 0) cd doc && make install make[1]: Entering directory `U:/unixos2/workdir/gawk-3.0.3/doc' ..././install-sh -c -m 644 ./gawk.1 /usr/local/man/man1/gawk.1 ..././install-sh -c -m 644 ./igawk.1 /usr/local/man/man1/igawk.1 if test -f gawk.info; then d=.; \ else d=.; fi; \ for i in $d/gawk.info*; do \ .././install-sh -c -m 644 $i /usr/local/info/ ; \ done; \ if /bin/sh -c 'install-info --version' > /dev/null 2>&1 ; \ then install-info --info-dir=/usr/local/info gawk.info ; \ else true ; fi; exit 0 make[1]: Leaving directory `U:/unixos2/workdir/gawk-3.0.3/doc' cd awklib && make install make[1]: Entering directory `U:/unixos2/workdir/gawk-3.0.3/awklib' cp ./eg/prog/igawk.sh igawk ; chmod 755 igawk gcc -g -O ./eg/lib/grcat.c -o grcat ../eg/lib/grcat.c: In function `main': ../eg/lib/grcat.c:23: structure has no member named `gr_passwd' make[1]: *** [grcat] Error 1 make[1]: Leaving directory `U:/unixos2/workdir/gawk-3.0.3/awklib' Anyone know what is missing here? Maybe I need to add some patches... -- John **= Email 8 ==========================** Date: Fri, 9 Apr 2004 22:20:35 +0100 From: John Poltorak Subject: structure has no member named `st_blksize' Anyone know why this happens when building GNU Awk 3.0.3:- gcc -c -DGAWK -I. -DHAVE_CONFIG_H gawkmisc.c posix/gawkmisc.c: In function `optimal_bufsize': In file included from gawkmisc.c:39: posix/gawkmisc.c:85: structure has no member named `st_blksize' posix/gawkmisc.c:85: structure has no member named `st_blksize' posix/gawkmisc.c:86: structure has no member named `st_blksize' posix/gawkmisc.c:86: structure has no member named `st_blksize' posix/gawkmisc.c:88: structure has no member named `st_blksize' posix/gawkmisc.c:88: structure has no member named `st_blksize' make[1]: *** [gawkmisc] Error 1 This is the relevant bit of gawkmisc.c :- /* optimal_bufsize --- determine optimal buffer size */ int optimal_bufsize(fd, stb) int fd; struct stat *stb; { /* force all members to zero in case OS doesn't use all of them. */ memset(stb, '\0', sizeof(struct stat)); /* * System V.n, n < 4, doesn't have the file system block size in the * stat structure. So we have to make some sort of reasonable * guess. We use stdio's BUFSIZ, since that is what it was * meant for in the first place. */ #ifdef HAVE_ST_BLKSIZE #define DEFBLKSIZE (stb->st_blksize ? stb->st_blksize : BUFSIZ) #else #define DEFBLKSIZE BUFSIZ #endif if (isatty(fd)) return BUFSIZ; if (fstat(fd, stb) == -1) fatal("can't stat fd %d (%s)", fd, strerror(errno)); if (lseek(fd, (off_t)0, 0) == -1) /* not a regular file */ return DEFBLKSIZE; if (stb->st_size > 0 && stb->st_size < DEFBLKSIZE) /* small file */ return stb->st_size; return DEFBLKSIZE; } -- John **= Email 9 ==========================** Date: Sat, 10 Apr 2004 12:28:51 +1000 (EST) From: Andrew MacIntyre Subject: Re: structure has no member named `st_blksize' On Fri, 9 Apr 2004, John Poltorak wrote: > This is the relevant bit of gawkmisc.c :- {...} > #ifdef HAVE_ST_BLKSIZE > #define DEFBLKSIZE (stb->st_blksize ? stb->st_blksize : BUFSIZ) > #else > #define DEFBLKSIZE BUFSIZ > #endif The configure process has decided that HAVE_ST_BLKSIZE should be defined. It shouldn't do that. -- Andrew I MacIntyre "These thoughts are mine alone..." E-mail: andymac at bullseye.apana.org.au (pref) | Snail: PO Box 370 andymac at pcug.org.au (alt) | Belconnen ACT 2616 Web: http://www.andymac.org/ | Australia **= Email 10 ==========================** Date: Sat, 10 Apr 2004 13:13:02 +0200 From: Andreas Buening Subject: Re: structure has no member named `st_blksize' John Poltorak wrote: > > Anyone know why this happens when building GNU Awk 3.0.3:- [errors] There hasn't been working OS/2 support in gawk 3.0.x. Try 3.1.x instead. Bye, Andreas **= Email 11 ==========================** Date: Sat, 10 Apr 2004 14:07:30 +0100 From: John Poltorak Subject: Re: structure has no member named `st_blksize' On Sat, Apr 10, 2004 at 01:13:02PM +0200, Andreas Buening wrote: > John Poltorak wrote: > > > > Anyone know why this happens when building GNU Awk 3.0.3:- > > [errors] > > There hasn't been working OS/2 support in gawk 3.0.x. Actually, there has... If you look at v3.0.3 there is a pc directory which includes a Makefile and I've just managed to get it working. I don't like the look of the Makefile at all - it seems pretty messy, but it does work although I'd like to change it around a bit for my own use. I'd be interested in knowing which *FLAGS to use with it. 3.0.3 uses:- emx: $(MAK) all \ "CC=gcc -Zomf" O=.obj "CF=-O -DOS2" \ LNK=LEMX "LF=-s -Zcrtdll -Zstack 512" RSP= CFLAGS = $(CF) -DGAWK -I. -DHAVE_CONFIG_H > Try 3.1.x > instead. I find with some of the newer utils such as awk, that they are getting very bloated. I'm trying to get to gether a slimmed down set of utils, which are still usable as part of a build suite. Is there any indication of which versions of apps such as GREP, SED, AWK etc are a minimum requirement for use with Autoconf and friends? > > Bye, > Andreas -- John **= Email 12 ==========================** Date: Sat, 10 Apr 2004 15:22:52 +0200 From: Andreas Buening Subject: Re: structure has no member named `st_blksize' John Poltorak wrote: > > On Sat, Apr 10, 2004 at 01:13:02PM +0200, Andreas Buening wrote: > > There hasn't been working OS/2 support in gawk 3.0.x. > > Actually, there has... If you look at v3.0.3 there is a pc directory which > includes a Makefile and I've just managed to get it working. I didn't say there is no OS/2 support. There's just no _working_ OS/2 support. What you've found is just the old support for a 16 bit compiler from the late stone age which was abandoned many years ago. > > Try 3.1.x > > instead. > > I find with some of the newer utils such as awk, that they are getting > very bloated. If you're talking about the executable size, unfortunately, that's due to some static GNU libs like regex which have become growing exponentially with time. > I'm trying to get to gether a slimmed down set of utils, > which are still usable as part of a build suite. Is there any indication > of which versions of apps such as GREP, SED, AWK etc are a minimum > requirement for use with Autoconf and friends? For these three also very old versions should work. Bye, Andreas