logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Building & Member Downloads View previous topic :: View next topic
Reply to topic   Topic: From UNIX source
Author
Virsacer



Joined: 16 Jan 2010
Posts: 108
Location: Germany, Darmstadt

PostPosted: Sun 24 Jul '11 16:26    Post subject: From UNIX source Reply with quote

I have always been using the windows source but I wanted to try compiling from unix source.

So I downloaded "httpd-2.2.19.tar.bz2" and "apr-iconv-1.2.1.tar.bz2"
Then I ran "perl srclib\apr\build\lineends.pl" and started the building as if it was the windows source, but I get this error:

Quote:
Building Win32 Release targets (R suffixes)
cd srclib\apr
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd6\nmake.exe" -nologo -f apr.mak CFG="apr - Win32 Release" RECURSE=0
if not exist ".\LibR/" mkdir ".\LibR"
NMAKE : fatal error U1073: ""apr.h"" konnte nicht erstellt werden
Stop.
NMAKE : fatal error U1077: ""C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\nm
ake.exe"": Rückgabe-Code "0x2"
Stop.
NMAKE : fatal error U1077: ""C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\nm
ake.exe"": Rückgabe-Code "0x2"
Stop.


Can you guys tell me what I did wrong?
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3094
Location: Hilversum, NL, EU

PostPosted: Sun 24 Jul '11 20:41    Post subject: Reply with quote

You are only building apr here: cd srclib\apr ?

To build apache:

Copy lineends.pl to the apache source folder and run it from there and the cvtdsp.pl -2005.

Steffen
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Sun 24 Jul '11 21:36    Post subject: Reply with quote

Did you try compiling it from the command line or the VC?

@Steffen there is no need to copy lineends.pl

Just run it from the main folder

e.g.
Code:

cd C:\build\httpd-2.2.19
perl srclib\apr\build\lineends.pl
srclib\apr\build\cvtdsp.pl -2005
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Mon 25 Jul '11 8:08    Post subject: Reply with quote

Actually
srclib/apr/build/lineends.pl
perl srclib/apr/build/cvtdsp.pl -2005

(Active)Perl will not see the @ARGV if you do not call perl, on lineends it doesn't matter
So has been my experience with it anyway, of course you could try it yourself

# showargs.pl
foreach (@ARGV) {
print $_."\n";
}
exit 0;

showargs.pl these are args
perl showargs.pl these are args
Back to top
Virsacer



Joined: 16 Jan 2010
Posts: 108
Location: Germany, Darmstadt

PostPosted: Mon 25 Jul '11 11:26    Post subject: Reply with quote

Im building from commandline with "nmake /f Makefile.win"
"perl srclib\apr\build\cvtdsp.pl -2005" did not solve the problem - same error.
But I noticed a difference between win and unix source in "srclib\apr\apr.mak" and "libapr.mak"

win:
Quote:
"$(INTDIR)\apr_atomic.obj" : $(SOURCE) "$(INTDIR)" ".\include\apr.h"

unix:
Quote:
"$(INTDIR)\apr_atomic.obj" : $(SOURCE) "$(INTDIR)" {$(INCLUDE)}"apr.h"

Is $INCLUDE set automatically or do I have to set it anywhere?

@glsmith:
The detection of arguments depends on your registry-settings for .pl files
shell-open-command: "C:\Programme\PERL\perl\bin\perl.exe" "%1" %*
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Tue 26 Jul '11 23:45    Post subject: Reply with quote

No, evidently that is not good. It has since been fixed, and looks to have been fixed between the time the unix source and the windows source packages were made.

http://svn.apache.org/viewvc?view=revision&revision=1125579
Back to top
Virsacer



Joined: 16 Jan 2010
Posts: 108
Location: Germany, Darmstadt

PostPosted: Wed 27 Jul '11 12:27    Post subject: Reply with quote

Thanks for that info!
Back to top


Reply to topic   Topic: From UNIX source View previous topic :: View next topic
Post new topic   Forum Index -> Building & Member Downloads