Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #16 (permalink)  
Old 07-15-2008
kraps33 kraps33 is offline
Registered User
 
Name: Sebastien Serani
Organization: Université Bordeaux 1
Project: middleware on embedded system
 
Join Date: Jun 2008
Posts: 20
Linkage problem

Hi,

I have a big problem with IceE since last week.
IceE run in native compil but not in cross compil...

The problem seems provide of upCast function...

Quote:
LocalException.o(.sbss+0x0):IceE-1.2.0/src/IceE/LocalException.cpp:676: multiple definition of `in'
DefaultsAndOverrides.o(.sbss+0x0):IceE-1.2.0/src/IceE/DefaultsAndOverrides.cpp:18: first defined here
Network.o(.sbss+0x0):/inst_gcc-3.4.6///include/c++/3.4.6/bits/stl_vector.h:256: multiple definition of `in'
DefaultsAndOverrides.o(.sbss+0x0): first defined here
Acceptor.o(.sbss+0x0):../../src/TcpTransport/Acceptor.cpp:22: multiple definition of `in'
DefaultsAndOverrides.o(.sbss+0x0): first defined here
Connector.o(.sbss+0x0):../../src/TcpTransport/Connector.cpp:22: multiple definition of `in'
DefaultsAndOverrides.o(.sbss+0x0): first defined here
TcpEndpoint.o(.sbss+0x0):../../include/IceE/BasicStream.h:604: multiple definition of `in'
DefaultsAndOverrides.o(.sbss+0x0): first defined here
Transceiver.o(.sbss+0x0):../../src/TcpTransport/Transceiver.cpp:23: multiple definition of `in'
DefaultsAndOverrides.o(.sbss+0x0): first defined here
make[2]: *** [../../lib/libIceE.so.1.2.0] Error 1
Thanks for your help.
Reply With Quote
  #17 (permalink)  
Old 07-15-2008
matthew's Avatar
matthew matthew is offline
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,088
Please don't post a duplicate thread on an existing issue. If you want our attention then please add information to the existing thread.
Reply With Quote
  #18 (permalink)  
Old 07-15-2008
bernard's Avatar
bernard bernard is offline
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 834
Hi Sebastian,

I don't see any variable named 'in' in this Ice-E source code.

If you modified the Ice-E code to support your own system, it's going to be difficult to help you! Did you change headers/includes/variable names as part of your port?

Could you also specify the exact platform you're porting to, including compiler version?

Cheers,
Bernard
__________________
Bernard Normier
ZeroC, Inc.
Reply With Quote
  #19 (permalink)  
Old 07-16-2008
kraps33 kraps33 is offline
Registered User
 
Name: Sebastien Serani
Organization: Université Bordeaux 1
Project: middleware on embedded system
 
Join Date: Jun 2008
Posts: 20
Hi,

I have just add 3 headers to define errno.h variables or functions like gettimeofday, pthread_mutexattr_settype...
And a library to implement this.

I just add in 5 files macros likes #ifdef _MYOS #include <...> #endif (Config.h, Time.cpp, Network.h, Instance.cpp, Network.cpp)

My headers are protected (#ifndef __MYTYPES_H #define ...) and they countain only functions declarations, structures or #define VARIABLES.

I have found this in Acceptor.s and DefaultsAndOverrides.s (for "in"):

Quote:
.file "Acceptor.cpp"
.globl in
.section ".sbss","aw",@nobits
.align 2
in:
.zero 4
.size in, 4
.type in, @object
.section ".text"
.align 2
.globl _ZN11IceInternal6upCastEPNS_8AcceptorE
.type _ZN11IceInternal6upCastEPNS_8AcceptorE, @function
_ZN11IceInternal6upCastEPNS_8AcceptorE:


.file "DefaultsAndOverrides.cpp"
.globl in
.section ".sbss","aw",@nobits
.align 2
in:
.zero 4
.size in, 4
.type in, @object
.section ".text"
.align 2
.globl _ZN11IceInternal6upCastEPNS_20DefaultsAndOverrides E
.type _ZN11IceInternal6upCastEPNS_20DefaultsAndOverrides E, @function
_ZN11IceInternal6upCastEPNS_20DefaultsAndOverrides E:
For system. I work under POSIX operating system (it is the target system, with newlib 1.8) on PowerPC processor.

Cheers,
Sebastien.
Reply With Quote
  #20 (permalink)  
Old 07-16-2008
bernard's Avatar
bernard bernard is offline
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 834
It looks like one of your headers define this 'in' global variable; or perhaps it's a macro that somehow defines 'in' in the upCast function definition.

You could pre-process one of these files (gcc -E) and try to locate this 'in' definition in the output.

Cheers,
Bernard
__________________
Bernard Normier
ZeroC, Inc.
Reply With Quote
  #21 (permalink)  
Old 07-16-2008
kraps33 kraps33 is offline
Registered User
 
Name: Sebastien Serani
Organization: Université Bordeaux 1
Project: middleware on embedded system
 
Join Date: Jun 2008
Posts: 20
struct in_addr in;

In a header file of target system...

It run better with an "extern" .

Thanks for your help.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ice 3.2 compilation with VC7.1 Vivien Delage Help Center 3 03-20-2007 12:14 PM
Ice-EJ: problem with the compilation of the sources albertods Help Center 5 10-16-2006 12:58 PM
ICE 3.0.0. VC7.1 compilation error AnandRathi Bug Reports 3 11-28-2005 01:32 AM
Strange compilation error with VC6 / Ice 1.4.0 annekat Help Center 3 07-05-2004 02:15 PM
Ice-1.0.1/C++/compilation Ivan Bug Reports 2 02-25-2003 04:12 AM


All times are GMT -4. The time now is 12:51 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.