[M3devel] m3core build failure

Coleburn, Randy rcolebur at SCIRES.COM
Fri May 21 07:00:17 CEST 2010


Jay:

Thanks for the reply.

I don't think that is all that is wrong.  I changed to "include_dir", but now I am getting other errors.  For example:

new source -> compiling UnixC.c
cl.exe -nologo -DWIN32 -Zl -I../src/unix/Common -I../src -I../src/Csupport/Commo
n -I../src/Csupport/little-endian -I../src/Csupport/libgcc -I../src/runtime/comm
on -I../src/runtime/WIN32 -I../src/runtime/ex_frame -I../src/thread/Common -I../
src/thread/WIN32 -I../src/win32 -I../src/unix/Common -I../src/C/Common -Z7 -MD -
Oi -c ..\\src\\unix\\Common\\UnixC.c
UnixC.c
..\\src\\unix\\Common\\UnixC.c(95) : error C2375: 'Unix__open' : redefinition; d
ifferent linkage
        C:\cm3\Sandbox\m3-libs\m3core\src\m3core.h(329) : see declaration of 'Un
ix__open'
..\\src\\unix\\Common\\UnixC.c(96) : error C2375: 'Unix__umask' : redefinition;
different linkage
        C:\cm3\Sandbox\m3-libs\m3core\src\m3core.h(337) : see declaration of 'Un
ix__umask'
..\\src\\unix\\Common\\UnixC.c(97) : error C2375: 'Unix__chmod' : redefinition;
different linkage
        C:\cm3\Sandbox\m3-libs\m3core\src\m3core.h(357) : see declaration of 'Un
ix__chmod'
..\\src\\unix\\Common\\UnixC.c(98) : error C2375: 'Unix__creat' : redefinition;
different linkage
        C:\cm3\Sandbox\m3-libs\m3core\src\m3core.h(361) : see declaration of 'Un
ix__creat'
..\\src\\unix\\Common\\UnixC.c(99) : error C2375: 'Unix__dup' : redefinition; di
fferent linkage
        C:\cm3\Sandbox\m3-libs\m3core\src\m3core.h(362) : see declaration of 'Un
ix__dup'
  compile_c => 2
C compiler failed compiling: ..\src\unix\Common\UnixC.c
new source -> compiling Uin.c
cl.exe -nologo -DWIN32 -Zl -I../src/unix/Common -I../src -I../src/Csupport/Commo
n -I../src/Csupport/little-endian -I../src/Csupport/libgcc -I../src/runtime/comm
on -I../src/runtime/WIN32 -I../src/runtime/ex_frame -I../src/thread/Common -I../
src/thread/WIN32 -I../src/win32 -I../src/unix/Common -I../src/C/Common -Z7 -MD -
Oi -c ..\\src\\unix\\Common\\Uin.c
Uin.c
..\\src\\unix\\Common\\Uin.c(14) : error C2375: 'Uin__ntohl' : redefinition; dif
ferent linkage
        C:\cm3\Sandbox\m3-libs\m3core\src\m3core.h(364) : see declaration of 'Ui
n__ntohl'
..\\src\\unix\\Common\\Uin.c(15) : error C2375: 'Uin__ntohs' : redefinition; dif
ferent linkage
        C:\cm3\Sandbox\m3-libs\m3core\src\m3core.h(365) : see declaration of 'Ui
n__ntohs'
..\\src\\unix\\Common\\Uin.c(16) : error C2375: 'Uin__htonl' : redefinition; dif
ferent linkage
        C:\cm3\Sandbox\m3-libs\m3core\src\m3core.h(366) : see declaration of 'Ui
n__htonl'
..\\src\\unix\\Common\\Uin.c(17) : error C2375: 'Uin__htons' : redefinition; dif
ferent linkage
        C:\cm3\Sandbox\m3-libs\m3core\src\m3core.h(367) : see declaration of 'Ui
n__htons'
  compile_c => 2
C compiler failed compiling: ..\src\unix\Common\Uin.c
new source -> compiling Usocket.c
cl.exe -nologo -DWIN32 -Zl -I../src/unix/Common -I../src -I../src/Csupport/Commo
n -I../src/Csupport/little-endian -I../src/Csupport/libgcc -I../src/runtime/comm
on -I../src/runtime/WIN32 -I../src/runtime/ex_frame -I../src/thread/Common -I../
src/thread/WIN32 -I../src/win32 -I../src/unix/Common -I../src/C/Common -Z7 -MD -
Oi -c ..\\src\\unix\\Common\\Usocket.c
Usocket.c
..\\src\\unix\\Common\\Usocket.c(65) : error C2375: 'Usocket__listen' : redefini
tion; different linkage
        C:\cm3\Sandbox\m3-libs\m3core\src\m3core.h(283) : see declaration of 'Us
ocket__listen'
..\\src\\unix\\Common\\Usocket.c(66) : error C2375: 'Usocket__shutdown' : redefi
nition; different linkage
        C:\cm3\Sandbox\m3-libs\m3core\src\m3core.h(284) : see declaration of 'Us
ocket__shutdown'
..\\src\\unix\\Common\\Usocket.c(67) : error C2375: 'Usocket__socket' : redefini
tion; different linkage
        C:\cm3\Sandbox\m3-libs\m3core\src\m3core.h(285) : see declaration of 'Us
ocket__socket'
  compile_c => 2
C compiler failed compiling: ..\src\unix\Common\Usocket.c
compilation failed => not building library "m3core.lib"
Fatal Error: package build failed

Regards,
Randy

-----Original Message-----
From: jayk123 at hotmail.com [mailto:jayk123 at hotmail.com] On Behalf Of Jay K
Sent: Friday, May 21, 2010 12:44 AM
To: Coleburn, Randy; m3devel
Subject: RE: [M3devel] m3core build failure


Oops, it should be include_dir.


32BITS is deliberate -- 32bits has a 32bit long, 64bits has a 64bit long, all Win32 platforms, 32bit or 64bit, have a 32bit long.


We really should just not have long anywhere, but that might be difficult to achieve.
   The often purported portable meaning of "long", that is a pointer-sized, is false.
The pointer sized integers are INTEGER and Word.T, not "long".



 - Jay

________________________________
> From: rcolebur at SCIRES.COM
> To: m3devel at elegosoft.com
> Date: Fri, 21 May 2010 00:26:38 -0400
> Subject: [M3devel] m3core build failure
>
>
>
>
>
>
>
>
>
>
>
>
> I am getting a build error on Windows for m3core in HEAD branch:
>
>
>
>
>
> "C:\cm3\Sandbox\m3-libs\m3core\src\C\m3makefile", line 14: quake runtime error:
>
>
> unable to open "C:\cm3\Sandbox\m3-libs\m3core\src\C\32BITS" for reading
>
>
>
>
>
> Suspect the if equal(OS_TYPE, "WIN32") include ("32BITS") is the problem. Shouldn't this be "NT386" instead of "WIN32"?
>
>
>
>
>
> Here is offending m3makefile:
>
>
>
>
>
> C:\cm3\Sandbox\m3-libs\m3core\src\C>type m3makefile
>
>
> % Copyright (C) 1992, Digital Equipment Corporation
>
>
> % All rights reserved.
>
>
> % See the file COPYRIGHT for a full description.
>
>
> %
>
>
> % Last modified on Fri Aug 13 10:38:35 PDT 1993 by kalsow
>
>
> % modified on Wed Jun 9 17:25:51 PDT 1993 by harrison
>
>
> % modified on Thu May 6 12:11:46 PDT 1993 by muller
>
>
> % modified on Wed May 5 11:53:58 PDT 1993 by mjordan
>
>
>
>
>
> include_dir ("Common")
>
>
> include_dir (TARGET)
>
>
> if equal(OS_TYPE, "WIN32")
>
>
> % long is 32bits even on 64bit Windows
>
>
> include("32BITS")
>
>
> else
>
>
> include_dir (WORD_SIZE)
>
>
> end
>
>
>
>
>
> Regards,
>
>
> Randy
>
>
>
>
> ________________________________
>
> CONFIDENTIALITY NOTICE: This email and any attachments are intended solely for the use of the named recipient(s). This email may contain confidential and/or proprietary information of Scientific Research Corporation.
> If you are not a named recipient, you are prohibited from reviewing, copying, using, disclosing or distributing to others the information in this email and attachments. If you believe you have received this email in error, please notify the sender immediately
> and permanently delete the email, any attachments, and all copies thereof from any drives or storage media and destroy any printouts of the email or attachments.
>
>
>
> EXPORT COMPLIANCE NOTICE: This email and any attachments may contain technical data subject to U.S export restrictions under the International Traffic in Arms Regulations (ITAR) or the Export Administration Regulations (EAR). Export or transfer of this technical
> data and/or related information to any foreign person(s) or entity(ies), either within the U.S. or outside of the U.S., may require advance export authorization by the appropriate U.S. Government agency prior to export or transfer. In addition, technical data
> may not be exported or transferred to certain countries or specified designated nationals identified by U.S. embargo controls without prior export authorization. By accepting this email and any attachments, all recipients confirm that they understand and will
> comply with all applicable ITAR, EAR and embargo compliance requirements.
>

CONFIDENTIALITY NOTICE:  This email and any attachments are intended solely for the use of the named recipient(s).  This email may contain confidential and/or proprietary information of Scientific Research Corporation.  If you are not a named recipient, you are prohibited from reviewing, copying, using, disclosing or distributing to others the information in this email and attachments.  If you believe you have received this email in error, please notify the sender immediately and permanently delete the email, any attachments, and all copies thereof from any drives or storage media and destroy any printouts of the email or attachments.

EXPORT COMPLIANCE NOTICE:  This email and any attachments may contain technical data subject to U.S export restrictions under the International Traffic in Arms Regulations (ITAR) or the Export Administration Regulations (EAR).  Export or transfer of this technical data and/or related information to any foreign person(s) or entity(ies), either within the U.S. or outside of the U.S., may require advance export authorization by the appropriate U.S. Government agency prior to export or transfer.  In addition, technical data may not be exported or transferred to certain countries or specified designated nationals identified by U.S. embargo controls without prior export authorization.  By accepting this email and any attachments, all recipients confirm that they understand and will comply with all applicable ITAR, EAR and embargo compliance requirements.



More information about the M3devel mailing list