Google Groups Home
Help | Sign in
Compiling 4.5 on Win32 using Visual Studio Express Edition 2008
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Shedis  
View profile
 More options Apr 26, 12:08 am
From: Shedis <she...@GMAIL.COM>
Date: Sat, 26 Apr 2008 07:08:33 +0300
Local: Sat, Apr 26 2008 12:08 am
Subject: [AOLSERVER] Compiling 4.5 on Win32 using Visual Studio Express Edition 2008
Hello,

TCL: 8.5.2
AOLserver: aolserver-HEAD-20071203

This is one of my many attempts to but in the past 6 months i have  
never managed to compile. Once successful, i wanted to write up the  
process for other like me out there. But it never happend. Except for  
one case where with lots of back and forth emails from Dossy help me  
to compile on suse 10.1. But it was a lot of test and trial and i lost  
track of how i actually started. But i have to admit that once nsd was  
started it just works.

Guys why not try to document the compilation process and try to align  
it with 'it just compiles' notion. is it too far fetched. For example  
a clear instructions for:

a. compiling on suse 10.1
b. compiling on suse 10.2
c. compiling on win32 2003 sp1, with vs express edition 2008
etc....

I'm trying to compile 4.5 using visual studio express edition 2008 but  
keep getting the following error. Does any one know how to fix this?

Steps i'm using to compile:

1. "C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools
\vsvars32.bat"

2. nmake -f makefile.vc INSTALLDIR=c:\aolserver OPTS=threads,thrdalloc

3. nmake -f makefile.vc INSTALLDIR=c:\aolserver OPTS=threads,thrdalloc  
install

4. c:\aolserver\bin\tclsh85t.exe nsconfig.tcl

Configuring include/ns.mak with variables:
         AOLSERVER=c:\aolserver
         DEBUG=0
         TCLSH=c:\aolserver\bin\tclsh85t.exe
         TCLINC=c:\aolserver\include
         TCLLIB=c:\aolserver\lib\tcl85t.lib

5. nmake install

make install: nsd

Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation.  All rights reserved.

         c:\aolserver\bin\tclsh85t.exe C:\source\aolserver-
HEAD-20071203\util\nsi
nstall.tcl -d "c:\aolserver\bin" init.tcl
installed: C:/aolserver/bin/init.tcl
         cl /EHsc /W3 /nologo /c /MD /O2  /D "_WINDOWS" /D  
"TCL_THREADS=1" /D "WI
N32"  /D "FD_SETSIZE=128" /D "NO_CONST=1" /D "_MBCS" /D "NDEBUG" /I "C:
\source\a
olserver-HEAD-20071203\include" /I "c:\aolserver\include" /c /
Foadpcmds.o adpcmd
s.c
adpcmds.c
c:\source\aolserver-head-20071203\nsd\nsd.h(71) : warning C4005:  
'POLLIN' : macr
o redefinition
         C:\Program Files\Microsoft SDKs\Windows\v6.0A\include
\winsock2.h(1495) :
  see previous definition of 'POLLIN'
c:\source\aolserver-head-20071203\nsd\nsd.h(72) : warning C4005:  
'POLLOUT' : mac
ro redefinition
         C:\Program Files\Microsoft SDKs\Windows\v6.0A\include
\winsock2.h(1499) :
  see previous definition of 'POLLOUT'
c:\source\aolserver-head-20071203\nsd\nsd.h(73) : warning C4005:  
'POLLPRI' : mac
ro redefinition
         C:\Program Files\Microsoft SDKs\Windows\v6.0A\include
\winsock2.h(1496) :
  see previous definition of 'POLLPRI'
c:\source\aolserver-head-20071203\nsd\nsd.h(74) : warning C4005:  
'POLLHUP' : mac
ro redefinition
         C:\Program Files\Microsoft SDKs\Windows\v6.0A\include
\winsock2.h(1503) :
  see previous definition of 'POLLHUP'
c:\source\aolserver-head-20071203\nsd\nsd.h(75) : error C2011:  
'pollfd' : 'struc
t' type redefinition
         C:\Program Files\Microsoft SDKs\Windows\v6.0A\include
\winsock2.h(1506) :
  see declaration of 'pollfd'
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio  
9.0\VC\BIN
\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'c:\aolserver\bin\tclsh85t.exe' : return  
code '0x1'
Stop.

Thanks in advance.

--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <lists...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maurizio Martignano  
View profile
 More options Apr 26, 1:39 am
From: Maurizio Martignano <Maurizio.Martign...@ACM.ORG>
Date: Sat, 26 Apr 2008 07:39:19 +0200
Local: Sat, Apr 26 2008 1:39 am
Subject: Re: [AOLSERVER] Compiling 4.5 on Win32 using Visual Studio Express Edition 2008
Hello there,
        Please have a look at the following Win32-OpenACS port:

http://www.friendlybits.com/en/inf_tec_en/win32openacs_en/

This port has been compiled using Visual Studio 2008 Professional Edition
and I believe you should be able to compile it also with the Express
Edition.

The distribution contains both the binary files and the source codes.

Building/compilation instructions can be found on the web page.

Happy compiling!!!!

Cheers,
Maurizio


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maurizio Martignano  
View profile
 More options Apr 26, 1:41 am
From: Maurizio Martignano <Maurizio.Martign...@ACM.ORG>
Date: Sat, 26 Apr 2008 07:41:15 +0200
Local: Sat, Apr 26 2008 1:41 am
Subject: Re: [AOLSERVER] Compiling 4.5 on Win32 using Visual Studio Express Edition 2008
I just forgot to mention...
Compiling with Visual Studio 2008 is just as easy (or as difficult) as
compiling with gcc on a Linux/Unix box.

Cheers,
Maurizio


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Shedis  
View profile
 More options Apr 26, 12:32 pm
From: Shedis <she...@GMAIL.COM>
Date: Sat, 26 Apr 2008 19:32:22 +0300
Local: Sat, Apr 26 2008 12:32 pm
Subject: Re: [AOLSERVER] Compiling 4.5 on Win32 using Visual Studio Express Edition 2008

Last week i did came across the compiling instructions @ friendlybits (http://www.friendlybits.com/en/inf_tec_en/win32openacs_en/build_inst_en/
) but i was getting different error messages.  so i decided to stick  
with simply compiling tcl and aolserver only.

On Apr 26, 2008, at 8:39 AM, Maurizio Martignano wrote:

--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <lists...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maurizio Martignano  
View profile
 More options Apr 26, 7:00 pm
From: Maurizio Martignano <Maurizio.Martign...@ACM.ORG>
Date: Sun, 27 Apr 2008 01:00:13 +0200
Local: Sat, Apr 26 2008 7:00 pm
Subject: Re: [AOLSERVER] Compiling 4.5 on Win32 using Visual Studio Express Edition 2008

In case you fail, the binaries are there.

From: AOLserver Discussion [mailto:AOLSER...@LISTSERV.AOL.COM] On Behalf Of
Shedis
Sent: 26 April 2008 18:32
To: AOLSER...@LISTSERV.AOL.COM
Subject: Re: [AOLSERVER] Compiling 4.5 on Win32 using Visual Studio Express
Edition 2008

Last week i did came across the compiling instructions @ friendlybits
(http://www.friendlybits.com/en/inf_tec_en/win32openacs_en/build_inst_en/)
but i was getting different error messages.  so i decided to stick with
simply compiling tcl and aolserver only.

On Apr 26, 2008, at 8:39 AM, Maurizio Martignano wrote:

Hello there,
            Please have a look at the following Win32-OpenACS port:

http://www.friendlybits.com/en/inf_tec_en/win32openacs_en/

This port has been compiled using Visual Studio 2008 Professional Edition
and I believe you should be able to compile it also with the Express
Edition.

The distribution contains both the binary files and the source codes.

Building/compilation instructions can be found on the web page.

Happy compiling!!!!

Cheers,
Maurizio


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Titi Alailima  
View profile
 More options Apr 28, 9:17 am
From: Titi Alailima <t...@MEDTOUCH.COM>
Date: Mon, 28 Apr 2008 06:17:29 -0700
Local: Mon, Apr 28 2008 9:17 am
Subject: Re: [AOLSERVER] Compiling 4.5 on Win32 using Visual Studio Express Edition 2008
I had similar issues when I used Visual Studio 2005.  When I used the redistributable package that Maurizio links to, it worked.  But for the 2005 version I had to go into one of the header (".h") files, I forget which, and comment out the macro redefinitions.  Anyone know how to recode it so that it knows which version of Visual Studio it's using and includes the macro definitions appropriately.

Titi Ala'ilima
Lead Architect
MedTouch LLC
1100 Massachusetts Avenue
Cambridge, MA 02138
617.621.8670 x309

--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <lists...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Titi Alailima  
View profile
 More options Apr 28, 9:32 am
From: Titi Alailima <t...@MEDTOUCH.COM>
Date: Mon, 28 Apr 2008 06:32:59 -0700
Local: Mon, Apr 28 2008 9:32 am
Subject: Re: [AOLSERVER] Compiling 4.5 on Win32 using Visual Studio Express Edition 2008

If you're comfortable mucking around on the command line and with the makefiles, I'd work off of Maurizio's package and the redistributable VC++ package.  The binaries are good, and all the source is included so if you have to recompile with a few tweaks it's not too painful.  As I mentioned, it may not work as well with other compiler versions.

Speaking of Maurizio's work, since he is basing his work on 4.5.0, is there any chance we could start a stable branch of 4.5.0-based code?  Seems like 4.5.0 is getting some real traction, but the current HEAD sounds a little like a moving target, so I'd like to see something that basically just has bug fixes to 4.5.0.  I don't care if we call it 4.5.0.x or 4.5.x (and look at the HEAD more as 4.6 alpha), but I don't like having to comb through the CVS and find the bug fixes I need and patch them in manually, and I've heard enough on this list to realize it would be foolish to try to take something to production using the HEAD.

Titi Ala'ilima
Lead Architect
MedTouch LLC
1100 Massachusetts Avenue
Cambridge, MA 02138
617.621.8670 x309

From: AOLserver Discussion [mailto:AOLSER...@LISTSERV.AOL.COM] On Behalf Of Shedis
Sent: Saturday, April 26, 2008 12:32 PM
To: AOLSER...@LISTSERV.AOL.COM
Subject: Re: [AOLSERVER] Compiling 4.5 on Win32 using Visual Studio Express Edition 2008

Last week i did came across the compiling instructions @ friendlybits (http://www.friendlybits.com/en/inf_tec_en/win32openacs_en/build_inst_en/) but i was getting different error messages.  so i decided to stick with simply compiling tcl and aolserver only.

On Apr 26, 2008, at 8:39 AM, Maurizio Martignano wrote:

Hello there,
            Please have a look at the following Win32-OpenACS port:

http://www.friendlybits.com/en/inf_tec_en/win32openacs_en/

This port has been compiled using Visual Studio 2008 Professional Edition
and I believe you should be able to compile it also with the Express
Edition.

The distribution contains both the binary files and the source codes.

Building/compilation instructions can be found on the web page.

Happy compiling!!!!

Cheers,
Maurizio


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.