<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 --- - Should the passed command parameters result into the same error messages for a configuration test?"
   href="http://llvm.org/bugs/show_bug.cgi?id=15229">15229</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Should the passed command parameters result into the same error messages for a configuration test?
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.2
          </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>C++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>Markus.Elfring@web.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I try to generate the Luyten release of a library combination with the software
tool "LLVM-clang++ 3.2-198.1" on my openSUSE Tumbleweed system.

The compilation and installation has worked for a component after the following
command.

elfring@Sonne:~/Projekte/OpalVoip/ptlib/2.10.9> ./configure --enable-exceptions
--enable-appshare CC=clang CXX=clang++


I wonder about the following results here.

elfring@Sonne:~/Projekte/OpalVoip/OPAL/3.10.9> ./configure --disable-libavcodec
CC=clang CXX=clang++
...
checking PTLIB has expat... yes
checking PTLIB has video... no
...

Excerpt from ~/Projekte/OpalVoip/OPAL/3.10.9/config.log:
...
/tmp/conftest-ukycqt.o: In function `__cxx_global_var_init3':
conftest.cpp:(.text.startup+0x85): undefined reference to
`PPlugin_PVideoInputDevice_Application_link()'
/usr/local/lib64/libpt_s.a(vsdl.o): In function `global constructors keyed to
a':
ptclib/vsdl.cxx:(.text.startup+0x4e): undefined reference to
`PPlugin_PVideoInputDevice_Application_link()'
/usr/local/lib64/libpt_s.a(vfakeio.o): In function `global constructors keyed
to a':
ptlib/common/vfakeio.cxx:(.text.startup+0x50): undefined reference to
`PPlugin_PVideoInputDevice_Application_link()'
/usr/local/lib64/libpt_s.a(videoio.o): In function `global constructors keyed
to a':
ptlib/common/videoio.cxx:(.text.startup+0x41): undefined reference to
`PPlugin_PVideoInputDevice_Application_link()'
/usr/local/lib64/libpt_s.a(vconvert.o): In function `global constructors keyed
to a':
ptlib/common/vconvert.cxx:(.text.startup+0x48): undefined reference to
`PPlugin_PVideoInputDevice_Application_link()'
/usr/local/lib64/libpt_s.a(pvidchan.o):ptlib/common/pvidchan.cxx:(.text.startup+0x3d):
more undefined references to `PPlugin_PVideoInputDevice_Application_link()'
follow
clang: error: linker command failed with exit code 1
...


elfring@Sonne:~/Projekte/OpalVoip/OPAL/Probe> cat Video1.cpp
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define STDC_HEADERS 1
#define OPAL_MAJOR 3
#define OPAL_MINOR 10
#define OPAL_BUILD 9
#define OPAL_VERSION "3.10.9"
#define OPAL_PLUGIN_DIR "/usr/local/lib64/opal-3.10.9"
#define OPAL_PTLIB_SSL 1
#define OPAL_PTLIB_ASN 1
#define OPAL_PTLIB_EXPAT 1

#include <ptbuildopts.h>
#include <ptlib.h>
#include <ptlib/video.h>
int main(void)
{
 PVideoChannel vc;
 return 0;
}
elfring@Sonne:~/Projekte/OpalVoip/OPAL/Probe> LANG=C clang++ -o Video1 -Wall
-Wextra -Wstrict-aliasing -Wfloat-equal -Wno-comment -Wno-unused -Winit-self
-Wno-missing-field-initializers -Wreorder -felide-constructors -fexceptions
-fPIC -DP_64BIT -DPTRACING=1 -D_REENTRANT -D_GNU_SOURCE=1 -I/usr/local/include
-I/usr/include/SDL -L/usr/local/lib64 -lpt_s -lrt -lsasl2 -lldap -llber
-lldap_r -lssl -lcrypto -lexpat -llua -lSDL -lpthread -lodbc -lresolv -ldl
Video1.cpp
/tmp/Video1-QSM66S.o: In function `main':
Video1.cpp:(.text+0x1a): undefined reference to
`PVideoChannel::PVideoChannel()'
Video1.cpp:(.text+0x37): undefined reference to
`PVideoChannel::~PVideoChannel()'
/tmp/Video1-QSM66S.o: In function `__cxx_global_var_init1':
Video1.cpp:(.text.startup+0x45): undefined reference to
`PFactoryLoader::PluginLoaderStartup_link()'
/tmp/Video1-QSM66S.o: In function `__cxx_global_var_init2':
Video1.cpp:(.text.startup+0x65): undefined reference to
`PPlugin_PVideoInputDevice_FakeVideo_link()'
/tmp/Video1-QSM66S.o: In function `__cxx_global_var_init3':
Video1.cpp:(.text.startup+0x85): undefined reference to
`PPlugin_PVideoInputDevice_Application_link()'
/tmp/Video1-QSM66S.o: In function `__cxx_global_var_init4':
Video1.cpp:(.text.startup+0xa5): undefined reference to
`PPlugin_PVideoInputDevice_FFMPEG_link()'
/tmp/Video1-QSM66S.o: In function `__cxx_global_var_init5':
Video1.cpp:(.text.startup+0xc5): undefined reference to
`PPlugin_PVideoInputDevice_YUVFile_link()'
/tmp/Video1-QSM66S.o: In function `__cxx_global_var_init6':
Video1.cpp:(.text.startup+0xe5): undefined reference to
`PPlugin_PVideoOutputDevice_SDL_link()'
clang: error: linker command failed with exit code 1


I find it also strange that the reduced command parameter set (deletion of
duplicated options and preprocessor symbols) shows differences in the error
messages.

I would appreciate your advices.</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>