Undefined Reference

From: "Stefan Wagner" <s_wagner1(at)gmx(dot)net>
To: "General POSTGRESQL maillist" <pgsql-general(at)postgresql(dot)org>
Subject: Undefined Reference
Date: 2017-09-04 09:32:50
Message-ID: trinity-95674491-8c24-4e53-9225-c253a603eac5-1504517570560@3c-app-gmx-bs38
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>I&#39;m apologizing in advance for the double post. Since my first one wasn&#39;t composed very thoughtfull and hasn&#39;t gotten any responses.</div>

<div>&nbsp;</div>

<div>Im new to postgresql and trying to create a new Clause in the source code. Thanks to some advice in this Mailing List I&#39;ve been able to start coding.</div>

<div>&nbsp;</div>

<div>I&#39;m using Windows 7 as a operating System and building the source code with MSYS2 MingGw.</div>

<div>&nbsp;</div>

<div>It seems I&#39;m missing something very simple&nbsp;in the Libary Files looking at the Error Code.</div>

<div>But since im new to this it really feels like a Roadblock can someone give me advice what to do or where to add the missing references?</div>

<div>&nbsp;</div>

<div>I added a File&nbsp;src&#92;backend&#92;executor&#92;nodeDelFil which&nbsp;includes #include &quot;utils/tuplewindow.h&quot; but I get following Error:</div>

<div>&nbsp;</div>

<div><br/>
x86_64-w64-mingw32-gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement</div>

<div>-Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard</div>

<div>-O2 -L../../src/port -L../../src/common -Wl,--allow-multiple-definition -Wl,--disable-auto-import &nbsp;-Wl,--as-needed</div>

<div>&nbsp; -Wl,--stack=4194304 -Wl,--export-all-symbols -Wl,--out-implib=libpostgres.a access/brin/brin.o access/brin/brin_pageops.o...</div>

<div>...&nbsp;../../src/common/libpgcommon_srv.a win32ver.o -lws2_32 -lm -lws2_32 -lsecur32 -o postgres.exe<br/>
make[2]: *** [Makefile:86: postgres] Error 1..</div>

<div>..executor/nodeDelFil.o:nodeDelFil.c:(.text+0x22): undefined reference to &#96;tuplewindow_end&#39;<br/>
executor/nodeDelFil.o:nodeDelFil.c:(.text+0x43): undefined reference to &#96;tuplewindow_begin&#39;<br/>
executor/nodeDelFil.o:nodeDelFil.c:(.text+0x306): undefined reference to &#96;tuplewindow_rewind&#39;<br/>
executor/nodeDelFil.o:nodeDelFil.c:(.text+0x324): undefined reference to &#96;tuplewindow_ateof&#39;<br/>
executor/nodeDelFil.o:nodeDelFil.c:(.text+0x336): undefined reference to &#96;tuplewindow_gettupleslot&#39;<br/>
executor/nodeDelFil.o:nodeDelFil.c:(.text+0x365): undefined reference to &#96;tuplewindow_movenext&#39;<br/>
executor/nodeDelFil.o:nodeDelFil.c:(.text+0x36d): undefined reference to &#96;tuplewindow_ateof&#39;<br/>
executor/nodeDelFil.o:nodeDelFil.c:(.text+0x385): undefined reference to &#96;tuplewindow_puttupleslot&#39;<br/>
executor/nodeDelFil.o:nodeDelFil.c:(.text+0x3a9): undefined reference to &#96;tuplewindow_removecurrent&#39;<br/>
executor/nodeDelFil.o:nodeDelFil.c:(.text+0x3da): undefined reference to &#96;tuplewindow_setinsertrank&#39;<br/>
executor/nodeDelFil.o:nodeDelFil.c:(.text+0x413): undefined reference to &#96;tuplewindow_setinsertrank&#39;<br/>
collect2.exe: error: ld returned 1 exit status</div>

<div>&nbsp;</div>

<div>Every Help would be greatly appreciated.</div></div></body></html>

Attachment Content-Type Size
unknown_filename text/html 3.0 KB

Browse pgsql-general by date

  From Date Subject
Next Message Seamus Abshere 2017-09-04 20:23:00 Surprising locking behavior with CTE, FOR SHARE, and UPDATE
Previous Message Nico Williams 2017-09-04 03:02:38 Re: Create Action for psql when NOTIFY Recieved