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

[ace-users] Ubuntu 12.10 ACE+TAO v6.1.7 Build errors

504 views
Skip to first unread message

Evan Carew

unread,
Jan 31, 2013, 1:45:04 PM1/31/13
to
So to try and get past this error, I ran the realclean make macro, and tried to make the source tree a second time. No joy. Since this error is an ACE app complaining about not being able to link to its own, just created library binary, I assume this is a build architecture issue. The g++ "-L" option seems to be pointing to the right place, however, the linker isn't recognizing it.

ACE VERSION: 6.1.7

HOST MACHINE and OPERATING SYSTEM:
Ubuntu 12.10 32bit OS on Intel

TARGET MACHINE and OPERATING SYSTEM, if different from HOST: Same
COMPILER NAME AND VERSION (AND PATCHLEVEL): gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1)

THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
specific file, simply state which one]: ace/config-linux.h

THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you
use a link to a platform-specific file, simply state which one]: $(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): N/A

AREA/CLASS/EXAMPLE AFFECTED:
Looks like the build process broke in gperf, in file test.cpp

DOES THE PROBLEM AFFECT:
COMPILATION? No
LINKING? Yes
On Unix systems, did you run make realclean first? Yes
EXECUTION? N/A
OTHER (please specify)? N/a
[Please indicate whether ACE, your application, or both are affected.] Just ace gperf is affected at this time

SYNOPSIS:
building with the command "ssl=1 make" breaks in the gperf section.

DESCRIPTION:
building with the command "ssl=1 make" breaks in the gperf section with the following output:
g++ -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -O3 -ggdb -pthread -Wall -W -Wpointer-arith -pipe -D_GNU_SOURCE -I/home/ecarew/Projects/ACE_wrappers -D__ACE_INLINE__ -I../../.. -c -o .obj/test.o test.cpp
../../../bin/ace_gperf -a -D cpp.gperf > cpp.cpp
../../../bin/ace_gperf: error while loading shared libraries: libACE.so.6.1.7: cannot open shared object file: No such file or directory
make[1]: *** [cpp.cpp] Error 127
make[1]: Leaving directory `/home/ecarew/Projects/ACE_wrappers/apps/gperf/tests'
make: *** [cppinset] Error 2


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

SAMPLE FIX/WORKAROUND:
[If available ] None

Evan Carew

unread,
Jan 31, 2013, 1:53:17 PM1/31/13
to
I reran the make and got a slightly more informative error output:

g++ -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -O3 -ggdb -pthread -Wall -W -Wpointer-arith -pipe -D_GNU_SOURCE -I/home/ecarew/Projects/ACE_wrappers -D__ACE_INLINE__ -I../../.. -Wl,-E -L/home/ecarew/Projects/ACE_wrappers/lib -L. -L../../../lib -Wl,-R/usr/lib -Wl,--enable-new-dtags -o cppout .obj/test.o .obj/cpp.o -lACE -ldl -lrt
.obj/test.o: In function `main':
/home/ecarew/Projects/ACE_wrappers/apps/gperf/tests/test.cpp:28: undefined reference to `in_word_set(char const*, unsigned int)'
/home/ecarew/Projects/ACE_wrappers/apps/gperf/tests/test.cpp:28: undefined reference to `in_word_set(char const*, unsigned int)'
collect2: error: ld returned 1 exit status
make[1]: *** [cppout] Error 1

Johnny Willemsen

unread,
Feb 2, 2013, 10:53:09 AM2/2/13
to Evan Carew, ace-...@list.isis.vanderbilt.edu
Hi,

This is caused by some partial files that where generated incomplete
because of your previous problems. Please go to the apps/gperf/tests
directory and give a "make realclean" and than "make" again.

Regards,

Johnny

On 01/31/2013 07:53 PM, Evan Carew wrote:
> I reran the make and got a slightly more informative error output:
>
> g++ -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -O3 -ggdb -pthread -Wall -W -Wpointer-arith -pipe -D_GNU_SOURCE -I/home/ecarew/Projects/ACE_wrappers -D__ACE_INLINE__ -I../../.. -Wl,-E -L/home/ecarew/Projects/ACE_wrappers/lib -L. -L../../../lib -Wl,-R/usr/lib -Wl,--enable-new-dtags -o cppout .obj/test.o .obj/cpp.o -lACE -ldl -lrt
> ..obj/test.o: In function `main':

Johnny Willemsen

unread,
Feb 2, 2013, 12:57:42 PM2/2/13
to Evan Carew, ace-...@list.isis.vanderbilt.edu
Hi,

In the protocols/ace/INet/ you also can find HTTP_Simple_exec which we
also compile with ssl support.

Johnny
> .../../../bin/ace_gperf -a -D cpp.gperf > cpp.cpp
> .../../../bin/ace_gperf: error while loading shared libraries: libACE.so.6.1..7: cannot open shared object file: No such file or directory

maksud.n...@gmail.com

unread,
Dec 16, 2013, 2:22:57 AM12/16/13
to
Tnx very much!
Now it's work for me! :-)
0 new messages