Author Topic: error when compiling from svn sources (25-10/2006)  (Read 23567 times)

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884

Brain Damage

  • Guest
Re: error when compiling from svn sources (25-10/2006)
« Reply #31 on: November 01, 2006, 11:49:12 am »
yup, my local is italian and my svn client is translated in italian as well.

i updated to revision 3163 (should contain the fixes) today (1/11/06)

i tried to run the following commands:
./bootstrap
./configure --enable-contrib
until now all fine
then i tried to run make
i keep getting the error started in the first post in this thread
then i tried anoter way:
make dist
it created correctly the tar package
i tried to copy to my rpm source folder & create the rpm:

sudo mv codeblocks-trunk-r$REVISION.tar.gz $RPM_TOPDIR/SOURCES
rpmbuild -bs codeblocks.spec

but i did get the following error:

error: Package already exists: %package debug (but no package is present, the folder is empty)

(this probably since i tried before to force to install a rpm nighty build)

trying to not loose hopes i extractied the tar package in a folder and i did run:

./configure --enable-contrib
make (this time it compiled correctly)
# make install
the installation runs fine but when i do try to run it, it reports that it misses a file (can't find wich file)

if the make directly from the svn sources would be fixed (no more mismatching language), would i still get the same error (missing file) after compling?
« Last Edit: November 01, 2006, 11:59:08 am by Brain Damage »

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: error when compiling from svn sources (25-10/2006)
« Reply #32 on: November 03, 2006, 08:10:57 am »
but i did get the following error:

error: Package already exists: %package debug (but no package is present, the folder is empty)

(this probably since i tried before to force to install a rpm nighty build)

This sounds like an RPM error, with the specfile on your platform.
AFAIK that debug package is a thing that SUSE/Mandriva does... ?

Code
%{?debugrpm:%debug_package}

If you list your RPM settings, it should give you some clues to how it
is trying to define the debug package in the spec ? (rpmbuild --showrc)

Brain Damage

  • Guest
Re: error when compiling from svn sources (25-10/2006)
« Reply #33 on: November 04, 2006, 05:29:13 am »
i do use mandriva linux 2007 with kernel 2.6.17-5; the rpmbuild version is 4.4.6.

sorry for not being much "skilled" but i switched to linux very recently & i am not a good programmer since i only write small programs for myself when i do need (in my free time), thanks anyway for the help.

i check out the output of the rpmbuild configuration; those are the lines of codes that i belive that they define the debug package, they don't tell me much so i hope that someone may be able to understand them and tell me what's wrong (if needed, the output.txt attached file is the complete settings dump):

Code
%{nil}
-14: debug_package
%ifnarch noarch
%global __debug_package 1
%package debug
Summary: Debug information for package %{name}
Group: Development/Debug
AutoReqProv: 0
%description debug
This package provides debug information for package %{name}.
Debug information is useful when developing applications that use this
package or when debugging this package.
%files debug -f debugfiles.list
%defattr(-,root,root)
%endif
%{nil}
-14: debugcflags %{?_enable_debug_packages:-g}
-14: defined %{expand:%%{?%{1}:1}%%{!?%{1}:0}}
-14: distribution Mandriva Linux
-14: distsuffix mdv
-14: find_lang /usr/lib/rpm/mandriva/find-lang.sh %{buildroot}
-14: install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package}}}
%%install
[ %{_with install} -eq 1 ] || exit 0
%{nil}
-14: ix86 i386 i486 i586 i686 pentium3 pentium4 athlon k6
-14: make %{_make_bin} %_smp_mflags
-14: make_session if [ -x %{_fndsession_bin} ]; then %{_fndsession_bin} || true ; fi
%{nil}

[attachment deleted by admin]

skoehler

  • Guest
Re: error when compiling from svn sources (25-10/2006)
« Reply #34 on: November 11, 2006, 03:44:57 am »
Hi!

i have a plea:
please use LANG=C on Linux.

On Gentoo Linux, the en_US profile may not be installed. Gentoo users have the choice, which locales they install, and which they don't.

I have read, that LANG=C doesn't work on Windows. Well, i have no suggestion :-(
Isn't it possible to detect Windows via configure and then use LANG=C if we have Linux, OSX, BSD, ... (and not Windows).

Well, i hope that LANG=C works on more platforms than Linux.
« Last Edit: November 11, 2006, 03:47:56 am by skoehler »