I just tried to build Pike in cygwin, but I got the following error:
/cygdrive/d/Pike7.5-20030719-132322/build/cygwin_nt-5.1-1.3.22_0.78_3_2_-i686/modules/system/module.a(memory.o)(.text+0xab): In function `MEMORY_FREE': /cygdrive/d/Pike7.5-20030719-132322/src/modules/system/memory.c:130: undefined reference to `shmdt' /cygdrive/d/Pike7.5-20030719-132322/build/cygwin_nt-5.1-1.3.22_0.78_3_2_-i686/modules/system/module.a(memory.o)(.text+0x343): In function `memory_shm': /cygdrive/d/Pike7.5-20030719-132322/src/modules/system/memory.c:226: undefined reference to `shmget' /cygdrive/d/Pike7.5-20030719-132322/build/cygwin_nt-5.1-1.3.22_0.78_3_2_-i686/modules/system/module.a(memory.o)(.text+0x38d):/cygdrive/d/Pike7.5-20030719-132322 /src/modules/system/memory.c:240: undefined reference to `shmat' collect2: ld returned 1 exit status
Is there a configure test missing?
Lots of them probably. cygwin is a unix environment. Pike is meant for a win32 environment.
/ Peter Bortas (farbror)
Previous text:
2003-07-21 02:59: Subject: NT-pike
I just tried to build Pike in cygwin, but I got the following error:
/cygdrive/d/Pike7.5-20030719-132322/build/cygwin_nt-5.1-1.3.22_0.78_3_2_-i686/modules/system/module.a(memory.o)(.text+0xab): In function `MEMORY_FREE': /cygdrive/d/Pike7.5-20030719-132322/src/modules/system/memory.c:130: undefined reference to `shmdt' /cygdrive/d/Pike7.5-20030719-132322/build/cygwin_nt-5.1-1.3.22_0.78_3_2_-i686/modules/system/module.a(memory.o)(.text+0x343): In function `memory_shm': /cygdrive/d/Pike7.5-20030719-132322/src/modules/system/memory.c:226: undefined reference to `shmget' /cygdrive/d/Pike7.5-20030719-132322/build/cygwin_nt-5.1-1.3.22_0.78_3_2_-i686/modules/system/module.a(memory.o)(.text+0x38d):/cygdrive/d/Pike7.5-20030719-132322 /src/modules/system/memory.c:240: undefined reference to `shmat' collect2: ld returned 1 exit status
Is there a configure test missing?
/ Martin Nilsson (ja till euro, nej till cent)
Le lundi, 21 jul 2003, à 21:25 Europe/Paris, Peter Bortas (farbror) @ Pike (-) developers forum a écrit :
Lots of them probably. cygwin is a unix environment. Pike is meant for a win32 environment.
I saw something on some cygwin ml about that. I think you'll have to install a pkg or a DLL for that... Now I don't remember which one and how to fix that, I don't have any x86 free with 2000 installed... And I cannot get access to it.
Btw one year before I has such things but I gave up because lack of time and motivation.
It's the only build failure. If I disable the shm-code in the system module it builds a Pike, but the binary hangs somewhere when I try to start it.
/ Martin Nilsson (ja till euro, nej till cent)
Previous text:
2003-07-21 15:21: Subject: NT-pike
Lots of them probably. cygwin is a unix environment. Pike is meant for a win32 environment.
/ Peter Bortas (farbror)
Grubba and Xavier must have come further than I thought then. Build with debug and check where it stalls?
/ Peter Bortas (farbror)
Previous text:
2003-07-21 16:40: Subject: NT-pike
It's the only build failure. If I disable the shm-code in the system module it builds a Pike, but the binary hangs somewhere when I try to start it.
/ Martin Nilsson (ja till euro, nej till cent)
It is the read-loop in low_read_file in object.c that hangs. It only loads the first 102769 bytes out of 106650 of the master. Then fd_read returns 0 all the time.
/ Martin Nilsson (ja till euro, nej till cent)
Previous text:
2003-07-21 16:45: Subject: NT-pike
Grubba and Xavier must have come further than I thought then. Build with debug and check where it stalls?
/ Peter Bortas (farbror)
Hmm. The xenofarm build fails where the manual does not. Strange. Anyhow, the following line in w32api/basetsd.h is a problem... typedef int INT32, *PINT32;
/ Martin Nilsson (ja till euro, nej till cent)
Previous text:
2003-07-21 17:52: Subject: NT-pike
It is the read-loop in low_read_file in object.c that hangs. It only loads the first 102769 bytes out of 106650 of the master. Then fd_read returns 0 all the time.
/ Martin Nilsson (ja till euro, nej till cent)
Le mardi, 22 jul 2003, à 09:40 Europe/Paris, Martin Nilsson (ja till euro, nej till cent) @ Pike (-) developers forum a écrit :
Hmm. The xenofarm build fails where the manual does not. Strange. Anyhow, the following line in w32api/basetsd.h is a problem... typedef int INT32, *PINT32;
I had it compiled a long time ago.... but it was not capable to work. In général in cygwin you should not use any of win32 headers even if you find it....
I tryed a smart way by "invalidate" them at the start of configure.in but this far than working....
I think that a closer look to all pike's sources is necessary for that...
/Xavier
I think trying to compile without the unix emulation but with the included shell commands would be easier and probably produce a better result.
/ Peter Bortas (farbror)
Previous text:
2003-07-22 10:40: Subject: Re: NT-pike
Le mardi, 22 jul 2003, à 09:40 Europe/Paris, Martin Nilsson (ja till euro, nej till cent) @ Pike (-) developers forum a écrit :
Hmm. The xenofarm build fails where the manual does not. Strange. Anyhow, the following line in w32api/basetsd.h is a problem... typedef int INT32, *PINT32;
I had it compiled a long time ago.... but it was not capable to work. In général in cygwin you should not use any of win32 headers even if you find it....
I tryed a smart way by "invalidate" them at the start of configure.in but this far than working....
I think that a closer look to all pike's sources is necessary for that...
/Xavier
/ Brevbäraren
pike-devel@lists.lysator.liu.se