Author Topic: The problemn on Suse 9 64bit version,thank you very much!  (Read 4231 times)

Offline zouyu

  • Single posting newcomer
  • *
  • Posts: 7
The problemn on Suse 9 64bit version,thank you very much!
« on: September 06, 2005, 07:42:24 am »
make -f Makefile.unix
Compiling sdk/tinyxml/tinystr.cpp...
Compiling sdk/tinyxml/tinyxml.cpp...
Compiling sdk/tinyxml/tinyxmlerror.cpp...
Compiling sdk/tinyxml/tinyxmlparser.cpp...
Linking static library sdk/tinyxml/libtxml.a...
ar: creating sdk/tinyxml/libtxml.a
ranlib sdk/tinyxml/libtxml.a
Compiling sdk/Managers/Managers.cpp...
Compiling sdk/Managers/StdAfx.cpp...
Compiling sdk/autodetectcompilers.cpp...
Compiling sdk/cbeditor.cpp...
Compiling sdk/cbeditorprintout.cpp...
Compiling sdk/cbplugin.cpp...
Compiling sdk/cbproject.cpp...
Compiling sdk/cbworkspace.cpp...
Compiling sdk/compileoptionsbase.cpp...
Compiling sdk/compiler.cpp...
sdk/compiler.cpp: In member function `virtual void Compiler::SaveSettings(const
   wxString&)':
sdk/compiler.cpp:127: warning: int format, different type arg (arg 4)
Compiling sdk/compilerfactory.cpp...
Compiling sdk/compileroptions.cpp...
Compiling sdk/compiletargetbase.cpp...
Compiling sdk/configmanager.cpp...
Compiling sdk/configuretoolsdlg.cpp...
Compiling sdk/confirmreplacedlg.cpp...
Compiling sdk/customvars.cpp...
Compiling sdk/devcpploader.cpp...
Compiling sdk/editarrayfiledlg.cpp...
Compiling sdk/editarrayorderdlg.cpp...
Compiling sdk/editarraystringdlg.cpp...
Compiling sdk/editorbase.cpp...
Compiling sdk/editorcolorset.cpp...
Compiling sdk/editorconfigurationdlg.cpp...
sdk/editorconfigurationdlg.cpp:522:10: warning: #warning "wxComboBox::SetString() doesn't work under non-win32 platforms"
Compiling sdk/editorlexerloader.cpp...
Compiling sdk/editormanager.cpp...
sdk/editormanager.cpp: In member function `void EditorManager::ActivateNext()':
sdk/editormanager.cpp:473: warning: comparison between signed and unsigned
   integer expressions
sdk/editormanager.cpp: In member function `int
   EditorManager::FindPageFromEditor(EditorBase*)':
sdk/editormanager.cpp:673: warning: comparison between signed and unsigned
   integer expressions
Compiling sdk/editpathdlg.cpp...
Compiling sdk/edittooldlg.cpp...
Compiling sdk/externaldepsdlg.cpp...
sdk/externaldepsdlg.cpp: In member function `virtual void
   ExternalDepsDlg::EndModal(int)':
sdk/externaldepsdlg.cpp:61: warning: comparison between signed and unsigned
   integer expressions
sdk/externaldepsdlg.cpp:69: warning: comparison between signed and unsigned
   integer expressions
Compiling sdk/filegroupsandmasks.cpp...
Compiling sdk/finddlg.cpp...
Compiling sdk/globals.cpp...
Compiling sdk/importers_globals.cpp...
Compiling sdk/incrementalselectlistdlg.cpp...
Compiling sdk/macrosmanager.cpp...
Compiling sdk/managedthread.cpp...
Compiling sdk/manager.cpp...
Compiling sdk/menuitemsmanager.cpp...
Compiling sdk/messagelog.cpp...
Compiling sdk/messagemanager.cpp...
Compiling sdk/msvc7loader.cpp...
Compiling sdk/msvc7workspaceloader.cpp...
Compiling sdk/msvcloader.cpp...
Compiling sdk/msvcworkspaceloader.cpp...
Compiling sdk/multiselectdlg.cpp...
Compiling sdk/newfromtemplatedlg.cpp...
Compiling sdk/personalitymanager.cpp...
Compiling sdk/pipedprocess.cpp...
Compiling sdk/pluginmanager.cpp...
Compiling sdk/pluginsconfigurationdlg.cpp...
Compiling sdk/printing_types.cpp...
Compiling sdk/projectbuildtarget.cpp...
Compiling sdk/projectfileoptionsdlg.cpp...
Compiling sdk/projectlayoutloader.cpp...
Compiling sdk/projectloader.cpp...
Compiling sdk/projectmanager.cpp...
Compiling sdk/projectoptionsdlg.cpp...
Compiling sdk/projectsfilemasksdlg.cpp...
Compiling sdk/projecttemplateloader.cpp...
Compiling sdk/replacedlg.cpp...
Compiling sdk/sdk_events.cpp...
Compiling sdk/searchresultslog.cpp...
Compiling sdk/selecttargetdlg.cpp...
Compiling sdk/simplelistlog.cpp...
Compiling sdk/simpletextlog.cpp...
Compiling sdk/templatemanager.cpp...
Compiling sdk/toolsmanager.cpp...
Compiling sdk/workspaceloader.cpp...
Compiling sdk/xtra_classes.cpp...
Compiling sdk/xtra_res.cpp...
Linking shared library devel/libcodeblocks.so...
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld: sdk/tinyxml/libtxml.a(tinyxml.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
sdk/tinyxml/libtxml.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [devel/libcodeblocks.so] Error 1

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: The problemn on Suse 9 64bit version,thank you very much!
« Reply #1 on: September 06, 2005, 08:48:09 am »
Yes, this is a known issue.
You need to edit the makefile and add -fPIC in the compiler options and then rebuild. Search this forum, it has been described thoroughly.
Be patient!
This bug will be fixed soon...

Offline zouyu

  • Single posting newcomer
  • *
  • Posts: 7
Re: The problemn on Suse 9 64bit version,thank you very much!
« Reply #2 on: September 06, 2005, 10:20:18 am »
I get it . Thank you very much!

Offline grv575

  • Official tester
  • Regular
  • ***
  • Posts: 381
Re: The problemn on Suse 9 64bit version,thank you very much!
« Reply #3 on: September 06, 2005, 10:24:59 pm »
maybe a configure flag could be added for -fPIC if desired.  compiling with PIC is required to get stuff to prelink.  Having compiled an entire linux distro (LFS) with -fPIC in order to prelink X & KDE, only a handful of packages won't compile with it.  And these all use some custom assembly code which breaks it.  So I don't think there should be any problem as far as adding it to the CFLAGS (as an option).

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: The problemn on Suse 9 64bit version,thank you very much!
« Reply #4 on: September 06, 2005, 10:42:34 pm »
maybe a configure flag could be added for -fPIC if desired.  compiling with PIC is required to get stuff to prelink.  Having compiled an entire linux distro (LFS) with -fPIC in order to prelink X & KDE, only a handful of packages won't compile with it.  And these all use some custom assembly code which breaks it.  So I don't think there should be any problem as far as adding it to the CFLAGS (as an option).


In CVS, all makefiles are removed.
Windows compilation is done using C::B itself and for other platforms autoconf/automake support is being added (partially working).
So, options like -fPIC are handled just fine :)
Be patient!
This bug will be fixed soon...