FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 10-08-2008, 07:31 PM
Jochen Schmitt
 
Default gcc-4.3.2 related buiid issue

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hallo,

I have try to build the most recent release of highlight-2.6.13 on koji.

Unfortunately, I have got the following error messages:

main.o: In function
`HighlightApp:rintDebugInfo(highlight::LanguageD efinition const&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)':
/builddir/build/BUILD/highlight-2.6.13/src/main.cpp:107: undefined
reference to `Pattern::getPattern() const'
main.o: In function
`HighlightApp::analyzeFile(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
/builddir/build/BUILD/highlight-2.6.13/src/main.cpp:266: undefined
reference to `Pattern::matches(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, unsigned long)'
./libhighlight.a(codegenerator.o): In function
`highlight::CodeGenerator::matchRegex(std::basic_s tring<char,
std::char_traits<char>, std::allocator<char> > const&)':
/builddir/build/BUILD/highlight-2.6.13/src/codegenerator.cpp:381:
undefined reference to `Pattern::createMatcher(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
./libhighlight.a(codegenerator.o): In function
`highlight::CodeGenerator::checkSpecialCmd()':
/builddir/build/BUILD/highlight-2.6.13/src/codegenerator.cpp:1520:
undefined reference to `Pattern::compile(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, unsigned long)'
/builddir/build/BUILD/highlight-2.6.13/src/codegenerator.cpp:1521:
undefined reference to `Pattern::createMatcher(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
./libhighlight.a(codegenerator.o): In function `~auto_ptr':
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/bits/basic_string.h:286:
undefined reference to `Pattern::~Pattern()'
./libhighlight.a(codegenerator.o): In function `~auto_ptr':
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/backward/auto_ptr.h:173:
undefined reference to `Pattern::~Pattern()'
./libhighlight.a(languagedefinition.o): In function
`highlight::LanguageDefinition::extractRegex(std:: basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
/builddir/build/BUILD/highlight-2.6.13/src/languagedefinition.cpp:80:
undefined reference to `Pattern::createMatcher(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
./libhighlight.a(languagedefinition.o): In function `~RegexElement':
/builddir/build/BUILD/highlight-2.6.13/src/languagedefinition.h:239:
undefined reference to `Pattern::~Pattern()'
./libhighlight.a(languagedefinition.o): In function
`highlight::LanguageDefinition::addSymbol(std::bas ic_stringstream<char,
std::char_traits<char>, std::allocator<char> >&, highlight::State,
highlight::State, bool, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, unsigned int)':
/builddir/build/BUILD/highlight-2.6.13/src/languagedefinition.cpp:64:
undefined reference to `Pattern::compile(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, unsigned long)'
./libhighlight.a(languagedefinition.o): In function
`highlight::LanguageDefinition::addKeywords(std::b asic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
highlight::State, highlight::State, int)':
/builddir/build/BUILD/highlight-2.6.13/src/languagedefinition.cpp:147:
undefined reference to `Pattern::compile(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, unsigned long)'
./libhighlight.a(languagedefinition.o): In function
`highlight::LanguageDefinition::load(std::basic_st ring<char,
std::char_traits<char>, std::allocator<char> > const&, bool)':
/builddir/build/BUILD/highlight-2.6.13/src/languagedefinition.cpp:253:
undefined reference to `Pattern::compile(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, unsigned long)'
/builddir/build/BUILD/highlight-2.6.13/src/languagedefinition.cpp:255:
undefined reference to `
make[1]: Leaving directory `/builddir/build/BUILD/highlight-2.6.13/src'
RPM build errors:
Pattern::compile(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, unsigned long)'
./libhighlight.a(languagedefinition.o): In function `LanguageDefinition':
/builddir/build/BUILD/highlight-2.6.13/src/languagedefinition.cpp:41:
undefined reference to `Pattern::compile(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, unsigned long)'
./libhighlight.a(languagedefinition.o):/builddir/build/BUILD/highlight-2.6.13/src/languagedefinition.cpp:41:
more undefined references to `Pattern::compile(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, unsigned long)'
follow
./libhighlight.a(languagedefinition.o): In function `~RegexElement':
/builddir/build/BUILD/highlight-2.6.13/src/languagedefinition.h:239:
undefined reference to `Pattern::~Pattern()'
./libhighlight.a(languagedefinition.o): In function `~LanguageDefinition':
/builddir/build/BUILD/highlight-2.6.13/src/languagedefinition.cpp:48:
undefined reference to `Pattern::~Pattern()'
./libhighlight.a(languagedefinition.o): In function `~RegexElement':
/builddir/build/BUILD/highlight-2.6.13/src/languagedefinition.h:239:
undefined reference to `Pattern::~Pattern()'
./libhighlight.a(languagedefinition.o): In function `~LanguageDefinition':
/builddir/build/BUILD/highlight-2.6.13/src/languagedefinition.cpp:48:
undefined reference to `Pattern::~Pattern()'
collect2: ld returned 1 exit status
make[1]: *** [compile] Error 1

Beause this issue doesn't occurs on F-9, I will ask, if anyone have a
hint to solveing
this issue.

The full build log may be find at:

http://koji.fedoraproject.org/koji/getfile?taskID=868972&name=build.log

Best Regards:

Jochen Schmitt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkjs/GMACgkQT2AHK6txfgxIMQCcDlUz3oA9RRhuWsJ+PwEgd24P
39AAoKyuFfEeeggL9aIcB1vwgJEH76f8
=R71/
-----END PGP SIGNATURE-----

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 10-12-2008, 12:44 PM
Jan Kratochvil
 
Default gcc-4.3.2 related buiid issue

On Wed, 08 Oct 2008 20:31:18 +0200, Jochen Schmitt wrote:
> I have try to build the most recent release of highlight-2.6.13 on koji.
>
> Unfortunately, I have got the following error messages:
>
> main.o: In function `HighlightApp:rintDebugInfo(highlight::LanguageD efinition const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
> /builddir/build/BUILD/highlight-2.6.13/src/main.cpp:107: undefined reference to `Pattern::getPattern() const'
...
> collect2: ld returned 1 exit status
> make[1]: *** [compile] Error 1
...
> http://koji.fedoraproject.org/koji/getfile?taskID=868972&name=build.log

Upstream makefile is racy which fails on `make -j' due to (correct) .spec:
make %{?_smp_mflags} [...]


Regards,
Jan
--- highlight-2.6.13/src/makefile-orig 2008-09-30 03:09:52.000000000 +0200
+++ highlight-2.6.13/src/makefile 2008-10-12 13:28:20.000000000 +0200
@@ -69,7 +69,7 @@ endif
compile: ${OBJECTFILES} libhighlight.a
${BUILD_CMD}

-libhighlight.a:
+libhighlight.a: ${CORE_OBJECTS}
echo "compile lib...."
${AR} ${ARFLAGS} libhighlight.a ${CORE_OBJECTS}

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 

Thread Tools




All times are GMT. The time now is 05:55 AM.

VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org