<p>daniel has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/12908">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Fix compilation on eclipse-titan 6.5.1<br><br>Newer eclipse-titan makefilegen already sets CPPFLAGS like this:<br><br>CPPFLAGS = -D$(PLATFORM) -I$(TTCN3_DIR)/include$(TTCN3_SUBDIR)<br><br>where TTCN3_SUBDIR expands to '/titan' and TTCN3_DIR to '/usr'<br><br>If we add /titan after include we end up with<br>-I/usr/include/titan/titan/ which will cause the compile to fail due to<br>a missing TTCN3.hh include.<br><br>Check the titan version so we retain backwards compatibility.<br><br>Change-Id: If9fef29ce243be112d3735f0236335197f8f140f<br>Related: OS#3179<br>Sponsored-by: On-Waves ehf.<br>---<br>M regen-makefile.sh<br>1 file changed, 8 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/08/12908/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/regen-makefile.sh b/regen-makefile.sh</span><br><span>index 5a4dd4c..77fcb6c 100755</span><br><span>--- a/regen-makefile.sh</span><br><span>+++ b/regen-makefile.sh</span><br><span>@@ -25,13 +25,20 @@</span><br><span> fi</span><br><span> </span><br><span> ttcn3_makefilegen -p -l -f $*</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+TITAN_VERSION=$(ttcn3_makefilegen -v 2>&1 |grep "Product number" |cut --delimiter="/" -f 2-| sed -e "s/[A-Z ]//g")</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> sed -i -e 's/# TTCN3_DIR = /TTCN3_DIR = \/usr/' Makefile</span><br><span> sed -i -e 's/LDFLAGS = /LDFLAGS = -L \/usr\/lib\/titan /' Makefile</span><br><span> #sed -i -e 's/TTCN3_LIB = ttcn3-parallel/TTCN3_LIB = ttcn3/' Makefile</span><br><span> </span><br><span> # The -DMAKEDEPEND_RUN is a workaround for Debian packaging issue,</span><br><span> # see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=879816 for details</span><br><span style="color: hsl(0, 100%, 40%);">-sed -i -e 's/CPPFLAGS = -D$(PLATFORM) -I$(TTCN3_DIR)\/include/CPPFLAGS = -D$(PLATFORM) -DMAKEDEPEND_RUN -DUSE_SCTP -I$(TTCN3_DIR)\/include -I\/usr\/include\/titan/' Makefile</span><br><span style="color: hsl(120, 100%, 40%);">+if [ $(($TITAN_VERSION >= 65)) = 1 ]; then</span><br><span style="color: hsl(120, 100%, 40%);">+    sed -i -e 's/CPPFLAGS = -D$(PLATFORM)/CPPFLAGS = -D$(PLATFORM) -DMAKEDEPEND_RUN -DUSE_SCTP/' Makefile</span><br><span style="color: hsl(120, 100%, 40%);">+else</span><br><span style="color: hsl(120, 100%, 40%);">+   sed -i -e 's/CPPFLAGS = -D$(PLATFORM) -I$(TTCN3_DIR)\/include/CPPFLAGS = -D$(PLATFORM) -DMAKEDEPEND_RUN -DUSE_SCTP -I$(TTCN3_DIR)\/include -I\/usr\/include\/titan/' Makefile</span><br><span style="color: hsl(120, 100%, 40%);">+fi</span><br><span> </span><br><span> #remove -Wall from CXXFLAGS: we're not interested in generic warnings for autogenerated code cluttering the logs</span><br><span> sed -i -e 's/-Wall//' Makefile</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/12908">change 12908</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/12908"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: If9fef29ce243be112d3735f0236335197f8f140f </div>
<div style="display:none"> Gerrit-Change-Number: 12908 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: daniel <dwillmann@sysmocom.de> </div>