Date: Fri, 9 Jan 2004 00:04:04 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 287 ************************************************** Thursday 08 January 2004 Number 287 ************************************************** Subjects for today 1 Re: OpenLDAP : Stefan Neis 2 Re: OpenLDAP : John Poltorak 3 Re: OpenLDAP : Bart van Leeuwen" 4 Re: OpenLDAP : Bart van Leeuwen" 5 Re: OpenLDAP : Lyn St George" 6 Re: OpenLDAP : John Poltorak 7 Re: OpenLDAP : John Poltorak 8 Re: OpenLDAP : John Poltorak **= Email 1 ==========================** Date: Wed, 7 Jan 2004 11:47:56 +0100 (CET) From: Stefan Neis Subject: Re: OpenLDAP On Tue, 6 Jan 2004, John Poltorak wrote: > checking how to run the C preprocessor... gcc -E > configure: warning: programs compiled here do not run here... > configure: error: if cross compiling, add --enable-x-compile. It's probably not finding or able to run a test executable it created, either because of missing .exe (gcc -o something something.o only gives you something which needs emxbind to be run before it's executable) or because of searching for a.out only... Did you rerun "autoconf"? Which version? Which version was used to produce the original "configure"? Regards, Stefan -- Micro$oft is not an answer. It is a question. The answer is 'no'. **= Email 2 ==========================** Date: Wed, 7 Jan 2004 11:12:58 +0000 From: John Poltorak Subject: Re: OpenLDAP On Wed, Jan 07, 2004 at 11:47:56AM +0100, Stefan Neis wrote: > Did you rerun "autoconf"? Which version? Which version was used to produce > the original "configure"? I ran Autoconf v2.58. The original was generated by v2.13.1. > Regards, > Stefan > -- > Micro$oft is not an answer. It is a question. The answer is 'no'. > -- John **= Email 3 ==========================** Date: Wed, 7 Jan 2004 13:03:30 +0100 From: "Bart van Leeuwen" Subject: Re: OpenLDAP Okay, it seems that it can't find dlfcn.h Dynamic Loading functions, dlfcn.h is in posix, but probably not on the include path. I tried to search archives of this list but I cound't find a answer on how to enable them. With Regards Bart van Leeuwen **= Email 4 ==========================** Date: Wed, 7 Jan 2004 15:29:41 +0100 From: "Bart van Leeuwen" Subject: Re: OpenLDAP The croscompiling was related to a ac_exeext not being correct, I tried to update it in the config.site, but that didn't help, I added it manualy to the configure and it runs further now. now I need latest berkeley db With Regards Bart van Leeuwen **= Email 5 ==========================** Date: Wed, 07 Jan 2004 16:48:52 +0000 From: "Lyn St George" Subject: Re: OpenLDAP On Wed, 7 Jan 2004 15:29:41 +0100, Bart van Leeuwen wrote: >now I need latest berkeley db There's one on http://kiwi.zolotek.net, along with a small patch for installing it. - Cheers Lyn St George +--------------------------------------------------------------------------------- + http://www.zolotek.net .. eCommerce hosting, consulting +---------------------------------------------------------------------------------- **= Email 6 ==========================** Date: Wed, 7 Jan 2004 21:45:34 +0000 From: John Poltorak Subject: Re: OpenLDAP On Wed, Jan 07, 2004 at 01:03:30PM +0100, Bart van Leeuwen wrote: > > Okay, > > it seems that it can't find dlfcn.h > Dynamic Loading functions, dlfcn.h is in posix, but probably not on the > include path. Under UX2BS Posix/2 is on the include path by default. I didn't have this problem > I tried to search archives of this list but I cound't find a answer on how > to enable them. The archives for this list are very much out of date. If/when I can convert to Mailman, they will get updated. > With Regards > Bart van Leeuwen > -- John **= Email 7 ==========================** Date: Wed, 7 Jan 2004 21:48:20 +0000 From: John Poltorak Subject: Re: OpenLDAP On Tue, Jan 06, 2004 at 05:36:13PM -0500, Henry Sobotka wrote: > John Poltorak wrote: > > > > configure: warning: programs compiled here do not run here... > > config.log is your friend. This does not appear too friendly:- configure:6601: checking if libtool supports shared libraries configure:6605: checking whether to build shared libraries configure:6628: checking whether to build static libraries configure:6669: checking for shl_load configure:6698: gcc -o conftest.exe conftest.c 1>&5 u:\tmp\ccc08617: Undefined symbol _shl_load referenced from text segment configure: failed program was: #line 6674 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load(); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char shl_load(); char (*f)(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_shl_load) || defined (__stub___shl_load) choke me #else f = shl_load; #endif ; return 0; } configure:6716: checking for shl_load in -ldld configure:6735: gcc -o conftest.exe conftest.c -ldld 1>&5 ld: No such file or directory for dld.a configure: failed program was: #line 6724 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char shl_load(); int main() { shl_load() ; return 0; } configure:6754: checking for dlopen configure:6783: gcc -o conftest.exe conftest.c 1>&5 configure:6952: checking whether a program can dlopen itself configure:7773: checking whether ln works configure:7796: checking whether ln -s works configure:7875: checking how to run the C preprocessor And it finishes just like that. > h~ -- John **= Email 8 ==========================** Date: Wed, 7 Jan 2004 22:08:32 +0000 From: John Poltorak Subject: Re: OpenLDAP On Wed, Jan 07, 2004 at 03:29:41PM +0100, Bart van Leeuwen wrote: > > The croscompiling was related to a > > ac_exeext > > not being correct, Where was this? I didn't get any error like it. Are we trying to compile the same app here? > I tried to update it in the config.site, but that didn't > help, I added it manualy to the configure and it runs further now. Where does it stop? I have a configure error which I don't understand. > now I need latest berkeley db I managed to compile Berkeley DB with hardly any changes some months ago. I was surprised how straightforward it appeared when i started at the right place. Here's what I posted a few months ago:- The solution to building Berkeley DB is much simpler than has been suggested... Basically, you need to install Autoconf v2.58 and then you need to run s_config as the first process - that is more or less it! All you need to do in UX2BS is to create \unixos2\scripts\pre-conf consisting of:- s_config I'm not sure if the resultant files are usable though... > With Regards > Bart van Leeuwen -- John