[LLVMbugs] [Bug 15229] New: Should the passed command parameters result into the same error messages for a configuration test?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Feb 10 13:12:09 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=15229

            Bug ID: 15229
           Summary: Should the passed command parameters result into the
                    same error messages for a configuration test?
           Product: clang
           Version: 3.2
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: Markus.Elfring at web.de
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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 at Sonne:~/Projekte/OpalVoip/ptlib/2.10.9> ./configure --enable-exceptions
--enable-appshare CC=clang CXX=clang++


I wonder about the following results here.

elfring at 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 at 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 at 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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130210/b445a0da/attachment.html>


More information about the llvm-bugs mailing list