<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Thanks Alex, that was the problem. I
      switched the branch but forgot to configure again.<br>
      <br>
      Regards,<br>
      Cesar<br>
      <br>
      <br>
      On 05/10/2013 11:37 AM, Alex Afanasyev wrote:<br>
    </div>
    <blockquote cite="mid:77BE09DA-4029-42E8-9B26-D33ECF60E99D@ucla.edu"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      Hi Cesar,
      <div><br>
      </div>
      <div>Did you reconfigure NS-3/ndnSIM after the merging?  If not,
        then it could be the problem.</div>
      <div><br>
      </div>
      <div>Here is my output on Linux machine with compilation of the
        same .cc file:</div>
      <div><br>
      </div>
      <div>
        <div><span style="font-size: 12px;">[1019/1763] cxx:
            src/ndnSIM/tools/rocketfuel-maps-cch-to-annotaded.cc ->
            build/src/ndnSIM/tools/rocketfuel-maps-cch-to-annotaded.cc.1.o</span></div>
        <div><span style="font-size: 12px;">11:32:15 runner
            ['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror',
            '-Wno-error=deprecated-declarations', '-fstrict-aliasing',
            '-Wstrict-aliasing', '-pthread', '-fno-strict-aliasing',
            '-fwrapv', '-fstack-protector', '-fno-strict-aliasing',
            '-I.', '-I..', '-I/usr/include', '-I/usr/include/python2.7',
            '-I/usr/include/x86_64-linux-gnu/python2.7',
            '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE',
            '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1',
            '-DHAVE_PACKET_H=1', '-DHAVE_SSL=1', '-DHAVE_SQLITE3=1',
            '-DHAVE_IF_TUN_H=1', '-DNDEBUG', '-D_FORTIFY_SOURCE=2',
            '../src/ndnSIM/tools/rocketfuel-maps-cch-to-annotaded.cc',
            '-c', '-o',
            'src/ndnSIM/tools/rocketfuel-maps-cch-to-annotaded.cc.1.o']</span></div>
        <div><span style="font-size: 12px;">[1698/1763] cxxprogram:
            build/src/ndnSIM/tools/rocketfuel-maps-cch-to-annotaded.cc.1.o
            ->
            build/src/ndnSIM/tools/ns3-dev-rocketfuel-maps-cch-to-annotaded-debug</span></div>
        <div><span style="font-size: 12px;">11:32:23 runner
            ['/usr/bin/g++', '-pthread', '-Wl,-Bsymbolic-functions',
            '-Wl,-z,relro',
            'src/ndnSIM/tools/rocketfuel-maps-cch-to-annotaded.cc.1.o',
            '-o',
            '/home/cawka/ndnSIM/ns-3/build/src/ndnSIM/tools/ns3-dev-rocketfuel-maps-cch-to-annotaded-debug',
            '-Wl,-Bstatic', '-Wl,-Bdynamic', '-Wl,--no-as-needed',
            '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.',
            '-L.', '-L.', '-L.', '-L.', '-L/usr/lib', '-L/usr/lib',
            '-lns3-dev-ndnSIM-debug', '-lns3-dev-visualizer-debug',
            '-lns3-dev-point-to-point-debug',
            '-lns3-dev-internet-debug', '-lns3-dev-mpi-debug',
            '-lns3-dev-bridge-debug', '-lns3-dev-wifi-debug',
            '-lns3-dev-propagation-debug', '-lns3-dev-mobility-debug',
            '-lns3-dev-topology-read-debug', '-lns3-dev-network-debug',
            '-lns3-dev-core-debug', '-lrt', '-lboost_graph-mt',
            '-lboost_system-mt', '-lboost_signals-mt',
            '-lboost_filesystem-mt', <font color="#e32400">'-lssl',
              '-lcrypto'</font>, '-lpython2.7']</span></div>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>---</div>
      <div>Alex</div>
      <div><br>
      </div>
      <div>
        <div>On May 10, 2013, at 1:34 AM, Cesar Ghali <<a
            moz-do-not-send="true" href="mailto:cghali@uci.edu">cghali@uci.edu</a>>
          wrote:</div>
        <br class="Apple-interchange-newline">
        <blockquote type="cite">
          <meta content="text/html; charset=ISO-8859-1"
            http-equiv="Content-Type">
          <div bgcolor="#FFFFFF" text="#000000">
            <div class="moz-cite-prefix">Hi Alex,<br>
              <br>
              I forked
              <meta http-equiv="content-type" content="text/html;
                charset=ISO-8859-1">
              the <a moz-do-not-send="true"
                href="git://github.com/NDN-Routing/ndnSIM.git">git://github.com/NDN-Routing/ndnSIM.git</a>
              repo and I'm using the feature/with-openssl branch. When I
              build, I am still getting (undefined reference to `SHA1')
              which means that the crypto lib is not being linked. I
              also can't see it in the compile command:<br>
              <br>
              Build failed<br>
               -> task in 'rocketfuel-maps-cch-to-annotaded' failed
              (exit status 1): <br>
                  {task 163377036: cxxprogram
              rocketfuel-maps-cch-to-annotaded.cc.1.o ->
              ns3-dev-rocketfuel-maps-cch-to-annotaded-optimized}<br>
              ['/usr/bin/g++', '-pthread', '-Wl,-Bsymbolic-functions',
              '-Wl,-z,relro',
              'src/ndnSIM/tools/rocketfuel-maps-cch-to-annotaded.cc.1.o',
              '-o',
              '/home/cesar/Documents/ndnSIM/ns-3/build/src/ndnSIM/tools/ns3-dev-rocketfuel-maps-cch-to-annotaded-optimized',

              '-Wl,-Bstatic', '-Wl,-Bdynamic', '-Wl,--no-as-needed',
              '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.',
              '-L.', '-L.', '-L.', '-L.', '-L/usr/lib', '-L/usr/lib',
              '-lns3-dev-ndnSIM-optimized',
              '-lns3-dev-visualizer-optimized',
              '-lns3-dev-point-to-point-optimized',
              '-lns3-dev-internet-optimized', '-lns3-dev-mpi-optimized',
              '-lns3-dev-bridge-optimized', '-lns3-dev-wifi-optimized',
              '-lns3-dev-propagation-optimized',
              '-lns3-dev-mobility-optimized',
              '-lns3-dev-topology-read-optimized',
              '-lns3-dev-network-optimized', '-lns3-dev-core-optimized',
              '-lrt', '-lboost_graph-mt', '-lboost_system-mt',
              '-lboost_signals-mt', '-lboost_filesystem-mt',
              '-lpython2.7']<br>
              <br>
              I checked the wscript file in the ndnSIM root folder (in
              feature/with-openssl branch) and it includes adding a link
              to crypto lib, but I don't know why it is not showing in
              the g++ command.<br>
              <br>
              Thanks for the help,<br>
              Cesar<br>
              <br>
              <br>
              On 05/09/2013 10:20 AM, Cesar Ghali wrote:<br>
            </div>
            <blockquote cite="mid:518BDAC0.30601@uci.edu" type="cite">Thanks

              Alex, <br>
              <br>
              I will try it and will let you know. <br>
              <br>
              Cesar <br>
              <br>
              <br>
              On 05/08/2013 07:19 PM, Alex Afanasyev wrote: <br>
              <blockquote type="cite">Hi Cesar, <br>
                <br>
                In waf, adding external dependencies is a little bit
                simpler, though not as obvious. <br>
                I pushed a small change to ndnSIM repo to the
                feature/with-openssl branch, which added a dependency
                (necessary compiler and linker flags) for ndnSIM. <br>
                <br>
                Can you try this branch? <br>
                <br>
                --- <br>
                Alex <br>
                <br>
                <br>
                On May 8, 2013, at 7:03 PM, <a moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:cghali@uci.edu">cghali@uci.edu</a> wrote:
                <br>
                <br>
                <blockquote type="cite">Hi all, <br>
                  <br>
                  I am trying to use openssl with ndnSIM. I spend the
                  last several hours <br>
                  trying to link the crypto library with waf and I
                  finally managed to do it. <br>
                  Apparently, adding the libray to LINKFLAGS_EXTRA did
                  not help, although <br>
                  -lcrypto is added to the g++ build command (which can
                  be verified using <br>
                  the verbose mode when running waf). The way how I
                  fixed it is by adding <br>
                  this line at the beginning of the build function in
                  wscript <br>
                  <br>
                  bld.env['LIB_PYEMBED'] = bld.env['LIB_PYEMBED'] +
                  ["crypto"] <br>
                  <br>
                  For some reason the crypto library should be linked at
                  the end, that's why <br>
                  I appended it to LIB_PYEMBED which is being evaluated
                  at the end. Is there <br>
                  a clean way to do this? <br>
                  <br>
                  Thanks for the help, <br>
                  Cesar <br>
                </blockquote>
              </blockquote>
            </blockquote>
          </div>
        </blockquote>
      </div>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
ndnSIM mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a>
<a class="moz-txt-link-freetext" href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>