Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Compiler error
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nick Bolton  
View profile  
 More options Apr 5 2012, 6:47 am
From: Nick Bolton <nick.bolton...@gmail.com>
Date: Thu, 5 Apr 2012 11:47:58 +0100
Local: Thurs, Apr 5 2012 6:47 am
Subject: Compiler error
Hi guys,

I'm trying to get this release out the door, but I'm stuck on this
compiler error. I figured someone else might see something obvious I'm
doing wrong!

http://buildbot.synergy-foss.org:8000/builders/1.4-linux32/builds/522...

kAppVersion is indeed defined in the common library, Version.o which
appears to have built correctly. I am linking this to synergyd, so the
base library should be using it.

Any ideas?

Nick


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Schoeneman  
View profile  
 More options Apr 5 2012, 7:53 pm
From: Chris Schoeneman <cschoene...@gmail.com>
Date: Thu, 5 Apr 2012 16:53:05 -0700
Local: Thurs, Apr 5 2012 7:53 pm
Subject: Re: [synergy-dev] Compiler error
Does CMakeLists.txt need to list target_link_libraries in dependency order?  If so then 'common' must come before 'base'.

Unix linkers are usually one pass, so they only search for symbols they've already seen and won't try a second pass.

cheers,
-chris

On Apr 5, 2012, at 3:47 AM, Nick Bolton wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nick Bolton  
View profile  
 More options Apr 5 2012, 8:05 pm
From: Nick Bolton <nick.bolton...@gmail.com>
Date: Fri, 6 Apr 2012 01:05:33 +0100
Local: Thurs, Apr 5 2012 8:05 pm
Subject: Re: [synergy-dev] Compiler error
On 6 April 2012 00:53, Chris Schoeneman <cschoene...@gmail.com> wrote:

> Does CMakeLists.txt need to list target_link_libraries in dependency order?  If so then 'common' must come before 'base'.

That's what I thought -- I tried reordering like this, but no effect.
Then I tried cleaning and deleting all temporary files, but still same
error. Then I checked the target_link_libraries for synergyc and
synergys but interestingly common does not come before base (it goes:
arch base client common ...), yet it still builds. Quite puzzling.

Nick


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nick Bolton  
View profile  
 More options Apr 6 2012, 5:56 am
From: Nick Bolton <nick.bolton...@gmail.com>
Date: Fri, 6 Apr 2012 10:56:47 +0100
Local: Fri, Apr 6 2012 5:56 am
Subject: Re: Compiler error
On 5 April 2012 11:47, Nick Bolton <nick.bolton...@gmail.com> wrote:

> I'm trying to get this release out the door, but I'm stuck on this
> compiler error. I figured someone else might see something obvious I'm
> doing wrong!

> http://buildbot.synergy-foss.org:8000/builders/1.4-linux32/builds/522...

Posted the question here with a bit more explanation:

http://stackoverflow.com/questions/10041897/why-undefined-reference-w...

I can't get the release out until this is fixed, so any useful input
is really appreciated.

Cheers,
Nick


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Re : [synergy-dev] Re: Compiler error" by Francois-Xavier Kowalski
Francois-Xavier Kowalski  
View profile  
 More options Apr 6 2012, 8:07 am
From: "Francois-Xavier Kowalski" <fix.kowal...@gmail.com>
Date: Fri, 06 Apr 2012 14:07:00 +0200
Subject: Re : [synergy-dev] Re: Compiler error

Hello Nick,

Last time I faced this type of error, it was due to a signature mismatch between 2 object codes: from one end the variable/method was an extern C, while on the other end it was C++. As c++ demangler is used on the symbol before printing the error message, nothing obvious pops in the linker error message...

-- Envoyé depuis mon Palm Pre


Le 6 avr. 2012 11:57, Nick Bolton <nick.bolton.uk@gmail.com> a écrit :

On 5 April 2012 11:47, Nick Bolton <nick.bolton.uk@gmail.com> wrote:
> I'm trying to get this release out the door, but I'm stuck on this
> compiler error. I figured someone else might see something obvious I'm
> doing wrong!
>
> http://buildbot.synergy-foss.org:8000/builders/1.4-linux32/builds/522/steps/compile/logs/stdio

Posted the question here with a bit more explanation:

http://stackoverflow.com/questions/10041897/why-undefined-reference-when-the-variable-is-defined-and-the-library-is-linked

I can't get the release out until this is fixed, so any useful input
is really appreciated.

Cheers,
Nick

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Compiler error" by Nick Bolton
Nick Bolton  
View profile  
 More options Apr 6 2012, 8:26 pm
From: Nick Bolton <nick.bolton...@gmail.com>
Date: Sat, 7 Apr 2012 01:26:42 +0100
Local: Fri, Apr 6 2012 8:26 pm
Subject: Re: [synergy-dev] Compiler error
On 6 April 2012 00:53, Chris Schoeneman <cschoene...@gmail.com> wrote:

> Does CMakeLists.txt need to list target_link_libraries in dependency order?  If so then 'common' must come before 'base'.

Fixed in r1354: http://code.google.com/p/synergy-plus/source/detail?r=1354

While I was focusing on the CMakeLists.txt for synergyd, I was
overlooking the CMakeLists.txt in the base lib.
Also there was a circular dependency between the arch and synergy
libraries, that I had apparently introduced a long time ago. Not sure
why these issues have surfaced now, could be something to do with the
recent change to CArch.cpp or the way that CDaemonApp was not
including CApp.h the same as synergyc/synergys, but I'm really not
sure.

Nick


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Schoeneman  
View profile  
 More options Apr 6 2012, 11:08 pm
From: Chris Schoeneman <cschoene...@gmail.com>
Date: Fri, 6 Apr 2012 20:08:50 -0700
Local: Fri, Apr 6 2012 11:08 pm
Subject: Re: [synergy-dev] Compiler error
That's possible but I don't see any extern "C" anywhere relevant.  Nick, you could 'nm libcommon.a' and verify kAppVersion is defined there, appropriately mangled, and then 'nm libbase.a' to ensure it's undefined there, also mangled.

How about a verbose log of the error.  That prints the command line, correct?  If the library order is wrong there then cmake isn't using the right order and the problem is finding out why.

Incidentally, I got the required order exactly backwards:  common must come after base.  The linker discovers the missing symbol in base and looks for it in any library linked later, complaining only if the symbol isn't found anywhere.  One thing you could try for kicks is to list common twice, maybe adding at again at the end in CMakeLists.txt.  Having a static library twice has significance so hopefully cmake won't strip it and it'll link successfully.  If so you can fool around with the library order until it works.

cheers,
-chris

On Apr 6, 2012, at 5:07 AM, Francois-Xavier Kowalski wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »