pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Build broken with nmake since ea74e47
6+ messages / 2 participants
[nested] [flat]

* Build broken with nmake since ea74e47
@ 2016-06-30 07:45  Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Michael Paquier @ 2016-06-30 07:45 UTC (permalink / raw)
  To: pgsql-odbc

Hi,

Since commit ea74e47, the build with nmake is broken:
NMAKE : fatal error U1073: don't know how to make 'exe\connect-test.exe'
I have yet to diagnose what is wrong here, but a guess is that win.mak
is missing a trick.

Thanks,
-- 
Michael


-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Build broken with nmake since ea74e47
@ 2016-07-01 04:27  Michael Paquier <michael.paquier@gmail.com>
  parent: Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Michael Paquier @ 2016-07-01 04:27 UTC (permalink / raw)
  To: pgsql-odbc

On Thu, Jun 30, 2016 at 12:45 AM, Michael Paquier
<michael.paquier@gmail.com> wrote:
> Hi,
>
> Since commit ea74e47, the build with nmake is broken:
> NMAKE : fatal error U1073: don't know how to make 'exe\connect-test.exe'
> I have yet to diagnose what is wrong here, but a guess is that win.mak
> is missing a trick.

After spending some time on that, I can reproduce the problem, but I
have little idea how to properly link each exe and src file with
common.obj at the same time using this nmake Makefile. ea74e47 has
really introduced a broken concept in win.mak, and I am sure that this
has not been tested. Could it be possible to get back to the prior
behavior for just nmake? For example the patch attached does the job
for me again.

At the same time, I have noticed a compilation error in
large-object-data-at-exec-test.c regarding a type declaration in the
middle of a code block, basically that:
-        int error = SQL_SUCCESS != rc && SQL_SUCCESS_WITH_INFO != rc
&& SQL_NEED_DATA != rc;
+        error = SQL_SUCCESS != rc &&
+                SQL_SUCCESS_WITH_INFO != rc &&
+                SQL_NEED_DATA != rc;
-- 
Michael

-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc

Attachments:

pgodbc-nmake-fix.patch (text/x-diff, 1.6K) download diff --git a/test/src/large-object-data-at-exec-test.c b/test/src/large-object-data-at-exec-test.c index 6ef09de..fd9526e 100644 --- a/test/src/large-object-data-at-exec-test.c +++ b/test/src/large-object-data-at-exec-test.c @@ -58,11 +58,14 @@ do_test(HSTMT hstmt, int testno, int lobByteSize, char *lobData) SQLLEN lobChunkSize = 4096; SQLPOINTER pParamId = 0; const char *what = 0; + int error; /* Get the parameter that needs data */ what = "SQLParamData failed (first call)"; rc = SQLParamData(hstmt, &pParamId); - int error = SQL_SUCCESS != rc && SQL_SUCCESS_WITH_INFO != rc && SQL_NEED_DATA != rc; + error = SQL_SUCCESS != rc && + SQL_SUCCESS_WITH_INFO != rc && + SQL_NEED_DATA != rc; if (SQL_NEED_DATA == rc) { /* Send parameter data in chunks */ diff --git a/test/win.mak b/test/win.mak index 5e3858f..cc53944 100644 --- a/test/win.mak +++ b/test/win.mak @@ -31,13 +31,14 @@ TESTS = $(TESTS:-test=) # exe\<testname>.exe TESTEXES = $(TESTBINS:-test=-test.exe) -TESTEXES = $(TESTEXES:exe/=exe\) +TESTEXES = $(TESTEXES:exe/=src\) # Flags CLFLAGS=/D WIN32 LINKFLAGS=/link odbc32.lib odbccp32.lib + # Build an executable for each test. # # XXX: Note that nmake syntax doesn't allow passing a dependent on an @@ -46,7 +47,7 @@ LINKFLAGS=/link odbc32.lib odbccp32.lib # for each test - ideally we would build common.obj once and just link it # to each test. .c.exe: - cl /Fe.\exe\ /Fo.\exe\ $*.c src/common.c $(CLFLAGS) $(LINKFLAGS) + cl /Fe.\src\ /Fo.\src\ $*.c src/common.c $(CLFLAGS) $(LINKFLAGS) all: $(TESTEXES) runsuite.exe
^ permalink raw reply [nested|flat] 6+ messages in thread

* Re: Build broken with nmake since ea74e47
@ 2016-07-02 11:18  Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
  parent: Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Inoue, Hiroshi @ 2016-07-02 11:18 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; +Cc: pgsql-odbc

Hi Michael,

On 2016/07/01 13:27, Michael Paquier wrote:
> On Thu, Jun 30, 2016 at 12:45 AM, Michael Paquier
> <michael.paquier@gmail.com> wrote:
>> Hi,
>>
>> Since commit ea74e47, the build with nmake is broken:
>> NMAKE : fatal error U1073: don't know how to make 'exe\connect-test.exe'
>> I have yet to diagnose what is wrong here, but a guess is that win.mak
>> is missing a trick.
> After spending some time on that, I can reproduce the problem, but I
> have little idea how to properly link each exe and src file with
> common.obj at the same time using this nmake Makefile. ea74e47 has
> really introduced a broken concept in win.mak, and I am sure that this
> has not been tested. Could it be possible to get back to the prior
> behavior for just nmake? For example the patch attached does the job
> for me again.

Oops my mistake.
The commit was irrelevant to Windows..
I would put back the change.
Thanks.

>
> At the same time, I have noticed a compilation error in
> large-object-data-at-exec-test.c regarding a type declaration in the
> middle of a code block, basically that:
> -        int error = SQL_SUCCESS != rc && SQL_SUCCESS_WITH_INFO != rc
> && SQL_NEED_DATA != rc;
> +        error = SQL_SUCCESS != rc &&
> +                SQL_SUCCESS_WITH_INFO != rc &&
> +                SQL_NEED_DATA != rc;

OK I would fix the compilation error.
Thanks.

Hiroshi Inoue



-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Build broken with nmake since ea74e47
@ 2016-07-06 12:51  Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
  parent: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
  0 siblings, 1 reply; 6+ messages in thread

From: Inoue, Hiroshi @ 2016-07-06 12:51 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; +Cc: pgsql-odbc

Hi Michael,

On 2016/07/02 20:18, Inoue, Hiroshi wrote:
> Hi Michael,
>
> On 2016/07/01 13:27, Michael Paquier wrote:
>> On Thu, Jun 30, 2016 at 12:45 AM, Michael Paquier
>> <michael.paquier@gmail.com> wrote:
>>> Hi,
>>>
>>> Since commit ea74e47, the build with nmake is broken:
>>> NMAKE : fatal error U1073: don't know how to make 
>>> 'exe\connect-test.exe'
>>> I have yet to diagnose what is wrong here, but a guess is that win.mak
>>> is missing a trick.
>> After spending some time on that, I can reproduce the problem, but I
>> have little idea how to properly link each exe and src file with
>> common.obj at the same time using this nmake Makefile. ea74e47 has
>> really introduced a broken concept in win.mak, and I am sure that this
>> has not been tested. Could it be possible to get back to the prior
>> behavior for just nmake? For example the patch attached does the job
>> for me again.
>
> Oops my mistake.
> The commit was irrelevant to Windows..
> I would put back the change.
> Thanks.

After looking at regression test on Windows, I'm inclined to go forward 
rather
than putting back win.mak, i.e. build obj and exe in exe directory. I 
don't want
to put them in src directory because I specified src directory as 
EXTRA_DIST.
I would also use fc command instead of diff command on Windows.

regards,
Hiroshi Inoue


-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Build broken with nmake since ea74e47
@ 2016-07-07 06:58  Michael Paquier <michael.paquier@gmail.com>
  parent: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
  0 siblings, 1 reply; 6+ messages in thread

From: Michael Paquier @ 2016-07-07 06:58 UTC (permalink / raw)
  To: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>; +Cc: pgsql-odbc

On Wed, Jul 6, 2016 at 9:51 PM, Inoue, Hiroshi
<h-inoue@dream.email.ne.jp> wrote:
> After looking at regression test on Windows, I'm inclined to go forward
> rather
> than putting back win.mak, i.e. build obj and exe in exe directory. I don't
> want
> to put them in src directory because I specified src directory as
> EXTRA_DIST.
> I would also use fc command instead of diff command on Windows.

No objections from here to do that. I'll just adapt my builds to the
situation: I have for example a couple of things where the path to the
compiled binaries of the regression tests is hardcoded because being
tarball'd and sent elsewhere, but that would be a trivial change.
-- 
Michael


-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Build broken with nmake since ea74e47
@ 2016-07-17 03:48  Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
  parent: Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Inoue, Hiroshi @ 2016-07-17 03:48 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; +Cc: pgsql-odbc

Hi Michael,

On 2016/07/07 15:58, Michael Paquier wrote:
> On Wed, Jul 6, 2016 at 9:51 PM, Inoue, Hiroshi
> <h-inoue@dream.email.ne.jp> wrote:
>> After looking at regression test on Windows, I'm inclined to go forward
>> rather
>> than putting back win.mak, i.e. build obj and exe in exe directory. I don't
>> want
>> to put them in src directory because I specified src directory as
>> EXTRA_DIST.
>> I would also use fc command instead of diff command on Windows.
> No objections from here to do that. I'll just adapt my builds to the
> situation: I have for example a couple of things where the path to the
> compiled binaries of the regression tests is hardcoded because being
> tarball'd and sent elsewhere, but that would be a trivial change.

I pushed the changes about regression test on Windows to git.
Please try.
7 tests fail here.

regards,
Hiroshi Inoue


-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2016-07-17 03:48 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-06-30 07:45 Build broken with nmake since ea74e47 Michael Paquier <michael.paquier@gmail.com>
2016-07-01 04:27 ` Michael Paquier <michael.paquier@gmail.com>
2016-07-02 11:18   ` Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
2016-07-06 12:51     ` Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
2016-07-07 06:58       ` Michael Paquier <michael.paquier@gmail.com>
2016-07-17 03:48         ` Inoue, Hiroshi <h-inoue@dream.email.ne.jp>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox