[oi-dev] xmessage, ts, notion-3, and openttd

Alexander Pyhalov alp at rsu.ru
Mon Oct 13 18:46:24 UTC 2014


Hi.

Josef 'Jeff' Sipek писал 07.10.2014 06:38:
> I have 4 new components to contribute.  A window manager, a command 
> batching
> utility, a recipe for xmessage (as far as I can tell, our current 
> xmessage
> package comes from oi-build from a couple of years ago), and finally 
> OpenTTD
> - because there's no reason OI can't be used for gaming. ;)
> 
> You can get the changes via:
> 
> $ git pull git://repo.or.cz/oi-userland/jeffpc.git hipster
> 
> You can see the diffs at:
> 
> http://repo.or.cz/w/oi-userland/jeffpc.git/shortlog/refs/heads/hipster

I have the following issue while compiling openttd:

/export/home/alp/srcs/local/oi-userland/components/openttd/openttd-1.4.3/src/blitter/../string_func.h:264:58: 
warning: redundant redeclaration of ‘char* strcasestr(const char*, const 
char*)’ in same scope [-Wredundant-decls]
  char *strcasestr(const char *haystack, const char *needle);
                                                           ^
In file included from /usr/gcc/4.8/include/c++/4.8.3/cstring:42:0,
                  from 
/export/home/alp/srcs/local/oi-userland/components/openttd/openttd-1.4.3/src/stdafx.h:84,
                  from 
/export/home/alp/srcs/local/oi-userland/components/openttd/openttd-1.4.3/src/window.cpp:12:
/usr/include/string.h:121:14: warning: previous declaration of ‘char* 
strcasestr(const char*, const char*)’ [-Wredundant-decls]
  extern char *strcasestr(const char *, const char *);
               ^
[SRC] Linking openttd
Undefined                       first referenced
  symbol                             in file
icu_4_0::ParagraphLayout::Line::getVisualRun(int) const gfx_layout.o
icu_4_0::ParagraphLayout::Line::getWidth() const gfx_layout.o
icu_4_0::Collator::createInstance(icu_4_0::Locale const&, UErrorCode&) 
strings.o
icu_4_0::UnicodeString::~UnicodeString() string.o
icu_4_0::LEFontInstance::getSubFont(unsigned short const*, int*, int, 
int, LEErrorCode&) const gfx_layout.o
icu_4_0::ParagraphLayout::ParagraphLayout(unsigned short const*, int, 
icu_4_0::FontRuns const*, icu_4_0::ValueRuns const*, icu_4_0::ValueRuns 
const*, icu_4_0::LocaleRuns const*, unsigned char, char, LEErrorCode&) 
gfx_layout.o
icu_4_0::LEFontInstance::mapCharToGlyph(int, icu_4_0::LECharMapper 
const*) const gfx_layout.o
icu_4_0::ParagraphLayout::nextLine(float) gfx_layout.o
icu_4_0::LEFontInstance::~LEFontInstance() gfx_layout.o
icu_4_0::UnicodeString::UnicodeString(unsigned short const*) string.o
icu_4_0::LEFontInstance::canDisplay(int) const gfx_layout.o
icu_4_0::LEFontInstance::pixelsToUnits(LEPoint&, LEPoint&) const 
gfx_layout.o
icu_4_0::LEFontInstance::getLineHeight() const gfx_layout.o
icu_4_0::LEFontInstance::mapCharToGlyph(int, icu_4_0::LECharMapper 
const*, char) const gfx_layout.o
icu_4_0::LEFontInstance::transformFunits(float, float, LEPoint&) const 
gfx_layout.o
icu_4_0::UMemory::operator delete(void*) gfx_layout.o
icu_4_0::ParagraphLayout::Line::getLeading() const gfx_layout.o
icu_4_0::Locale::~Locale()          string.o
icu_4_0::LEFontInstance::xUnitsToPoints(float) const gfx_layout.o
icu_4_0::LEFontInstance::yUnitsToPoints(float) const gfx_layout.o
icu_4_0::LEFontInstance::yPixelsToUnits(float) const gfx_layout.o
icu_4_0::LEFontInstance::xPixelsToUnits(float) const gfx_layout.o
icu_4_0::BreakIterator::createCharacterInstance(icu_4_0::Locale const&, 
UErrorCode&) string.o
icu_4_0::UMemory::operator new(unsigned int) gfx_layout.o
icu_4_0::FontRuns::FontRuns(int)    gfx_layout.o
icu_4_0::FontRuns::~FontRuns()      gfx_layout.o
typeinfo for icu_4_0::LEFontInstance gfx_layout.o
icu_4_0::LEFontInstance::getDynamicClassID() const gfx_layout.o
icu_4_0::LEFontInstance::mapCharsToGlyphs(unsigned short const*, int, 
int, char, icu_4_0::LECharMapper const*, char, icu_4_0::LEGlyphStorage&) 
const gfx_layout.o
icu_4_0::BreakIterator::createWordInstance(icu_4_0::Locale const&, 
UErrorCode&) string.o
icu_4_0::Locale::Locale(char const*, char const*, char const*, char 
const*) string.o
icu_4_0::FontRuns::add(icu_4_0::LEFontInstance const*, int) gfx_layout.o
icu_4_0::LEFontInstance::unitsToPoints(LEPoint&, LEPoint&) const 
gfx_layout.o
ld: fatal: symbol referencing errors. No output written to openttd
collect2: error: ld returned 1 exit status
make[2]: *** [openttd] Error 1
make[2]: Leaving directory 
`/export/home/alp/srcs/local/oi-userland/components/openttd/build/i86/objs/release'
make[1]: *** [all] Error 1
make[1]: Leaving directory 
`/export/home/alp/srcs/local/oi-userland/components/openttd/build/i86'
gmake: *** 
[/export/home/alp/srcs/local/oi-userland/components/openttd/build/i86/.built] 
Error 2

It seems it needs some LDFLAGS/CFLAGS  (-R/usr/g++/lib -L/usr/g++/lib) 
to link to correct icu (we have both library/icu and library/g++/icu 
installed on the build server).
Perhaps, it finds incorrect one?

Another strange one is notion-3. It installs config files in 
usr/etc/notion. Perhaps, you should specify something like
COMPONENT_BUILD_ENV += ETCDIR=/etc/notion
COMPONENT_INSTALL_ENV += ETCDIR=/etc/notion
?

Merged xmessage update and ts addition.

---
System Administrator of Southern Federal University Computer Center






More information about the oi-dev mailing list