<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Clang fails with undefined reference to `_ZTIDn' when C++11 support is enabled"
   href="http://llvm.org/bugs/show_bug.cgi?id=18310">18310</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang fails with undefined reference to `_ZTIDn' when C++11 support is enabled
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.3
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>hongli@phusion.nl
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I am trying to compile Phusion Passenger (www.phusionpassenger.org, git master
as found at <a href="https://github.com/phusion/passenger">https://github.com/phusion/passenger</a>) on FreeBSD 10.0 with Clang
3.3. When -std=gnu++11 or -std=c++11 is given, Clang fails with the following
while linking the PassengerHelperAgent executable:

buildout/agents/PassengerHelperAgent.o: In function
`_ZNK5boost13function_base6targetIDnEEPKT_v':
/usr/local/lib/ruby/gems/1.9/gems/passenger-4.0.29/ext/boost/function/function_base.hpp:670:
undefined reference to `_ZTIDn'

Removing the -std=... flag makes the error go away.

This only appears to happen on FreeBSD. Compiling Phusion Passenger with
-std=gnu++11/c++11 on Mac OS X 10.9 with Apple Clang 5.0 (clang-500.2.79)
(based on LLVM 3.3svn) does not result in any linker errors.

Is this a problem in Clang or a problem in the Phusion Passenger code? Here are
the instructions for compiling Phusion Passenger.

1. Download the git master source code from Github.
2. Run ./bin/passenger-install-apache2-module. It will check for required
dependencies and run the build system and the compiler. Install any missing
dependencies it tells you about.
3. Watch Clang fail when linking PassengerHelperAgent.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>