From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Thu, 25 Apr 2002 04:23:56 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 201 ************************************************** Wednesday 24 April 2002 Number 201 ************************************************** Subjects for today 1 Re: New GNU gettext : Dave and Natalie" 2 Re: SLANG sample programs : csaba.raduly at sophos.com 3 New GNU gettext : John Poltorak 4 Re: SLANG sample programs : John Poltorak 5 Re: SLANG sample programs : csaba.raduly at sophos.com 6 Re: SLANG sample programs : John Poltorak **= Email 1 ==========================** Date: Thu, 25 Apr 2002 08:42:49 -0800 From: "Dave and Natalie" Subject: Re: New GNU gettext On Thu, 25 Apr 2002 12:25:01 +0100, John Poltorak wrote: >There a new version of gettext available here:- > >ftp://ftp.gnu.org/pub/gnu/gettext/gettext-0.11.2.tar.gz > >Any chance of this building on OS/2 straight out of the box. Built here fine (haven't actually tested much). Just had to cd into os2 and run make twice, first time get make: *** No rule to make target `out/release/intl.a', needed by `all'. Stop. Second time completes fine Dave **= Email 2 ==========================** Date: Thu, 25 Apr 2002 10:47:33 +0100 From: csaba.raduly at sophos.com Subject: Re: SLANG sample programs On 24/04/2002 11:24:44 owner-os2-unix wrote: >On Wed, Apr 24, 2002 at 11:02:42AM +0100, csaba.raduly at sophos.com wrote: >> >> On 24/04/2002 09:11:03 owner-os2-unix wrote: >> >> >Has anyone ever managed to compile the sample CURSES programs provided >> >with SLANG? >> > >> >> >> [Hand raised] > >You're not giving much away :-).... > Well, you asked a question, and I answered. If you want a more detailed answer, you need to ask a more precise question :-) >Did you need to change anything in the supplied Makefile? > >I got rid of some errors by adding '-lvideo' to LFLAGS but still get lots >of undefined symbols such as _SLcurses_initscr. > _SLcurses_initscr ought to be in (lib)slang.a Run "nm slang.a | grep _SLcurses_initscr" and check that you get a line like this: 00xxxxxx T _SLcurses_initscr The hex digits are not important, but the capital T is. It shows that _SLcurses_initscr is defined in that module (not E, an external reference) >I don't know whether this due to my build of SLANG or whether there is >some other library missing. > -lslang should be enough -- Csaba Ráduly, Software Engineer Sophos Anti-Virus email: csaba.raduly at sophos.com http://www.sophos.com US Support: +1 888 SOPHOS 9 UK Support: +44 1235 559933 **= Email 3 ==========================** Date: Thu, 25 Apr 2002 12:25:01 +0100 From: John Poltorak Subject: New GNU gettext There a new version of gettext available here:- ftp://ftp.gnu.org/pub/gnu/gettext/gettext-0.11.2.tar.gz Any chance of this building on OS/2 straight out of the box. The previous version included OS/2 supported but I didn't get anywhere in trying to build it - just ended up on a wild goose chase. IMV this is one the critical packages for getting a UnixOS/2 distro in place because it provides INTL.DLL which is a very common module used by many apps. -- John **= Email 4 ==========================** Date: Thu, 25 Apr 2002 15:25:35 +0100 From: John Poltorak Subject: Re: SLANG sample programs On Thu, Apr 25, 2002 at 10:47:33AM +0100, csaba.raduly at sophos.com wrote: > > On 24/04/2002 11:24:44 owner-os2-unix wrote: > > >On Wed, Apr 24, 2002 at 11:02:42AM +0100, csaba.raduly at sophos.com wrote: > >> > >> On 24/04/2002 09:11:03 owner-os2-unix wrote: > >> > >> >Has anyone ever managed to compile the sample CURSES programs provided > >> >with SLANG? > >> > > >> > >> > >> [Hand raised] > > > >You're not giving much away :-).... > > > > Well, you asked a question, and I answered. If you want a more detailed > answer, you need to ask a more precise question :-) > > >Did you need to change anything in the supplied Makefile? > > > >I got rid of some errors by adding '-lvideo' to LFLAGS but still get lots > >of undefined symbols such as _SLcurses_initscr. > > > > _SLcurses_initscr ought to be in (lib)slang.a > Run "nm slang.a | grep _SLcurses_initscr" and check that you get a line > like this: > > 00xxxxxx T _SLcurses_initscr I don't have this function in slang.a. Here's a cmd file I used for building it:- cd src setlocal md \tmpslang copy mkfiles\mkmake.exe \tmpslang copy mkfiles\makefile.all \tmpslang cd \tmpslang echo mkmake OS2 EMX ^< makefile.all ^>makefile > \tmpslang\slang.bat \tmpslang\slang.bat endlocal copy \tmpslang\makefile del \tmpslang\* /n rd \tmpslang make This is run from the SLANG parent directory and produces a 452242 byte slang.a in src\emxobjs. Have I missed something out? > The hex digits are not important, but the capital T is. It shows that > _SLcurses_initscr is defined in that module (not E, an external reference) > > >I don't know whether this due to my build of SLANG or whether there is > >some other library missing. > > > > -lslang should be enough Did you also include -lvideo ? I assume you are using SLANG v1.4.5... -- John **= Email 5 ==========================** Date: Thu, 25 Apr 2002 16:46:28 +0100 From: csaba.raduly at sophos.com Subject: Re: SLANG sample programs On 25/04/2002 15:25:35 owner-os2-unix wrote: [snip] > > >Here's a cmd file I used for building it:- > > [snip] > >Did you also include -lvideo ? > Yes (I think it's needed because objects in slang.a reference functions from it) >I assume you are using SLANG v1.4.5... > Errr, no, 1.4.1 Here's the makefile from .../slang/src ---------------------------->8-------------------------- # Note: # This makefile was automatically generated from the master makefile.all. # If you have problems with this file, edit the mkfiles/makefile.all. # Also check slconfig.h to make sure that what is defined there is # appropriate to your system. # CC = gcc -Zmtd -DEMX_VIDEO CFLAGS = -DOS2 -D__os2__ -Wall -g P = / O = o # Object extension SRCDIR = .# Location of sources OBJDIR = demxobjs# Location of objects TARGET = $(OBJDIR)/slang.a COMPILE_CMD = $(CC) -c $(CFLAGS) -o # LIBDEPS = TOUCH = touch COPY = cp #}}} # End of compiler specific section CONFIG_H = config.h #{{{ OBJS = OBJS = $(OBJDIR)$(P)slang.$(O) \ $(OBJDIR)$(P)slarray.$(O) \ [lots snipped] $(OBJDIR)$(P)slospath.$(O) \ $(OBJDIR)$(P)slscanf.$(O) \ $(OBJDIR)$(P)slvideo.$(O) \ $(OBJDIR)$(P)slos2tty.$(O) \ \ $(OBJDIR)$(P)slxstrng.$(O) \ <--- Do you have these $(OBJDIR)$(P)sldisply.$(O) \ <--- in your makefile $(OBJDIR)$(P)sltermin.$(O) \ <--- These seem to be related $(OBJDIR)$(P)slcurses.$(O) <--- to curses emulation #--------------------------------------------------------------------------- #}}} $(TARGET): $(OBJDIR) $(CONFIG_H) $(LIBDEPS) $(OBJS) ar cr $(TARGET) $(OBJS) ar s $(TARGET) $(OBJDIR) : -mkdir $(OBJDIR) $(CONFIG_H): slconfig.h $(COPY) slconfig.h config.h -$(TOUCH) config.h #--------------------------------------------------------------------------- # explicit rules follow below [lots snipped] # $(OBJDIR)$(P)slvideo.$(O) : $(SRCDIR)$(P)slvideo.c $(CONFIG_H) $(COMPILE_CMD)$(OBJDIR)$(P)slvideo.$(O) $(SRCDIR)$(P)slvideo.c $(OBJDIR)$(P)slos2tty.$(O) : $(SRCDIR)$(P)slos2tty.c $(CONFIG_H) $(COMPILE_CMD)$(OBJDIR)$(P)slos2tty.$(O) $(SRCDIR)$(P)slos2tty.c # # Curses for OS/2 # $(OBJDIR)/slcurses.o : $(SRCDIR)$(P)slcurses.c $(CONFIG_H) $(COMPILE_CMD)$(OBJDIR)$(P)slcurses.$(O) $(SRCDIR)$(P)slcurses.c $(OBJDIR)/sldisply.o : $(SRCDIR)/sldisp__.c $(CONFIG_H) $(COMPILE_CMD)$(OBJDIR)$(P)sldisply.o $(SRCDIR)/sldisp__.c $(OBJDIR)/sltermin.o : $(SRCDIR)/sltermin.c $(CONFIG_H) $(COMPILE_CMD)$(OBJDIR)$(P)sltermin.o $(SRCDIR)/sltermin.c ---------------------------->8-------------------------- -- Csaba Ráduly, Software Engineer Sophos Anti-Virus email: csaba.raduly at sophos.com http://www.sophos.com US Support: +1 888 SOPHOS 9 UK Support: +44 1235 559933 **= Email 6 ==========================** Date: Thu, 25 Apr 2002 17:11:25 +0100 From: John Poltorak Subject: Re: SLANG sample programs On Thu, Apr 25, 2002 at 04:46:28PM +0100, csaba.raduly at sophos.com wrote: > > On 25/04/2002 15:25:35 owner-os2-unix wrote: > > [snip] > > > > > >Here's a cmd file I used for building it:- > > > > > [snip] > > > >Did you also include -lvideo ? > > > > Yes (I think it's needed because objects in slang.a reference functions > from it) > > >I assume you are using SLANG v1.4.5... > > > > Errr, no, 1.4.1 Ever tried 1.4.5 ? > Here's the makefile from .../slang/src > > ---------------------------->8-------------------------- > # Note: > # This makefile was automatically generated from the master makefile.all. > $(OBJDIR)$(P)slos2tty.$(O) \ > \ > $(OBJDIR)$(P)slxstrng.$(O) \ <--- Do you have these > $(OBJDIR)$(P)sldisply.$(O) \ <--- in your makefile > $(OBJDIR)$(P)sltermin.$(O) \ <--- These seem to be related > $(OBJDIR)$(P)slcurses.$(O) <--- to curses emulation The last three are missing. > #--------------------------------------------------------------------------- > > #}}} > > $(TARGET): $(OBJDIR) $(CONFIG_H) $(LIBDEPS) $(OBJS) > ar cr $(TARGET) $(OBJS) > ar s $(TARGET) Instead of those last two lines, I have:- ar crv $(TARGET) $(OBJS) > [lots snipped] > # > $(OBJDIR)$(P)slvideo.$(O) : $(SRCDIR)$(P)slvideo.c $(CONFIG_H) > $(COMPILE_CMD)$(OBJDIR)$(P)slvideo.$(O) $(SRCDIR)$(P)slvideo.c > $(OBJDIR)$(P)slos2tty.$(O) : $(SRCDIR)$(P)slos2tty.c $(CONFIG_H) > $(COMPILE_CMD)$(OBJDIR)$(P)slos2tty.$(O) $(SRCDIR)$(P)slos2tty.c > # > # Curses for OS/2 > # > $(OBJDIR)/slcurses.o : $(SRCDIR)$(P)slcurses.c $(CONFIG_H) > $(COMPILE_CMD)$(OBJDIR)$(P)slcurses.$(O) $(SRCDIR)$(P)slcurses.c > > $(OBJDIR)/sldisply.o : $(SRCDIR)/sldisp__.c $(CONFIG_H) > $(COMPILE_CMD)$(OBJDIR)$(P)sldisply.o $(SRCDIR)/sldisp__.c > > $(OBJDIR)/sltermin.o : $(SRCDIR)/sltermin.c $(CONFIG_H) > $(COMPILE_CMD)$(OBJDIR)$(P)sltermin.o $(SRCDIR)/sltermin.c > ---------------------------->8-------------------------- Most of the last section is missing. -- John