<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#333333">
<p><font face="Arial">Thanks for all the help with last one. <span
class="emojione e1-1F44D"><span>đź‘Ť</span></span><br>
</font></p>
<p><font face="Arial">Now I'm doing the other (last) one(s), and I'm
not really sure how to do this.</font></p>
<p><font face="Arial">It's a 2 part install. C lib (dependency) + a
module.<br>
   - <a class="moz-txt-link-freetext" href="https://github.com/maxmind/libmaxminddb/">https://github.com/maxmind/libmaxminddb/</a><br>
   - <a class="moz-txt-link-freetext" href="https://github.com/maxmind/mod_maxminddb/">https://github.com/maxmind/mod_maxminddb/</a><br>
</font></p>
<p><font face="Arial">The C lib builds and installs fine, but the
module throw me some errors.</font></p>
<pre><pre>> :info:build /opt/local/bin/apxs -c -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -lmaxminddb -Wc,<font class="pastecode" color="#008B00">"-pipe -Os -arch x86_64 -std=c99 -fms-extensions"</font> mod_maxminddb.c
> :info:build apxs:Error: Unknown option: r.
> :info:build apxs:Error: Unknown option: h.</pre></pre>
<p>I could build it manually in it's folder with:</p>
<pre><pre> $ sudo LDFLAGS=-L/opt/local/lib ./configure --prefix=/opt/local --with-apxs=/opt/local/bin/apxs
$ sudo make</pre></pre>
<p>My default i gcc (7, I think)</p>
<p>So I tried with (just to compare):</p>
<pre><pre> configure.compiler macports-clang-5.0 <font class="pastecode" color="#0000FF">// didn't work</font>
configure.compiler macports-gcc-5 <font class="pastecode" color="#0000FF">// worked</font></pre></pre>
<p>Also tried to blacklist some compliers, etc.<br>
<br>
</p>
<p>So, how to chose/setup a suitable compiler? and… if going with
gcc, doesn't the C lib have to use the same as well then?</p>
<p>I put the Portfiles here in a gist:
<a class="moz-txt-link-freetext" href="https://gist.github.com/iEFdev/f3cc223c4596be6d8eebfde5622ff533">https://gist.github.com/iEFdev/f3cc223c4596be6d8eebfde5622ff533</a><br>
…incl the stdout of the build<br>
</p>
<p>// The dependency Portfile is complete, and works. The other one
is more like a draft, upto the “build phase”. :)</p>
<p>Perhaps it needs some more advanced form of
configure.fooflag-append's, etc?</p>
<p><br>
Any help/input/ideas are appreciated.</p>
<p>· Eric<br>
</p>
</body>
</html>