<p>After the removal of <a href="https://github.com/openstreetmap/openstreetmap-website/commit/4e6d729529c94486a50cf135dfbbdcf841790200#diff-c3f52ef93a4aaf1f148e626e39ec31e4de87ce44154fbb7f5ea6e321c4e195a4L34-L36">db/functions/maptile.c</a> in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/openstreetmap/openstreetmap-website/commit/4e6d729529c94486a50cf135dfbbdcf841790200/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/commit/4e6d729529c94486a50cf135dfbbdcf841790200"><tt>4e6d729</tt></a>, the <code>PG_MODULE_MAGIC</code> macro no longer gets called and causes the compiled shared library to no longer function. Resolved by creating a new <code>.c</code>/<code>.o</code> file whose only function is to call <code>PG_MODULE_MAGIC</code>.</p>
<p>Also:</p>
<ul>
<li>Added <code>libpgosm.so</code> build to <code>Test</code> workflow, here are links the relevant jobs:
<ul>
<li>Before:<br>
<a href="https://github.com/hummeltech/openstreetmap-website/runs/3256812366?check_suite_focus=true">https://github.com/hummeltech/openstreetmap-website/runs/3256812366?check_suite_focus=true</a></li>
<li>After:<br>
<a href="https://github.com/hummeltech/openstreetmap-website/runs/3256813159?check_suite_focus=true">https://github.com/hummeltech/openstreetmap-website/runs/3256813159?check_suite_focus=true</a></li>
</ul>
</li>
</ul>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/3286'>https://github.com/openstreetmap/openstreetmap-website/pull/3286</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Fixing & testing `libpgosm.so` (Before)</li>
<li>Fixing & testing `libpgosm.so` (After)</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3286/files#diff-1db27d93186e46d3b441ece35801b244db8ee144ff1405ca27a163bfe878957f">.github/workflows/tests.yml</a>
(45)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3286/files#diff-ee4cdba0408becd760ffe0997b4036df3c985c58c64e3f2eebbf0893a2fde51d">db/functions/Makefile</a>
(2)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3286/files#diff-9fc0e2cc5a5143983dcb5f494d28e861477b5680d90b902c94c36dd0ed875e07">db/functions/pg_module_magic.c</a>
(6)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3286.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/3286.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3286.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/3286.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3286">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLIXRCZ5NBRAAJCR2ATT3MBLLANCNFSM5BUWFPLQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email">Android</a>.<img src="https://github.com/notifications/beacon/AAK2OLLLML4W5J6QAMGD5WDT3MBLLA5CNFSM5BUWFPL2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4OK2KTOQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/3286",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3286",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>