<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 --- - ‘dladdr’ was not declared in this scope"
   href="http://llvm.org/bugs/show_bug.cgi?id=16530">16530</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>‘dladdr’ was not declared in this scope
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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>Support Libraries
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>pashev.igor@gmail.com
          </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>Created <span class=""><a href="attachment.cgi?id=10814" name="attach_10814" title="Proposed patch">attachment 10814</a> <a href="attachment.cgi?id=10814&action=edit" title="Proposed patch">[details]</a></span>
Proposed patch

autoconf provides a special macro AC_USE_SYSTEM_EXTENSIONS, which results in
-D_GNU_SOURCE on glibc-based systems or -D__EXTENSIONS__ on Solaris-based
systems

Synopsis:

if  g++ -I/home/pashev/build/include -I/home/pashev/build/lib/Support
-I/home/pashev/llvm/include -I/home/pashev/llvm/lib/Support  -D_DEBUG -include
llvm/Su
pport/Solaris.h -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer -fvisibility-inlines-hidden -fn
o-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual    -Wall -W
-Wno-unused-parameter -Wwrite-strings -Wno-uninitialized
-Wno-missing-field-initia
lizers -c -MMD -MP -MF
"/home/pashev/build/lib/Support/Release+Asserts/Path.d.tmp" -MT
"/home/pashev/build/lib/Support/Release+Asserts/Path.o" -MT "/home/pa
shev/build/lib/Support/Release+Asserts/Path.d"
/home/pashev/llvm/lib/Support/Path.cpp -o
/home/pashev/build/lib/Support/Release+Asserts/Path.o ; \
        then /usr/bin/mv -f
"/home/pashev/build/lib/Support/Release+Asserts/Path.d.tmp"
"/home/pashev/build/lib/Support/Release+Asserts/Path.d"; else /usr/b
in/rm "/home/pashev/build/lib/Support/Release+Asserts/Path.d.tmp"; exit 1; fi
In file included from /home/pashev/llvm/lib/Support/Path.cpp:986:0:
/home/pashev/llvm/lib/Support/Unix/Path.inc: In function ‘std::string
llvm::sys::fs::getMainExecutable(const char*, void*)’:
/home/pashev/llvm/lib/Support/Unix/Path.inc:278:3: error: ‘Dl_info’ was not
declared in this scope
/home/pashev/llvm/lib/Support/Unix/Path.inc:278:11: error: expected ‘;’ before
‘DLInfo’
/home/pashev/llvm/lib/Support/Unix/Path.inc:279:31: error: ‘DLInfo’ was not
declared in this scope
/home/pashev/llvm/lib/Support/Unix/Path.inc:279:37: error: ‘dladdr’ was not
declared in this scope
rm: /home/pashev/build/lib/Support/Release+Asserts/Path.d.tmp: No such file or
directory
gmake[1]: *** [/home/pashev/build/lib/Support/Release+Asserts/Path.o] Error 1


In the example above DLInfo and dladdr() are not exposed on Solaris unless
__EXTENSIONS__ is defined.</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>