Author Topic: C::B directory permissions under Linux  (Read 6356 times)

Offline stardust

  • Multiple posting newcomer
  • *
  • Posts: 55
    • http://www.hightec-rt.com
C::B directory permissions under Linux
« on: January 10, 2007, 11:28:23 am »
Hi all,

I just generated Code::Blocks from source and installed it under SuSE 10.0.x.

The build (bootstrap, configure, make) run as ordinary user and the installation (make install) as root. However, the installation is unusable due to bad permissions:

Code
> ll /usr/local/share/
insgesamt 32
drwxrwxr-x  2 root root 4096 2007-01-08 14:58 aclocal
drwxrwx---  2 root root 4096 2007-01-09 11:20 application-registry
drwxrwx---  2 root root 4096 2007-01-09 11:20 applications
drwxrwx---  8 root root 4096 2007-01-09 11:20 codeblocks
drwxrwx---  3 root root 4096 2007-01-09 11:20 icons
drwxrwx---  3 root root 4096 2007-01-09 11:20 mime
drwxrwx---  2 root root 4096 2007-01-09 11:20 mime-info
drwxrwx---  2 root root 4096 2007-01-09 11:20 pixmaps

As you can see, ordinary users will get a permission denied when trying to start C::B resp. when trying to read needed files. Same applies to /usr/local/include/codeblocks when trying to read.

The reason is found in /etc/profile

Code
# The user file-creation mask
#
#umask 022
umask 0007

According to my admin this is necessary in order not to violate LDAP security.

The C::B install process sets permissions for files to 644, but does not adapt the rights for the topmost directories to 755 like in

Code
test -z "/usr/local/share/codeblocks" || mkdir -p -- "/usr/local/share/codeblocks" ...

Must I change all these permissions by hand? Or is this a defiecency of the C::B install script and a bug?

Greets

« Last Edit: January 10, 2007, 11:31:42 am by stardust »
Own SVN builds (quite new) • SuSE Linux 10.0 • Linux kernel 2.6.13-15-default
gcc 4.0.2 (20050901)
wxGTK-2.6.1.0-4 • KDE 3.4.2b • gtk2 2.8.3-4

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: C::B directory permissions under Linux
« Reply #1 on: January 10, 2007, 11:40:30 am »
The installation process is handled by autotools. I 'm not sure there's anything we can do about it...
Be patient!
This bug will be fixed soon...

Offline stardust

  • Multiple posting newcomer
  • *
  • Posts: 55
    • http://www.hightec-rt.com
Re: C::B directory permissions under Linux
« Reply #2 on: January 10, 2007, 02:07:02 pm »
Thanks.

In aclocal.m4 I found the following:

Code
# AM_PROG_MKDIR_P
# ---------------
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
#
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
# created by `make install' are always world readable, even if the
# installer happens to have an overly restrictive umask (e.g. 077).
# This was a mistake.  There are at least two reasons why we must not
# use `-m 0755':
#   - it causes special bits like SGID to be ignored,
#   - it may be too restrictive (some setups expect 775 directories).
#
# Do not use -m 0755 and let people choose whatever they expect by
# setting umask.

so I will have to bother my admin again... :?

However, the message that C::B brings up upon startup is misleading.
Code
Cannot find resources...
Code::Blocks was configured to be installed in '/usr/local/share/codeblocks'.
Please use the command-line switch '--prefix' or set the CODEBLOCKS_DATA_DIR environment variable to point where Code::Blocks is installed,
or try re-installing the application...

It is perhaps a good idea to check for the permissions in C::B and give a hint that is closer to the very problem (changing permissions resp. umask).
« Last Edit: January 10, 2007, 02:12:25 pm by stardust »
Own SVN builds (quite new) • SuSE Linux 10.0 • Linux kernel 2.6.13-15-default
gcc 4.0.2 (20050901)
wxGTK-2.6.1.0-4 • KDE 3.4.2b • gtk2 2.8.3-4

Offline stardust

  • Multiple posting newcomer
  • *
  • Posts: 55
    • http://www.hightec-rt.com
Re: C::B directory permissions under Linux
« Reply #3 on: January 12, 2007, 10:39:35 am »
Hi again,

in order to avoid all the trouble, I am trying to install Code::Blocks into a sandbox where I have all permissions.

configure ran with
Code
--prefix=/local/codeblocks
with /local a soft link to my sandbox.

make install runs until it aborts with
Code
test -z "/local/codeblocks/share/codeblocks/plugins" || mkdir -p -- "/local/codeblocks/share/codeblocks/plugins"
 /bin/sh ../../../libtool --mode=install /usr/bin/install -c  'libastyle.la' '/local/codeblocks/share/codeblocks/plugins/libastyle.la'
libtool: install: error: cannot install `libastyle.la' to a directory not ending in /usr/local/share/codeblocks/plugins
make[5]: *** [install-libLTLIBRARIES] Fehler 1

umask is the same as above (0007). However, As I am the owner of all the stuff it should work.

I did browse ./configure but no option addresses that. I would rather expect specifying a lib by adapting some path variable instead of a hard coded install path/path to find it.

So I am stuck again. Do you have a clue?


Thanks.
« Last Edit: January 12, 2007, 12:54:05 pm by stardust »
Own SVN builds (quite new) • SuSE Linux 10.0 • Linux kernel 2.6.13-15-default
gcc 4.0.2 (20050901)
wxGTK-2.6.1.0-4 • KDE 3.4.2b • gtk2 2.8.3-4

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: C::B directory permissions under Linux
« Reply #4 on: January 12, 2007, 01:04:34 pm »
You have built originally with a different 'prefix=' argument for 'configure'.
To solve this, run "make clean-bin && make" and then "make install" should work.
Be patient!
This bug will be fixed soon...

Offline stardust

  • Multiple posting newcomer
  • *
  • Posts: 55
    • http://www.hightec-rt.com
Re: C::B directory permissions under Linux
« Reply #5 on: January 12, 2007, 03:55:23 pm »
Ah, I see...

There were some other relicts and I made tabula rasa and got the sources again.

Now, make says
Code
 g++ -DHAVE_CONFIG_H -I. -I. -I../../../../src/sdk -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -I../../../../src/sdk -I../../../../src/sdk/wxscintilla/include -I../../../../src/sdk/scripting/include -I../../../../src/sdk/scripting/sqplus -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT sc_dialog.lo -MD -MP -MF .deps/sc_dialog.Tpo -c sc_dialog.cpp  -fPIC -DPIC -o .libs/sc_dialog.o
sc_dialog.cpp: In function 'int ScriptBindings::ShowDialog(const wxString&, const wxString&, const wxString&)':
sc_dialog.cpp:76: error: 'class wxXmlResource' has no member named 'Unload'
make[5]: *** [sc_dialog.lo] Fehler 1
make[5]: Leaving directory `***/trunk/src/sdk/scripting/bindings'

I assumed that the sources -- in this particular case revision 3480 -- can be used to run a build. Or am I wrong?


Own SVN builds (quite new) • SuSE Linux 10.0 • Linux kernel 2.6.13-15-default
gcc 4.0.2 (20050901)
wxGTK-2.6.1.0-4 • KDE 3.4.2b • gtk2 2.8.3-4

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: C::B directory permissions under Linux
« Reply #6 on: January 12, 2007, 05:47:56 pm »
I was able to build revision 3479 on Linux today without any error (revision 3480 didn't change any source, thus it's basicly the same). And the documentation (for wx 2.8 and 2.6.3 and 2.6) also says that this member exists. The code looks correct, too.

Now the question: Could it be that there is something wrong with your wxGTK installation?
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Offline stardust

  • Multiple posting newcomer
  • *
  • Posts: 55
    • http://www.hightec-rt.com
Re: C::B directory permissions under Linux
« Reply #7 on: January 15, 2007, 09:50:17 am »
uuhh, I do not know... how can I check that? I am really no guru.

My OS is SuSE 10.0. I just upgraded in order to be able to build C::B. To get all the packages that it depends on and compile them by hand is really not feasable... I stopped that approach after some days.

I downloaded the 3392 (because I use the Win32 build 3392 that works).

The 3392 I can build and run :-)

Again, I used a --prefix that points to my sandbox. However, there ist still trouble with the permissions. Upon startup of C::B, a popup complains

Quote from: C::B
Cannot enumerate files in directory '/usr/local/share/mime-info' (error13: Keine Berechtigung)
i.e. permission denied.

I removed the complete source and build tree before getting 3392, so there should be no remains...

Under the assumption that there are some remains from my previous attempts to install C::B as root to the default install path, I changed the permissions of the mentioned folder.

After that, codeblocks comes up. When I open a small sample project (generated under Win32) C::B throws an exception and aborts:

Code
<?xml version="1.0" encoding="utf-8"?>
<report version="1.0" kind="exception">
  <system description="Linux 2.6.13-15-default i686"/>
  <modules>
    <module path="/mnt/oldsuse/local/install/codeblocks/bin/codeblocks" address="08048000" size="0009d000"/>
    <module path="/lib/ld-2.3.5.so" address="40000000" size="00017000" version="2.3.5"/>
    <module path="/usr/lib/locale/de_DE.utf8/LC_IDENTIFICATION" address="4001d000" size="00001000"/>
    <module path="/usr/lib/locale/de_DE.utf8/LC_TELEPHONE" address="4001f000" size="00001000"/>
    <module path="/usr/lib/locale/de_DE.utf8/LC_NAME" address="40021000" size="00001000"/>
    <module path="/usr/lib/locale/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES" address="40023000" size="00001000"/>
    <module path="/usr/lib/locale/de_DE.utf8/LC_TIME" address="40025000" size="00001000"/>
    <module path="/usr/X11R6/lib/X11/locale/lib/common/xlcUTF8Load.so.2" address="40027000" size="00002000" version="2"/>
    <module path="/usr/lib/gconv/ISO8859-1.so" address="4002a000" size="00002000" version="1"/>
    <module path="/lib/libgcc_s.so.1" address="4002f000" size="0000b000" version="1"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/lib/libcodeblocks.so.0.0.1" address="40489000" size="0001a000" version="0.0.1"/>
    <module path="/usr/lib/libstdc++.so.6.0.6" address="404aa000" size="000d7000" version="6.0.6"/>
    <module path="/usr/lib/libwx_gtk2u_xrc-2.6.so.0.0.0" address="40586000" size="00083000" version="0.0.0"/>
    <module path="/usr/lib/libwx_gtk2u_qa-2.6.so.0.0.0" address="4060a000" size="00021000" version="0.0.0"/>
    <module path="/usr/lib/libwx_gtk2u_html-2.6.so.0.0.0" address="406bb000" size="00006000" version="0.0.0"/>
    <module path="/usr/lib/libwx_gtk2u_adv-2.6.so.0.0.0" address="406c3000" size="000a0000" version="0.0.0"/>
    <module path="/usr/lib/libwx_gtk2u_core-2.6.so.0.0.0" address="40765000" size="002f6000" version="0.0.0"/>
    <module path="/usr/lib/libwx_baseu_xml-2.6.so.0.0.0" address="40a61000" size="00009000" version="0.0.0"/>
    <module path="/usr/lib/libwx_baseu_net-2.6.so.0.0.0" address="40a94000" size="00002000" version="0.0.0"/>
    <module path="/usr/lib/libwx_baseu-2.6.so.0.0.0" address="40bac000" size="0000e000" version="0.0.0"/>
    <module path="/lib/tls/libpthread-2.3.5.so" address="40bc8000" size="00010000" version="2.3.5"/>
    <module path="/lib/libdl-2.3.5.so" address="40bda000" size="00004000" version="2.3.5"/>
    <module path="/lib/tls/libm-2.3.5.so" address="40c02000" size="00002000" version="2.3.5"/>
    <module path="/lib/tls/libc-2.3.5.so" address="40d1d000" size="00004000" version="2.3.5"/>
    <module path="/opt/gnome/lib/libgdk-x11-2.0.so.0.800.3" address="40d23000" size="00081000" version="0.800.3"/>
    <module path="/lib/libz.so.1.2.3" address="40da5000" size="00013000" version="1.2.3"/>
    <module path="/opt/gnome/lib/libgtk-x11-2.0.so.0.800.3" address="40db9000" size="002f0000" version="0.800.3"/>
    <module path="/opt/gnome/lib/libatk-1.0.so.0.1010.3" address="410ac000" size="00019000" version="0.1010.3"/>
    <module path="/opt/gnome/lib/libgdk_pixbuf-2.0.so.0.800.3" address="410da000" size="00001000" version="0.800.3"/>
    <module path="/opt/gnome/lib/libpangocairo-1.0.so.0.1000.0" address="410e1000" size="00001000" version="0.1000.0"/>
    <module path="/opt/gnome/lib/libpango-1.0.so.0.1000.0" address="41118000" size="00002000" version="0.1000.0"/>
    <module path="/usr/lib/libcairo.so.2.2.2" address="41166000" size="00001000" version="2.2.2"/>
    <module path="/opt/gnome/lib/libgobject-2.0.so.0.800.1" address="41168000" size="0003a000" version="0.800.1"/>
    <module path="/opt/gnome/lib/libgmodule-2.0.so.0.800.1" address="411a4000" size="00001000" version="0.800.1"/>
    <module path="/usr/lib/libfreetype.so.6.3.8" address="41210000" size="00003000" version="6.3.8"/>
    <module path="/usr/lib/libfontconfig.so.1.0.4" address="4123d000" size="00005000" version="1.0.4"/>
    <module path="/usr/X11R6/lib/libXrender.so.1.2.2" address="41243000" size="00008000" version="1.2.2"/>
    <module path="/usr/X11R6/lib/libX11.so.6.2" address="41340000" size="00004000" version="6.2"/>
    <module path="/usr/X11R6/lib/libXext.so.6.4" address="41345000" size="0000e000" version="6.4"/>
    <module path="/usr/lib/libpng12.so.0.1.2.8" address="41391000" size="00001000" version="0.1.2.8"/>
    <module path="/usr/lib/libglitz.so.1.0.0" address="413b5000" size="00001000" version="1.0.0"/>
    <module path="/opt/gnome/lib/libgthread-2.0.so.0.800.1" address="413b9000" size="00001000" version="0.800.1"/>
    <module path="/opt/gnome/lib/libglib-2.0.so.0.800.1" address="41440000" size="00002000" version="0.800.1"/>
    <module path="/usr/X11R6/lib/libXinerama.so.1.0" address="41444000" size="00001000" version="1.0"/>
    <module path="/usr/X11R6/lib/libXxf86vm.so.1.0" address="41446000" size="00005000" version="1.0"/>
    <module path="/usr/lib/libpng.so.3.1.2.8" address="41489000" size="00001000" version="3.1.2.8"/>
    <module path="/usr/lib/libjpeg.so.62.0.0" address="414a9000" size="00001000" version="62.0.0"/>
    <module path="/usr/lib/libtiff.so.3.7.3" address="414fb000" size="00002000" version="3.7.3"/>
    <module path="/usr/lib/libmspack.so.0.1.0" address="41509000" size="00001000" version="0.1.0"/>
    <module path="/usr/lib/libSDL-1.2.so.0.7.1" address="4150b000" size="00069000" version="0.7.1"/>
    <module path="/usr/lib/libexpat.so.0.5.0" address="415a0000" size="00020000" version="0.5.0"/>
    <module path="/usr/X11R6/lib/libXrandr.so.2.0" address="415c3000" size="00001000" version="2.0"/>
    <module path="/usr/X11R6/lib/libXi.so.6.0" address="415cb000" size="00001000" version="6.0"/>
    <module path="/usr/X11R6/lib/libXcursor.so.1.0.2" address="415cd000" size="00009000" version="1.0.2"/>
    <module path="/usr/X11R6/lib/libXfixes.so.3.0" address="415da000" size="00001000" version="3.0"/>
    <module path="/opt/gnome/lib/libpangoft2-1.0.so.0.1000.0" address="415ff000" size="00001000" version="0.1000.0"/>
    <module path="/usr/lib/libaa.so.1.0.4" address="41617000" size="00002000" version="1.0.4"/>
    <module path="/usr/lib/libslang-utf8.so.1.4.9" address="4161b000" size="0005f000" version="1.4.9"/>
    <module path="/usr/lib/libgpm.so.1.19.0" address="41691000" size="00006000" version="1.19.0"/>
    <module path="/lib/libncurses.so.5.4" address="416d3000" size="0000c000" version="5.4"/>
    <module path="/usr/lib/locale/de_DE.utf8/LC_CTYPE" address="416e2000" size="0003b000"/>
    <module path="/opt/gnome/share/locale/de/LC_MESSAGES/gtk20.mo" address="417f5000" size="0000b000"/>
    <module path="/var/run/nscd/passwd" address="4181c000" size="00035000"/>
    <module path="/opt/gnome/lib/gtk-2.0/2.4.0/engines/libqtengine.so" address="4186f000" size="00001000" version="2.0/2.4.0/engines/libqtengine"/>
    <module path="/usr/lib/qt3/lib/libqt-mt.so.3.3.4" address="41f17000" size="00040000" version="3.3.4"/>
    <module path="/opt/kde3/lib/kde3/plugins/styles/highcolor.so" address="41f5b000" size="00011000"/>
    <module path="/opt/gnome/lib/pango/1.4.0/modules/pango-basic-fc.so" address="41f6e000" size="00001000" version="fc"/>
    <module path="/usr/X11R6/lib/libXft.so.2.1.2" address="41f72000" size="00013000" version="2.1.2"/>
    <module path="/usr/X11R6/lib/libSM.so.6.0" address="41f8d000" size="00001000" version="6.0"/>
    <module path="/usr/X11R6/lib/libICE.so.6.3" address="41fa3000" size="00001000" version="6.3"/>
    <module path="/usr/share/locale/de/LC_MESSAGES/libc.mo" address="41fa6000" size="0001f000"/>
    <module path="/opt/gnome/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-xpm.so" address="41fca000" size="00007000" version="xpm"/>
    <module path="/opt/kde3/lib/libkdefx.so.4.2.0" address="41fdc000" size="0002b000" version="4.2.0"/>
    <module path="/opt/gnome/lib/libgnomeprint-2-2.so.0.1.0" address="42069000" size="00002000" version="0.1.0"/>
    <module path="/usr/lib/libart_lgpl_2.so.2.3.17" address="42081000" size="00001000" version="2.3.17"/>
    <module path="/usr/lib/libxml2.so.2.6.20" address="421a3000" size="00009000" version="2.6.20"/>
    <module path="/opt/gnome/lib/libgnomeprintui-2-2.so.0.1.0" address="421ad000" size="00038000" version="0.1.0"/>
    <module path="/opt/gnome/lib/libgnomecanvas-2.so.0.1200.0" address="4220e000" size="00001000" version="0.1200.0"/>
    <module path="/usr/X11R6/lib/X11/fonts/truetype/albwb.ttf" address="42261000" size="0002a000"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/share/codeblocks/plugins/libastyle.so" address="422b5000" size="0002c000"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/share/codeblocks/plugins/libSymTab.so" address="422f8000" size="00001000"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/share/codeblocks/plugins/libRegExTestbed.so" address="42304000" size="00001000"/>
    <module path="/opt/gnome/share/icons/hicolor/icon-theme.cache" address="42365000" size="0064c000"/>
    <module path="/SYSV00000000" address="43ba4000" size="00060000"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/share/codeblocks/plugins/libdebugger.so" address="43c83000" size="00005000"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/share/codeblocks/plugins/libwxsmith.so" address="43c89000" size="00163000"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/share/codeblocks/plugins/liblib_finder.so" address="43df0000" size="0001b000"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/share/codeblocks/plugins/libcodestat.so" address="43e1f000" size="00001000"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/share/codeblocks/plugins/libtodo.so" address="43e3d000" size="00002000"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/share/codeblocks/plugins/libautosave.so" address="43e4a000" size="00001000"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/share/codeblocks/plugins/libdefaultmimehandler.so" address="43e5b000" size="00001000"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/share/codeblocks/plugins/libscriptedwizard.so" address="43eb1000" size="00005000"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/share/codeblocks/plugins/libkeybinder.so" address="43eeb000" size="00003000"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/share/codeblocks/plugins/libcompiler.so" address="43fc9000" size="00004000"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/share/codeblocks/plugins/libProfiler.so" address="43fce000" size="0001b000"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/share/codeblocks/plugins/libdragscroll.so" address="43ffe000" size="00002000"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/share/codeblocks/plugins/libcodesnippets.so" address="4401b000" size="00002000"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/share/codeblocks/plugins/libexporter.so" address="440cc000" size="00005000"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/share/codeblocks/plugins/libbyogames.so" address="440ff000" size="00003000"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/share/codeblocks/plugins/libenvvars.so" address="4410f000" size="00001000"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/share/codeblocks/plugins/libclasswizard.so" address="44120000" size="00001000"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/share/codeblocks/plugins/libhelp_plugin.so" address="44134000" size="00001000"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/share/codeblocks/plugins/libcodecompletion.so" address="441d4000" size="00004000"/>
    <module path="/mnt/oldsuse/local/install/codeblocks/share/codeblocks/plugins/libcb_koders.so" address="443e2000" size="00016000"/>
    <module path="/usr/X11R6/lib/X11/fonts/truetype/cumbwb__.ttf" address="44618000" size="0001e000"/>
    <module path="[stack]" address="bfcf2000" size="00015000"/>
  </modules>
  <stack>
    <frame level="2" function="wxStackWalker::Walk(unsigned int)" offset="0000002e"/>
    <frame level="3" function="wxDebugReport::AddContext(wxDebugReport::Context)" offset="000009f2"/>
    <frame level="4" function="wxDebugReport::AddAll(wxDebugReport::Context)" offset="00000018"/>
    <frame level="5" function="CodeBlocksApp::OnFatalException()" offset="00000c6c" file="/local/source/codeblocks/3392/trunk/src/src/app.cpp" line="615"/>
    <frame level="6" function="wxFatalSignalHandler" offset="00000026"/>
    <frame level="7"/>
    <frame level="8" function="cbKeyBinder::UpdateArr(wxKeyProfileArray&amp;)" offset="00000031"/>
    <frame level="9" function="cbKeyBinder::OnLoad()" offset="0000046b"/>
    <frame level="10" function="cbKeyBinder::OnEditorOpen(CodeBlocksEvent&amp;)" offset="000000cf"/>
    <frame level="11" function="wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&amp;), wxEvent&amp;) const" offset="00000035"/>
    <frame level="12" function="wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&amp;, wxEvtHandler*, wxEvent&amp;)" offset="00000083"/>
    <frame level="13" function="wxEventHashTable::HandleEvent(wxEvent&amp;, wxEvtHandler*)" offset="0000007f"/>
    <frame level="14" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="000000cf"/>
    <frame level="15" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="0000006e"/>
    <frame level="16" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="0000006e"/>
    <frame level="17" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="0000006e"/>
    <frame level="18" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="0000006e"/>
    <frame level="19" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="0000006e"/>
    <frame level="20" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="0000006e"/>
    <frame level="21" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="0000006e"/>
    <frame level="22" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="0000006e"/>
    <frame level="23" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="0000006e"/>
    <frame level="24" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="0000006e"/>
    <frame level="25" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="0000006e"/>
    <frame level="26" function="PluginManager::NotifyPlugins(CodeBlocksEvent&amp;)" offset="00000030"/>
    <frame level="27" function="cbEditor::NotifyPlugins(int, int, wxString const&amp;, int, int)" offset="000000a7"/>
    <frame level="28" function="cbEditor::Open(bool)" offset="0000035d"/>
    <frame level="29" function="cbEditor::cbEditor(wxWindow*, wxString const&amp;, EditorColourSet*)" offset="000003c4"/>
    <frame level="30" function="EditorManager::Open(wxString const&amp;, int, ProjectFile*)" offset="000002f9"/>
    <frame level="31" function="cbProject::LoadLayout()" offset="00000576"/>
    <frame level="32" function="ProjectManager::LoadProject(wxString const&amp;, bool)" offset="0000027f"/>
    <frame level="33" function="MainFrame::DoOpenProject(wxString const&amp;, bool)" offset="00000000" file="/local/source/codeblocks/3392/trunk/src/src/main.cpp" line="1365"/>
    <frame level="34" function=".L5434" offset="00000000" file="/local/source/codeblocks/3392/trunk/src/src/main.cpp" line="1325"/>
    <frame level="35" function="MainFrame::OnDropFiles(int, int, wxArrayString const&amp;)" offset="00000000" file="/local/source/codeblocks/3392/trunk/src/src/main.cpp" line="2072"/>
    <frame level="36" function="MainFrame::OnFileOpen(wxCommandEvent&amp;)" offset="000004fb" file="/local/source/codeblocks/3392/trunk/src/src/main.cpp" line="2132"/>
    <frame level="37" function="MainFrame::OnStartHereLink(wxCommandEvent&amp;)" offset="000001ec" file="/local/source/codeblocks/3392/trunk/src/src/main.cpp" line="1617"/>
    <frame level="38" function="wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&amp;), wxEvent&amp;) const" offset="00000035"/>
    <frame level="39" function="wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&amp;, wxEvtHandler*, wxEvent&amp;)" offset="00000083"/>
    <frame level="40" function="wxEventHashTable::HandleEvent(wxEvent&amp;, wxEvtHandler*)" offset="0000007f"/>
    <frame level="41" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="000000cf"/>
    <frame level="42" function="wxEvtHandler::ProcessPendingEvents()" offset="00000076"/>
    <frame level="43" function="wxAppConsole::ProcessPendingEvents()" offset="0000006c"/>
    <frame level="44"/>
    <frame level="45"/>
    <frame level="46" function="g_main_context_dispatch" offset="000001fc"/>
    <frame level="47"/>
    <frame level="48" function="g_main_loop_run" offset="000001b7"/>
    <frame level="49" function="gtk_main" offset="000000c1"/>
    <frame level="50" function="wxEventLoop::Run()" offset="00000058"/>
    <frame level="51" function="wxAppBase::MainLoop()" offset="00000059"/>
    <frame level="52" function="wxAppBase::OnRun()" offset="00000021"/>
    <frame level="53" function="CodeBlocksApp::OnRun()" offset="00000000" file="/local/source/codeblocks/3392/trunk/src/src/app.cpp" line="580"/>
    <frame level="54" function="wxEntry(int&amp;, wchar_t**)" offset="00000082"/>
    <frame level="55" function="wxEntry(int&amp;, char**)" offset="00000036"/>
    <frame level="56" function="main" offset="0000023c" file="/local/source/codeblocks/3392/trunk/src/src/app.cpp" line="188"/>
  </stack>
</report>

And on the console: pure virtual method called terminate called without an active exception
« Last Edit: January 15, 2007, 10:12:55 am by stardust »
Own SVN builds (quite new) • SuSE Linux 10.0 • Linux kernel 2.6.13-15-default
gcc 4.0.2 (20050901)
wxGTK-2.6.1.0-4 • KDE 3.4.2b • gtk2 2.8.3-4

Offline stardust

  • Multiple posting newcomer
  • *
  • Posts: 55
    • http://www.hightec-rt.com
Re: C::B directory permissions under Linux
« Reply #8 on: January 15, 2007, 01:29:10 pm »
I now tried also revision 3479 and 3491. Error is the same as with 3480:

Quote from: make
g++ -DHAVE_CONFIG_H -I. -I. -I../../../../src/sdk -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -I../../../../src/sdk -I../../../../src/sdk/wxscintilla/include -I../../../../src/sdk/scripting/include -I../../../../src/sdk/scripting/sqplus -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT sc_dialog.lo -MD -MP -MF .deps/sc_dialog.Tpo -c sc_dialog.cpp  -fPIC -DPIC -o .libs/sc_dialog.o
sc_dialog.cpp: In function 'int ScriptBindings::ShowDialog(const wxString&, const wxString&, const wxString&)':
sc_dialog.cpp:81: error: 'class wxXmlResource' has no member named 'Unload'
make[5]: *** [sc_dialog.lo] Fehler 1
make[5]: Leaving directory `/mnt/oldsuse/local/source/codeblocks/3491/trunk/src/sdk/scripting/bindings'
make[4]: *** [all-recursive] Fehler 1
make[4]: Leaving directory `/mnt/oldsuse/local/source/codeblocks/3491/trunk/src/sdk/scripting'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/mnt/oldsuse/local/source/codeblocks/3491/trunk/src/sdk'
make[2]: *** [all] Fehler 2
make[2]: Leaving directory `/mnt/oldsuse/local/source/codeblocks/3491/trunk/src/sdk'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/mnt/oldsuse/local/source/codeblocks/3491/trunk/src'
make: *** [all-recursive] Fehler 1

Maybe this is the cause? I do not know how to fix
Quote from: ./bootstrap
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
Own SVN builds (quite new) • SuSE Linux 10.0 • Linux kernel 2.6.13-15-default
gcc 4.0.2 (20050901)
wxGTK-2.6.1.0-4 • KDE 3.4.2b • gtk2 2.8.3-4

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: C::B directory permissions under Linux
« Reply #9 on: January 15, 2007, 01:57:58 pm »
Quote
sc_dialog.cpp:81: error: 'class wxXmlResource' has no member named 'Unload'

Fixed in rev. 3493.
Be patient!
This bug will be fixed soon...

Offline stardust

  • Multiple posting newcomer
  • *
  • Posts: 55
    • http://www.hightec-rt.com
Re: C::B directory permissions under Linux
« Reply #10 on: January 18, 2007, 12:57:00 pm »
Yeah, that's it!

Now, I can build and run  :D :D :D

Thanks a lot!
Own SVN builds (quite new) • SuSE Linux 10.0 • Linux kernel 2.6.13-15-default
gcc 4.0.2 (20050901)
wxGTK-2.6.1.0-4 • KDE 3.4.2b • gtk2 2.8.3-4