Date: Fri, 26 Nov 2004 00:04:17 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 458 ************************************************** Thursday 25 November 2004 Number 458 ************************************************** Subjects for today 1 GNU C library files : lsunley at mb.sympatico.ca 2 Building Perl with GCC 3.3.5 : John Poltorak **= Email 1 ==========================** Date: Wed, 24 Nov 2004 21:31:27 -0500 From: lsunley at mb.sympatico.ca Subject: GNU C library files This is one of those stupid questions... Do any of you know of any problems that would be caused if I copy the sys/sem.h sys/shm.h bits/sem.h and bits/shm.h files from the GNU C library files posted on http://www.die.net/doc/linux/include to use with the GCC 3.3.5 compiler. I grabbed these as a reference for my implementation of Sys V semaphores for OS/2.... Lorne -- ----------------------------------------------------------- lsunley at mb.sympatico.ca ----------------------------------------------------------- **= Email 2 ==========================** Date: Thu, 25 Nov 2004 12:21:39 +0000 From: John Poltorak Subject: Building Perl with GCC 3.3.5 Tried building Perl with GCC 3.3.5 beta1 yesterday but didn't get very far:- Operating system name? [os2] Operating system version? [2.45] Build Perl for SOCKS? [n] Use the PerlIO abstraction layer? [y] Build a threading Perl? [n] Build Perl for multiplicity? [n] Use which C compiler? [gcc] Checking for GNU cc in disguise and/or its version number... Now, how can we feed standard input to your C preprocessor... Directories to use for library searches? [g:/usr/lib] What is the file extension used for shared libraries? [dll] Try to use long doubles if available? [n] Checking for optional libraries... What libraries to use? [-lsocket -lm -lbsd -lufc] What optimizer/debugger flag should be used? [-O2 -fomit-frame-pointer -malign-loops=2 -malign-jumps=2 -malign-functions=2 -s] Any additional cc flags? [-Zomf -Zmt -DDOSISH -DOS2=2 -DEMBED -I. -DEMX_BAD_SBRK -D_EMX_CRT_REV_= -fno-strict-aliasing -pipe] Let me guess what the preprocessor flags are... Any additional ld flags (NOT including libraries)? [-Zexe -Zomf -Zmt -Zcrtdll -Zstack 32000 -Zlinker /e:2] Checking your choice of C compiler and flags for coherency... I've tried to compile and run the following simple program: #include int main() { printf("Ok\n"); return(0); } I used the command: gcc -o try -O2 -fomit-frame-pointer -malign-loops=2 -malign-jumps=2 -malign-functions=2 -s -Zomf -Zmt -DDOSISH -DOS2=2 -DEMBED -I. -DEMX_BAD_SBRK -D_EMX_CRT_REV_= -fno-strict-aliasing -pipe -Zexe -Zomf -Zmt -Zcrtdll -Zstack 32000 -Zlinker /e:2 try.c -lsocket -lm -lbsd -lufc ./try and I got the following output: cc1.exe: warning: -malign-loops is obsolete, use -falign-loops cc1.exe: warning: -malign-jumps is obsolete, use -falign-jumps cc1.exe: warning: -malign-functions is obsolete, use -falign-functions weakld: cannot open library file 'G:\usr\lib\bsd_s.a'. emxomfld: weak prelinker failed. (rc=8) I can't compile the test program. You have a BIG problem. Shall I abort Configure [y] Ok. Stopping Configure. I think building Perl on OS/2 is likely to be heavily geared towards EMX so will probably need some heavyweight attention from some of the Perl experts we have here... Is there a simple solution to the error above? Where do I get a bsd_s.a? Or is Perl's configure looking for the wrong file? -- John