Re: making the backend's json parser work in frontend code - Mailing list pgsql-hackers

From Robert Haas
Subject Re: making the backend's json parser work in frontend code
Date
Msg-id CA+TgmoZdV0yfqjc8NXtua1LzqY=p_481wi4tmhPnsNiaw1yuyA@mail.gmail.com
Whole thread Raw
In response to Re: making the backend's json parser work in frontend code  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: making the backend's json parser work in frontend code  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Wed, Jan 29, 2020 at 10:45 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
> > On Tue, Jan 28, 2020 at 5:35 PM Mark Dilger
> > <mark.dilger@enterprisedb.com> wrote:
> >> I merged these a bit.  See v7-0001 for details.
>
> > I jiggered that a bit more and committed this. I couldn't see the
> > point of having both the FRONTEND and non-FRONTEND code include
> > pg_wchar.h.
>
> First buildfarm report is not positive:
>
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=dory&dt=2020-01-29%2015%3A30%3A26
>
>   json.obj : error LNK2019: unresolved external symbol makeJsonLexContextCstringLen referenced in function json_recv
[c:\pgbuildfarm\pgbuildroot\HEAD\pgsql.build\postgres.vcxproj]
>   jsonb.obj : error LNK2001: unresolved external symbol makeJsonLexContextCstringLen
[c:\pgbuildfarm\pgbuildroot\HEAD\pgsql.build\postgres.vcxproj]
>   jsonfuncs.obj : error LNK2001: unresolved external symbol makeJsonLexContextCstringLen
[c:\pgbuildfarm\pgbuildroot\HEAD\pgsql.build\postgres.vcxproj]
>   json.obj : error LNK2019: unresolved external symbol json_lex referenced in function json_typeof
[c:\pgbuildfarm\pgbuildroot\HEAD\pgsql.build\postgres.vcxproj]
>   json.obj : error LNK2019: unresolved external symbol IsValidJsonNumber referenced in function datum_to_json
[c:\pgbuildfarm\pgbuildroot\HEAD\pgsql.build\postgres.vcxproj]
>   json.obj : error LNK2001: unresolved external symbol nullSemAction
[c:\pgbuildfarm\pgbuildroot\HEAD\pgsql.build\postgres.vcxproj]
>   jsonfuncs.obj : error LNK2019: unresolved external symbol pg_parse_json referenced in function json_strip_nulls
[c:\pgbuildfarm\pgbuildroot\HEAD\pgsql.build\postgres.vcxproj]
>   jsonfuncs.obj : error LNK2019: unresolved external symbol json_count_array_elements referenced in function
get_array_start[c:\pgbuildfarm\pgbuildroot\HEAD\pgsql.build\postgres.vcxproj]
 
>   jsonfuncs.obj : error LNK2019: unresolved external symbol json_errdetail referenced in function json_ereport_error
[c:\pgbuildfarm\pgbuildroot\HEAD\pgsql.build\postgres.vcxproj]
>   .\Release\postgres\postgres.exe : fatal error LNK1120: 7 unresolved externals
[c:\pgbuildfarm\pgbuildroot\HEAD\pgsql.build\postgres.vcxproj]

Hrrm, OK. I think it must need a sprinkling of Windows-specific magic.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: making the backend's json parser work in frontend code
Next
From: Robert Haas
Date:
Subject: Re: making the backend's json parser work in frontend code