Re: Some more msvc++ 8.2.4 build feedback

From: Charlie Savage <cfis(at)savagexi(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Some more msvc++ 8.2.4 build feedback
Date: 2007-08-30 16:41:13
Message-ID: 46D6F329.10903@savagexi.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Magnus,

> Yeah, this is a known problem, and it's fixed for 8.3. Really, the msvc
> build process in 8.2 has a *lot* of rough edges ;-) The code itself builds
> fine, but the buildsystem needed a lot more work.
>
Great - figured that might be the case.

>> 3. If you have a contrib module that is not known to the build system
>> it blows up. For example, I use PostGIS. When running build.bat it
>> stops at postgis (sorry, I didn't write down the error message but can
>> easily get it if needed). Could unknown contrib modules just be skipped
>> instead?
>>
>
> Uh, can you explain more what you mean? How can the pg build be affected by
> postgis?
>
Download postgis source and put it under contrib/postis. Then:

C:\Development\msys\src\postgresql-8.2.4\src\tools\msvc>perl mkvcbuild.pl
Could not determine contrib module type for postgis-1.2.1
at mkvcbuild.pl line 326
main::AddContrib('postgis-1.2.1') called at mkvcbuild.pl line 200

There is a loop in mkvcbuild.pl that processes the contrib modules:

my $D;
opendir($D, 'contrib') || croak "Could not opendir on contrib!\n";
while (my $d = readdir($D)) {
next if ($d =~ /^\./);
next unless (-f "contrib/$d/Makefile");
next if (grep {/^$d$/} @contrib_excludes);
AddContrib($d);
}
closedir($D);

Perhaps I shouldn't be installing the postgis source to contrib, but
that used to be the recommended practice (at least for PostGis).

Thanks for the help,

Charlie

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2007-08-30 16:41:51 Re: reindexdb hangs
Previous Message Andrew Dunstan 2007-08-30 16:21:58 Re: Re: [COMMITTERS] pgsql: Fix brain fade in DefineIndex(): it was continuing to access the