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: [solved]Building SSL (or anything else) problems
Author
mrtechguy



Joined: 21 Sep 2006
Posts: 7

PostPosted: Wed 15 Nov '06 8:16    Post subject: [solved]Building SSL (or anything else) problems Reply with quote

Hey guys,

I am trying to build SSL (same problems occur for other type of build) and I get the following in my "output window":
Code:

------ Build started: Project: libapr, Configuration: Release Win32 ------
Linking...
   Creating library .\Release/libapr-1.lib and object .\Release/libapr-1.exp
filestat.obj : error LNK2019: unresolved external symbol __imp__FreeSid@4 referenced in function _free_world
filestat.obj : error LNK2019: unresolved external symbol __imp__AllocateAndInitializeSid@44 referenced in function _resolve_prot
rand.obj : error LNK2019: unresolved external symbol __imp__CryptReleaseContext@8 referenced in function _apr_generate_random_bytes@8
..
..


Why is this happening?

Cheers
MTG


Last edited by mrtechguy on Sat 18 Nov '06 13:00; edited 1 time in total
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Wed 15 Nov '06 17:16    Post subject: Reply with quote

Have you installed the Windows Platform SDK? Instructions are at: Using Visual C++ 2005 Express Edition with the Microsoft Platform SDK

Most (but not all) of your undefined symbols are in the Windows library AdvAPI32.Lib, which comes with the platform SDK.

After you've installed the SDK (and restarted Visual C++), your project properties should show this library under:
    [Properties] [Configuration Properties] [Linker] [Input] [Additional Dependencies] [...] [Inherited Values]

There are some good instructions for building Apache in the "How to Build Apache Mod SSL 2.2.n Using Visual C++ Express" post in this forum.

-tom-

p.s. Posting your whole 100+ line output log is a bit too much.
It is easier on forum readers if you show us one or two of your LNK2019: unresolved external symbol errors - rather than all 67 of them.

Admin note:
Thanks tdonovan for the note, I edited the post
Back to top
mrtechguy



Joined: 21 Sep 2006
Posts: 7

PostPosted: Wed 15 Nov '06 22:56    Post subject: Reply with quote

OK I got most of that sorted out apart from libhttpd, which returns 13 errors, of the same time
Code:

.\server\util.c(1447) : error C2065: 'test_char_table(That changes)' : undeclared identifier
.\server\util.c(1447) : error C2109: subscript requires array or pointer type


This is the only error that filas mod_ssl at the moment, I have installed Platform SDK corrently but this error remains.

Cheers
MTG
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Thu 16 Nov '06 6:28    Post subject: Reply with quote

That's mysterious!

Line 1447 of server\util.c should look like this:
Code:
        while (TEST_CHAR(*s, T_HTTP_TOKEN_STOP)) {

The macro TEST_CHAR is defined in the same file up at line 74, and should look like this:
Code:
#define TEST_CHAR(c, f)        (test_char_table[(unsigned)(c)] & (f))

The argument T_HTTP_TOKEN_STOP comes from the file server/test_char.h at line 5:
Code:
#define T_HTTP_TOKEN_STOP      (8)

You might want to check these files and ensure you haven't accidentally altered anything in these lines.

Another possibility is that you have another file named test_char.h somewhere which is being #include'd instead of the correct file.

Pls let us know if you figure it out.

-tom-
Back to top
mrtechguy



Joined: 21 Sep 2006
Posts: 7

PostPosted: Thu 16 Nov '06 11:03    Post subject: Reply with quote

is test_char.h supposed to be a blank file or is it supposed to have contents?
If it is supposed to have something in it then that could be the problem.

MTG
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Thu 16 Nov '06 21:57    Post subject: Reply with quote

test_char.h is generated as part of the libhttpd build.

gen_test_char.exe should be listed in the Solution Explorer window under the libhttpd project.
Its [Properties] include a Custom Build Step to run it and create test_char.h.

There is a separate project to create gen_test_char.exe, called (surprisingly!): gen_test_char
The gen_test_char project project is a dependency of the libhttpd project, so gen_test_char should get built first.

A correctly-generated test_char.h is about 23 lines long. It starts with:
Code:
/* this file is automatically generated by gen_test_char, do not edit */

-tom-
Back to top


Reply to topic   Topic: [solved]Building SSL (or anything else) problems View previous topic :: View next topic
Post new topic   Forum Index -> Building & Member Downloads