Обсуждение: [ODBC] When doing installcheck, an error message "unresolved external symbol_get_test_dsn ..." displays.

Поиск
Список
Период
Сортировка

[ODBC] When doing installcheck, an error message "unresolved external symbol_get_test_dsn ..." displays.

От
Kazuki Uehara
Дата:
Hi, all

Operating System:
   Windows7 64bit, psqlODBC 09.06.0410
   PostgreSQL 9.6.1 on CentOS7

The following trouble occurred when doing installcheck.

----------
$ nmake /f win.mak installcheck
...
reset-db.obj : error LNK2019: unresolved external symbol _get_test_dsn referenced in function _main
reset-db.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"D:\Microsoft Visual Studio 14.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
----------

I think $(COMOBJ) is needed for compiling reset-db.c.
What do you think?

psqlodbc-09.06.0410/test/win.mak
-------------
# diff win.mak win.mak.new
66c66
<       cl reset-db.c $(CLFLAGS) $(LINKFLAGS)
---
 >       cl reset-db.c $(CLFLAGS) $(LINKFLAGS) $(COMOBJ)
-------------

regards,

--
Kazuki Uehara
Mail : uehara.kazuki@lab.ntt.co.jp



Re: [ODBC] When doing installcheck, an error message "unresolvedexternal symbol _get_test_dsn ..." displays.

От
"Inoue, Hiroshi"
Дата:
Hi Uehara-san,

On 2017/08/02 16:47, Kazuki Uehara wrote:
> Hi, all
>
> Operating System:
>   Windows7 64bit, psqlODBC 09.06.0410
>   PostgreSQL 9.6.1 on CentOS7
>
> The following trouble occurred when doing installcheck.
>
> ----------
> $ nmake /f win.mak installcheck
> ...
> reset-db.obj : error LNK2019: unresolved external symbol _get_test_dsn
> referenced in function _main
> reset-db.exe : fatal error LNK1120: 1 unresolved externals
> NMAKE : fatal error U1077: '"D:\Microsoft Visual Studio
> 14.0\VC\BIN\cl.EXE"' : return code '0x2'
> Stop.
> ----------
>
> I think $(COMOBJ) is needed for compiling reset-db.c.
> What do you think?
>
> psqlodbc-09.06.0410/test/win.mak
> -------------
> # diff win.mak win.mak.new
> 66c66
> <       cl reset-db.c $(CLFLAGS) $(LINKFLAGS)
> ---
> >       cl reset-db.c $(CLFLAGS) $(LINKFLAGS) $(COMOBJ)
> -------------

I would take care of it.

Thanks.
Hiroshi Inoue

>
> regards,


Re: [ODBC] When doing installcheck, an error message "unresolvedexternal symbol _get_test_dsn ..." displays.

От
"Inoue, Hiroshi"
Дата:
Hi Uehara-san,

On 2017/08/02 20:03, Inoue, Hir,oshi wrote:
> Hi Uehara-san,
>
> On 2017/08/02 16:47, Kazuki Uehara wrote:
>> Hi, all
>>
>> Operating System:
>>   Windows7 64bit, psqlODBC 09.06.0410
>>   PostgreSQL 9.6.1 on CentOS7
>>
>> The following trouble occurred when doing installcheck.
>>
>> ----------
>> $ nmake /f win.mak installcheck
>> ...
>> reset-db.obj : error LNK2019: unresolved external symbol
>> _get_test_dsn referenced in function _main
>> reset-db.exe : fatal error LNK1120: 1 unresolved externals
>> NMAKE : fatal error U1077: '"D:\Microsoft Visual Studio
>> 14.0\VC\BIN\cl.EXE"' : return code '0x2'
>> Stop.
>> ----------
>>
>> I think $(COMOBJ) is needed for compiling reset-db.c.
>> What do you think?
>>
>> psqlodbc-09.06.0410/test/win.mak
>> -------------
>> # diff win.mak win.mak.new
>> 66c66
>> <       cl reset-db.c $(CLFLAGS) $(LINKFLAGS)
>> ---
>> >       cl reset-db.c $(CLFLAGS) $(LINKFLAGS) $(COMOBJ)
>> -------------
>
> I would take care of it.

I pushed your patch to git.
Thanks.

Do you see a successful result with the regression test?

regards,.
Hiroshi Inoue


Inoue-san,


Thank you for your quick response.

 > I pushed your patch to git.
 > Thanks.
 >
 > Do you see a successful result with the regression test?

I confirmed that this troubles was fixed.


regards,

uehara


On 2017/08/04 14:37, Inoue, Hiroshi wrote:
> Hi Uehara-san,
>
> On 2017/08/02 20:03, Inoue, Hir,oshi wrote:
>> Hi Uehara-san,
>>
>> On 2017/08/02 16:47, Kazuki Uehara wrote:
>>> Hi, all
>>>
>>> Operating System:
>>>   Windows7 64bit, psqlODBC 09.06.0410
>>>   PostgreSQL 9.6.1 on CentOS7
>>>
>>> The following trouble occurred when doing installcheck.
>>>
>>> ----------
>>> $ nmake /f win.mak installcheck
>>> ...
>>> reset-db.obj : error LNK2019: unresolved external symbol _get_test_dsn referenced in function _main
>>> reset-db.exe : fatal error LNK1120: 1 unresolved externals
>>> NMAKE : fatal error U1077: '"D:\Microsoft Visual Studio 14.0\VC\BIN\cl.EXE"' : return code '0x2'
>>> Stop.
>>> ----------
>>>
>>> I think $(COMOBJ) is needed for compiling reset-db.c.
>>> What do you think?
>>>
>>> psqlodbc-09.06.0410/test/win.mak
>>> -------------
>>> # diff win.mak win.mak.new
>>> 66c66
>>> <       cl reset-db.c $(CLFLAGS) $(LINKFLAGS)
>>> ---
>>> >       cl reset-db.c $(CLFLAGS) $(LINKFLAGS) $(COMOBJ)
>>> -------------
>>
>> I would take care of it.
>
> I pushed your patch to git.
> Thanks.
>
> Do you see a successful result with the regression test?
>
> regards,.
> Hiroshi Inoue
>
>


--
上原 一樹 (Kazuki Uehara)
Mail : uehara.kazuki@lab.ntt.co.jp
Phone: 03-5860-5115