Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[ace-users] undefined reference to in_word_set on gperf/tests build

926 views
Skip to first unread message

Steve Prior

unread,
Feb 23, 2005, 11:39:21 PM2/23/05
to
ACE VERSION: 5.4.4

HOST MACHINE and OPERATING SYSTEM:
LFS machine with Linux kernel 2.4.10
gcc version 2.95.3 20010315 (release)


TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
COMPILER NAME AND VERSION (AND PATCHLEVEL):

CONTENTS OF $ACE_ROOT/ace/config.h [if you use a link to a platform-
specific file, simply state which one]:
#include "ace/config-linux.h"

CONTENTS OF $ACE_ROOT/include/makeinclude/platform_macros.GNU (unless
this isn't used in this case, e.g., with Microsoft Visual C++):
include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU

CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features
(used by MPC when you generate your own makefiles):
// $Id$
// This is an automatically generated file.

ssl=0
qos=1
cidl=0
rwho=0
sctp=0


AREA/CLASS/EXAMPLE AFFECTED:

GNUmakefile: /usr/local/ACE_wrappers/apps/gperf/tests/GNUmakefile.cppinset
MAKEFLAGS=w

g++ -W -Wall -Wpointer-arith -O3 -g -pipe -D_REENTRANT -DACE_HAS_AIO_CALLS
-D_GNU_SOURCE -I/usr/local/ACE_wrappers -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__
-I../../.. -Wl,-E -L/usr/local/ACE_wrappers/ace -L./ -L../../../lib -o cppout
.obj/test.o .obj/cpp.o -lACE -ldl -lpthread -lrt
.obj/test.o: In function `main':
/usr/local/ACE_wrappers/apps/gperf/tests/test.cpp:28: undefined reference to
`in_word_set(char const *, unsigned int)'
collect2: ld returned 1 exit status
make[4]: *** [cppout] Error 1
make[4]: Leaving directory `/usr/local/ACE_wrappers/apps/gperf/tests'


DOES THE PROBLEM AFFECT:
LINKING.
On Unix systems, did you run make realclean first? No because this
was from a fresh untar of the distribution.

[Please indicate whether ACE, your application, or both are affected.]

SYNOPSIS:
[Brief description of the problem]
see above

DESCRIPTION:
[Detailed description of problem. Don't just say "<blah>
doesn't work, here's a fix," explain what your program does
to get to the <blah> state. ]
build of gperf tests fails

REPEAT BY:
[What you did to get the error; include test program or session
transcript if at all possible. ]
untar and build ace/tao

SAMPLE FIX/WORKAROUND:
[If available ]

ray

unread,
Feb 23, 2005, 11:58:30 PM2/23/05
to
add $ACE_ROOT/llb to your LD_LIBRARY_PATH

Steve Prior 写道:

Steve Prior

unread,
Feb 24, 2005, 12:50:07 AM2/24/05
to
ray wrote:
> add $ACE_ROOT/llb to your LD_LIBRARY_PATH
>

Thanks for responding, but it already was.

Here are my build notes:

export TAO_ROOT=/usr/local/ACE_wrappers/TAO
export ACE_ROOT=/usr/local/ACE_wrappers

Create a configuration file, $ACE_ROOT/ace/config.h, that includes the
appropriate platform/compiler-specific header configuration from the ACE source
directory:

#include "ace/config-linux.h"


Create a build configuration file,
$ACE_ROOT/include/makeinclude/platform_macros.GNU, that contains the
platform/compiler-specific Makefile configurations:

include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU

export LD_LIBRARY_PATH=$ACE_ROOT/ace:$ACE_ROOT/lib

cd $ACE_ROOT
make

cd TAO
make


Steve

ray

unread,
Feb 24, 2005, 1:38:01 AM2/24/05
to
perhaps you should go to gperf/src and run "make clean"
Steve Prior 写道:
Message has been deleted
0 new messages