Date: Wed, 31 Dec 2003 00:49:44 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [Ux2bs_Archive] No. 252 ************************************************** Tuesday 30 December 2003 Number 252 ************************************************** Subjects for today 1 Re: building libpng : John Poltorak 2 Re: building libpng : John Poltorak 3 Re: building libpng : Adrian Gschwend" 4 Re: Any new UX2BS testers? : Adrian Gschwend" 5 Re: building libpng : Dave and Natalie" 6 Re: lib vs. dll (was: Re: [UnixOS2] Pine problem) : Henry Sobotka 7 Re: Any new UX2BS testers? : John Poltorak 8 Re: building libpng : John Poltorak 9 Re: building libpng : John Poltorak 10 Re: pthreads : Dave and Natalie" 11 Re: Any new UX2BS testers? : Dave and Natalie" 12 Re: building libpng : Dave and Natalie" **= Email 1 ==========================** Date: Tue, 30 Dec 2003 10:11:40 +0000 From: John Poltorak Subject: Re: building libpng On Mon, Dec 29, 2003 at 10:07:45PM -0500, Henry Sobotka wrote: > John Poltorak wrote: > > > > What makes you think a zdll.lib gets built? > > Adrian wrote: > > > zlib does build > > and he must have named it zdll.lib and specified that for linkage or > else the linker wouldn't be looking for zdll.lib. I don't have any references to a zdll.lib in my zlib. Is it LIBPNG that requires such a file? > Or automake or > whatever generated the name "zdll.lib" from "TARGET=z.dll" or some such. > Normally it's named libz.[a|lib] or (for -lz) z.[a|lib]. > > h~ -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 2 ==========================** Date: Tue, 30 Dec 2003 10:18:24 +0000 From: John Poltorak Subject: Re: building libpng On Mon, Dec 29, 2003 at 10:05:56PM +0100, Adrian Gschwend wrote: > Hi guys, > > I try to build webalizer, to do that I need zlib, libpng and gd. > > zlib does build but I don't have a zlib.dll, then libpng fails because > of unresolved externals which would be in zlib.dll. Which LIBPNG are you trying to build? > > Adrian > > > -- > Adrian Gschwend > at netlabs.org > > ktk [a t] netlabs.org > ------- > Free Software for OS/2 and eCS > http://www.netlabs.org -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 3 ==========================** Date: Tue, 30 Dec 2003 22:14:49 +0100 (CET) From: "Adrian Gschwend" Subject: Re: building libpng On Mon, 29 Dec 2003 17:01:11 -0500, Henry Sobotka wrote: Hi all, I try to summarize a bit and answer all the questions in one email :-) >From Henry: >Put zdll.lib in a directory in LIBRARY_PATH, or add the location of >zdll.lib to LIBRARY_PATH, or when linking use -L[path to zdll.lib] >-lzdll. There is none, looks like it didn't get built (zdll.lib I mean) >From Dave: >Which makefiles are you using? makefile.os2 and pngos2.def from the scripts directory. >From John: >What makes you think a zdll.lib gets built? Good question, the "build zlib" command didn't complain so I simply thought everything is fine. But now I see that zdll.lib is missing so I start to doubt :-) >The problem with ZLIB is that no one is prepared to take ownership of the >OS/2 version so we have lots of independently maintained versions instead >of having a genuine OS/2 port which can be built from the distributable >source. hmm zlib can't be that difficult to port, can it? I mean it actually doesn't do that much (well I say that without reading the source of it, I hope I'm right ;) >It would be nice if someone could delare themselves as the OS/2 maintainer >and ensure any OS/2 requirements were incorporated into the official >source. Yes that's the way to go in general IMHO. And I'm trying to build libpng-1.2.5 cu Adrian -- Adrian Gschwend at netlabs.org ktk [a t] netlabs.org ------- Free Software for OS/2 and eCS http://www.netlabs.org _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 4 ==========================** Date: Tue, 30 Dec 2003 22:19:58 +0100 (CET) From: "Adrian Gschwend" Subject: Re: Any new UX2BS testers? On Tue, 30 Dec 2003 02:12:50 +0000, John Poltorak wrote: >Has anyone given UX2BS a try recently? well I have several things that I would like to have on OS/2 so I will definitely try some stuff the next weeks, as you can see with webalizer :-) >There doesn't seem to have been much progress over the last month or so. We really have to make sure that the basic libs are compiling. I rebuild a /usr/local on our Solaris boxes at our university and I see now which libs are required for many apps. Would a list of the stuff I compiled help? We could start at the top of it and go step by step further. If something doesn't build (and if it's essential) we should invest some time to get it to work, otherwise we won't reach our goal in the near future (and we should really try to reach that...) >It would be nice to get some of the basic apps built reliably, in >particular GETTEXT which I think is a major stumbling block and isn't >getting built properly. Knut told me he is working on it, also on libiconv. He does that also for the new gcc compiler (remember, he is working for Innotek, even if he does a lot of this stuff in his sparetime :-). Also he is working on an up to date version of automake, autoconf and libtool (IIRC). I will keep you up to date cu Adrian -- Adrian Gschwend at netlabs.org ktk [a t] netlabs.org ------- Free Software for OS/2 and eCS http://www.netlabs.org _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 5 ==========================** Date: Tue, 30 Dec 2003 13:59:48 -0800 From: "Dave and Natalie" Subject: Re: building libpng On Tue, 30 Dec 2003 22:14:49 +0100 (CET), Adrian Gschwend wrote: >>From Dave: >>Which makefiles are you using? >makefile.os2 and pngos2.def from the scripts directory. I'll send Adrian some makefiles and defs to see if it will help Dave New Email Address - please update your Address book dave_yeo at paralynx.com _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 6 ==========================** Date: Tue, 30 Dec 2003 17:32:48 -0500 From: Henry Sobotka Subject: Re: lib vs. dll (was: Re: [UnixOS2] Pine problem) Adrian Gschwend wrote: > > can someone explain me the main difference between lib and dll? To be > honest I don't really get the difference between that. On Unix systems > I have the *.so files, what's the main difference to OS/2 DLL's and > what should we use for UX2BS (and unixos2 in general)? On OS/2 there are two kinds of .lib files: static libraries built by feeding a set of object files to emxomfar, and import libraries created by feeding emximp a .def file. The first kind is the counterpart of UNIX libs. The second goes with the DLL created with the same .def file, and essentially lists the DLL's exports for linkage purposes. To link with a DLL, all you need is its import .lib; the DLL itself is only required at runtime (and the import .lib is no longer needed). Unix *.so files are basically the counterpart of DLLs. Which to use really depends on the code. If a program only calls one or two small functions in a large DLL, it's probably more efficient to link with the DLL's corresponding static library. It's a matter of weighing the cost of loading the DLL against that of increasing the size of your program while possibly gaining speed, and can only be decided case-by-case. h~ _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 7 ==========================** Date: Tue, 30 Dec 2003 22:38:20 +0000 From: John Poltorak Subject: Re: Any new UX2BS testers? On Tue, Dec 30, 2003 at 10:19:58PM +0100, Adrian Gschwend wrote: > Knut told me he is working on it, also on libiconv. He does that also > for the new gcc compiler (remember, he is working for Innotek, even if > he does a lot of this stuff in his sparetime :-). Also he is working on > an up to date version of automake, autoconf and libtool (IIRC). I will > keep you up to date What is the point of producing new versions of automake and autoconf since they already work straight out of the box on OS/2? Maybe libtool does too, although I've never figured out how to use it... > cu > > Adrian > > > -- > Adrian Gschwend > at netlabs.org > > ktk [a t] netlabs.org > ------- > Free Software for OS/2 and eCS > http://www.netlabs.org -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 8 ==========================** Date: Tue, 30 Dec 2003 22:41:44 +0000 From: John Poltorak Subject: Re: building libpng On Tue, Dec 30, 2003 at 01:59:48PM -0800, Dave and Natalie wrote: > On Tue, 30 Dec 2003 22:14:49 +0100 (CET), Adrian Gschwend wrote: > > >>From Dave: > >>Which makefiles are you using? > >makefile.os2 and pngos2.def from the scripts directory. > > I'll send Adrian some makefiles and defs to see if it will help > Dave Any chance of letting me have them as well, since I'd like to incorporate them into UX2BS. > New Email Address - please update your Address book > dave_yeo at paralynx.com -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 9 ==========================** Date: Tue, 30 Dec 2003 23:03:07 +0000 From: John Poltorak Subject: Re: building libpng On Tue, Dec 30, 2003 at 10:14:49PM +0100, Adrian Gschwend wrote: > >The problem with ZLIB is that no one is prepared to take ownership of the > >OS/2 version so we have lots of independently maintained versions instead > >of having a genuine OS/2 port which can be built from the distributable > >source. > > hmm zlib can't be that difficult to port, can it? I mean it actually > doesn't do that much (well I say that without reading the source of it, > I hope I'm right ;) It's not so much the source code as producing and maintaining a Makefile which produces the correct files in the correct format with the correct names to satisfy all interested parties. > >It would be nice if someone could delare themselves as the OS/2 maintainer > >and ensure any OS/2 requirements were incorporated into the official > >source. > > Yes that's the way to go in general IMHO. The only problem is getting someone to actually take on the position. > And I'm trying to build libpng-1.2.5 An older version used to build without any problem. I wonder what might have changed... > > cu > > Adrian > > > -- > Adrian Gschwend > at netlabs.org > > ktk [a t] netlabs.org > ------- > Free Software for OS/2 and eCS > http://www.netlabs.org -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 10 ==========================** Date: Tue, 30 Dec 2003 14:36:00 -0800 From: "Dave and Natalie" Subject: Re: pthreads On Sat, 13 Dec 2003 14:15:24 +0000, John Poltorak wrote: >> > It looks as I'll need to add pthreads to UX2BS at some time. >> > >> > Where do I find the most recent version? >> >> Netlabs, AFAIK (ftp://ftp.netlabs.org/pub/pthreads). > >Is anyone able to do anything with any of the archives there? > >There appears to be something wrong with them. I managed to unzip 2 of the files. pthread-bjs-src.zip and pthread-bjs-bin.zip. The source file had to be handled on the commandline as fc2 had problems Dave New Email Address - please update your Address book dave_yeo at paralynx.com New Email Address - please update your Address book dave_yeo at paralynx.com _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 11 ==========================** Date: Tue, 30 Dec 2003 23:34:15 -0800 From: "Dave and Natalie" Subject: Re: Any new UX2BS testers? On Tue, 30 Dec 2003 22:38:20 +0000, John Poltorak wrote: >On Tue, Dec 30, 2003 at 10:19:58PM +0100, Adrian Gschwend wrote: > >> Knut told me he is working on it, also on libiconv. He does that also >> for the new gcc compiler (remember, he is working for Innotek, even if >> he does a lot of this stuff in his sparetime :-). Also he is working on >> an up to date version of automake, autoconf and libtool (IIRC). I will >> keep you up to date > >What is the point of producing new versions of automake and autoconf since >they already work straight out of the box on OS/2? > >Maybe libtool does too, although I've never figured out how to use it... > > Autoconf and automake work pretty well here though configure has a problem finding the X libs and Headers when using Innoteks gcc 3.22. This can be worked around by passing configure the locations of the X libs and headers. Libtool works quite well for producing static libs but I've only had one DLL successfully built by libtool, libiconv 1.8. Usually libtool complains about not being able to build DLLs on OS/2 due to OS/2 not supporting unresolved symbols. I don't really know if OS/2 does support unresolved symbols. Dave New Email Address - please update your Address book dave_yeo at paralynx.com New Email Address - please update your Address book dave_yeo at paralynx.com _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 12 ==========================** Date: Tue, 30 Dec 2003 23:34:40 -0800 From: "Dave and Natalie" Subject: Re: building libpng install Mail::SpamAssassinOn Tue, 30 Dec 2003 22:41:44 +0000, John Poltorak wrote: >On Tue, Dec 30, 2003 at 01:59:48PM -0800, Dave and Natalie wrote: >> On Tue, 30 Dec 2003 22:14:49 +0100 (CET), Adrian Gschwend wrote: >> >> >>From Dave: >> >>Which makefiles are you using? >> >makefile.os2 and pngos2.def from the scripts directory. >> >> I'll send Adrian some makefiles and defs to see if it will help >> Dave > >Any chance of letting me have them as well, since I'd like to incorporate >them into UX2BS. I'm still working on them. Unluckily I don't know enough about creating DLLs on OS/2 yet. I would like to maintain backwards compatibility if possible. And if not possible I would like to do it right so in the future compatibility can be maintained. Dave New Email Address - please update your Address book dave_yeo at paralynx.com New Email Address - please update your Address book dave_yeo at paralynx.com _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs