Author Topic: auto_revision built by CodeBlows is not working while by "make" works  (Read 3988 times)

bnilsson

  • Guest
As an exercise, I am trying to build CB (CodeBlocks-unix.cbp) by the help of CB.

Can somebody explain this:
When auto_revision is built by CB I get this:

build_tools / autorevision / auto_revision +wx +int +t . sdk / autorevision.h
dyld: lazy symbol binding failed: lazy pointer not found
dyld: lazy pointer not found


while when auto_revision is built ny manual make it works ok.

The command line in CB is this (sorry about the extra spaces):

-------------- Build: AutoRevision in Code::Blocks - MAC103u ---------------
g + +  -I / usr / include -I / opt / local / include  -c build_tools / autorevision / autorevision.cpp -o .objs / build_tools / autorevision / autorevision.o
g + + -L / usr / lib -L / opt / local / lib  -o build_tools / autorevision / auto_revision .objs / build_tools / autorevision / autorevision.o   -s 



The screen output for manual make is this (sorry about the extra spaces):

make
if g + + -DHAVE_CONFIG_H -I. -I. -I.. / .. / .. /  src  /  sdk     -O2 -ffast-math -I / opt / local / include -g -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT autorevision.o -MD -MP -MF ".deps / autorevision.Tpo" -c -o autorevision.o autorevision.cpp; \
then mv -f ".deps / autorevision.Tpo" ".deps / autorevision.Po"; else rm -f ".deps / autorevision.Tpo"; exit 1; fi
 / bin / sh .. / .. / .. / libtool --tag=CXX --mode=link g++  -O2 -ffast-math -I / opt / local / include -g -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC  -L / opt / local / lib -o auto_revision  autorevision.o  -lpthread -ldl
mkdir .libs
g + + -O2 -ffast-math -I / opt / local / include -g -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -o auto_revision autorevision.o -Wl,-bind_at_load  -L / opt / local / lib -lpthread -ldl
. / auto_revision +int +wx +t .. / .. / .. . / .. / .. / sdk / autorevision.h


Since I do not entirely understand the make contents I would like to ask if somebody can help me point out where the key differences are, and if a fix can be ported into the CB project?

I have also tried Pecan's CodeBlocks-mac103u.cbp, but it is the same thing there, which is puzzling, since I suppose it did work in Pecan's environment.

Offline eranif

  • Regular
  • ***
  • Posts: 256
Re: auto_revision built by CodeBlows is not working while by "make" works
« Reply #1 on: October 31, 2006, 11:06:25 pm »
CodeBlow ...

Cute :D

-Eran

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2774
Re: auto_revision built by CodeBlows is not working while by "make" works
« Reply #2 on: October 31, 2006, 11:20:35 pm »
As an exercise, I am trying to build CB (CodeBlocks-unix.cbp) by the help of CB.

Can somebody explain this:
When auto_revision is built by CB I get this:

build_tools / autorevision / auto_revision +wx +int +t . sdk / autorevision.h
dyld: lazy symbol binding failed: lazy pointer not found
dyld: lazy pointer not found


I've already answered that question twice now. You haven't read my responses?
Search this forum for "lazy pointer"

« Last Edit: October 31, 2006, 11:22:39 pm by Pecan »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2774
Re: auto_revision built by CodeBlows is not working while by "make" works
« Reply #3 on: October 31, 2006, 11:34:28 pm »
I have also tried Pecan's CodeBlocks-mac103u.cbp, but it is the same thing there, which is puzzling, since I suppose it did work in Pecan's environment.

Yes, both work in 10.3, but you're using 10.4 . And I suspect your wxWidgets is Ansi, not Unicode.

You might want to build with the .cbp ending in "a" for ansi, not the "u" for unicode. Unicode wxWidgets does not play well with other Mac programs.

And, you cannot use "-s" in 10.4 (There, I said it the third time).
« Last Edit: October 31, 2006, 11:39:56 pm by Pecan »

bnilsson

  • Guest
Re: auto_revision built by CodeBlows is not working while by "make" works
« Reply #4 on: November 01, 2006, 09:20:36 am »

The discussion about lazy pointers and stripping went above my head since I am not very familiar with any of the subjects, so I completely missed the point.
Sorry about that.

Thanks for the CodeBlocks-mac.cbp projects, it will help a lot.
About unicode/ansi, I was misled by the wiki instructions for CB Windows install, "Although ANSI builds are technically possible, we discourage their use unless there is a good reason.", a rather strong statement, so I thought the same would apply for MacOSX.