<p></p>
<p dir="auto">Hi Daniel<br>
Current master build log</p>
<pre><code>LD (gcc) [kamailio]             kamailio                                                                                   
core/ut.o: In function `ksr_clock_gettime':                                                                                
/root/rpmbuild/BUILD/kamailio-5.6.0-dev2/src/core/ut.c:175: undefined reference to `clock_gettime'                         
collect2: ld returned 1 exit status                                                                                        
make[1]: *** [kamailio] Error 1                                                                                            
make[1]: Leaving directory `/root/rpmbuild/BUILD/kamailio-5.6.0-dev2/src'                                                  
make: *** [default] Error 2                                                                                                
error: Bad exit status from /var/tmp/rpm-tmp.1wyutm (%build)                                                               
    Bad exit status from /var/tmp/rpm-tmp.1wyutm (%build)
</code></pre>
<p dir="auto">When executed <code>make cfg</code> i see error message</p>
<pre><code>/bin/sh: line 0: [: -le: unary operator expected
</code></pre>
<p dir="auto">Full log message</p>
<pre><code>sh-4.1# make cfg
make -C src/ cfg 
target architecture <x86_64>, host architecture <x86_64>
/bin/sh: line 0: [: -le: unary operator expected
make[1]: Entering directory `/root/rpmbuild/BUILD/kamailio-5.6.0-dev2/src'
making config...
rm -f modules.lst
make --no-print-directory modules.lst
saving modules list...
make[1]: Leaving directory `/root/rpmbuild/BUILD/kamailio-5.6.0-dev2/src'
</code></pre>
<p dir="auto">I made troubleshooting and found does not work the<code> aws</code> command inside Makefile.<br>
I have updated Makefile to get working variable initialization.</p>
<div class="highlight highlight-source-diff"><pre><span class="pl-c1">diff --git a/src/Makefile.defs b/src/Makefile.defs</span>
index 8fab3fd..57bccfe 100644
<span class="pl-md">--- a/src/Makefile.defs</span>
<span class="pl-mi1">+++ b/src/Makefile.defs</span>
<span class="pl-mdr">@@ -1890,7 +1890,7 @@</span> ifeq ($(OS), linux)
        endif
        ifeq ($(CC_NAME), gcc)
                # link librt for glibc <= 2.17
<span class="pl-md"><span class="pl-md">-</span>               GLIBCVER:=$(shell ldd --version | head -1 | awk '{ sub(/\./, "", $NF); print $NF }' )</span>
<span class="pl-mi1"><span class="pl-mi1">+</span>               GLIBCVER=$(shell ldd --version | head -1 | sed -e 's/^.* //' -e 's/\.//' )</span>
                ifeq ($(shell [ $(GLIBCVER) -le 217 ] && echo librt), librt)
                        LIBS+=-lrt
                endif</pre></div>

<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/kamailio/kamailio/issues/2921#issuecomment-988904855">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJ4ZYTIVS6R3ZCMBY3UP5ZIFANCNFSM5HPXEDTQ">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&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABO7UZPG2IEWFCCDWZBP6XLUP5ZIFA5CNFSM5HPXEDT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHLYX3FY.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/kamailio/kamailio/issues/2921#issuecomment-988904855",
"url": "https://github.com/kamailio/kamailio/issues/2921#issuecomment-988904855",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>