Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 73262 invoked from network); 7 Nov 2005 06:21:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Nov 2005 06:21:15 -0000 Received: (qmail 9389 invoked by uid 500); 7 Nov 2005 06:21:13 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 8545 invoked by uid 500); 7 Nov 2005 06:21:09 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 8534 invoked by uid 99); 7 Nov 2005 06:21:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Nov 2005 22:21:09 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [212.39.12.10] (HELO deck1210.hostdeck.com) (212.39.12.10) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Nov 2005 22:21:02 -0800 Received: (qmail 19270 invoked from network); 7 Nov 2005 07:20:44 +0100 Received: from host70-41.pool82106.interbusiness.it (HELO fatti.com) (82.106.41.70) by deck1210.hostdeck.com with SMTP; 7 Nov 2005 07:20:44 +0100 Message-ID: <436EF2A4.8080904@fatti.com> Date: Mon, 07 Nov 2005 07:22:28 +0100 From: Enrico Migliore Reply-To: enrico.migliore@fatti.com Organization: - User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: bootJVM compiled with MSVC References: <20051104145701.31013.qmail@web30913.mail.mud.yahoo.com> <1131187254.6411.35.camel@localhost.localdomain> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N hi, I finally compiled bootJVM with MSVC 6.0 but still have 13 problems when linking. The most common problems I faced, during in the compilation process, were: 1. *.c In many files, some variables are defined after a certain number of C statements. I had to move the definition of those variables to the beginning of the block where they belong. 2. *.c #include is not defined in MSVC 3. timeslice.c The structure "struct itimerval" is not defined in MSVC, 4. timeslice.c SIGHUP and SIGALRM signals are not defined in MSVC. 5. opcode.c The following function definition: static void dummy1(void) { char *p, *dummy2; dummy2 = p; dummy1(); } were placed within the funcion "opcode_run( )" I got some other smaller problems which I don't report here. I got now the following linking problems: --------------------------------------------------------------------------------------------- Linking... bytegames.obj : error LNK2001: unresolved external symbol _swap2 bytegames.obj : error LNK2001: unresolved external symbol _swap4 classfile.obj : error LNK2001: unresolved external symbol _getwd jvm.obj : error LNK2001: unresolved external symbol _sleep threadutil.obj : error LNK2001: unresolved external symbol __imp__pthread_mutex_unlock timeslice.obj : error LNK2001: unresolved external symbol __imp__pthread_mutex_unlock threadutil.obj : error LNK2001: unresolved external symbol __imp__pthread_mutex_lock timeslice.obj : error LNK2001: unresolved external symbol __imp__pthread_mutex_lock timeslice.obj : error LNK2001: unresolved external symbol __imp__pthread_create timeslice.obj : error LNK2001: unresolved external symbol __imp__pthread_mutex_init timeslice.obj : error LNK2001: unresolved external symbol _yield timeslice.obj : error LNK2001: unresolved external symbol __imp__pthread_cancel Debug/harmony.exe : fatal error LNK1120: 10 unresolved externals Error executing link.exe. Creating browse info file... harmony.exe - 13 error(s), 2 warning(s) --------------------------------------------------------------------------------------------- Apart from _sleep, which I assume can be replaced by the Sleep( ) function, I need to know how to proceed. Can anybody help me out? Enrico