Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

RE: [Users] Compiling 2.00 using gcc 3.x

From: Andreas Marbet <andreas.marbet(at)bluefire.ch>
Date: Tue May 06 2003 - 09:52:30 EDT


Christian Kirbach wrote:

> hi everybody,
> 
> i've been trying to compile the latest and greatest FreeS/WAN 2.00
> using SuSE's gcc 3.3pre but to no avail. Unfortunately they skipped
> shipping gcc 2.95 with their 8.2 release.
> Can anyone acknowledge a successful 2.00 build using the gcc
> 3.x series?

I found the message below in alt.os.linux.suse and downgraded the mentioned packages (essentially gcc to version 3.2) the way it is described. After this I could compile Vanilla 4.20 as well as freeswan 2.00 on top of it. I didn't try on SuSE stock kernel. BUT: Yast doesnt work anymore (missing libstdc++-devel version from SuSE 8.2) and probably a lot of other stuff will also have a problem. And I hate to install rpm's with --force...

I decided not to use SuSE 8.2 :(

Andreas

,--------------- Forwarded message (begin)

 Subject: Re: Kernel/module compiling
 Date: Thu, 01 May 2003 03:51:17 +0200
 Newsgroup: alt.os.linux.suse

 Me <mts@nospam.com> wrote in message
news:<b8nged0iia@enews1.newsguy.com>...
> I have upgraded from SuSe 8.1 to 8.2. I now can't compile my kernel.

> I am compiling the same kernel source as I did when I was on 8.1.
The
> kernel itself compiles just fine, but the modules are giving me fits.

Do you need help?X

> The following is the error I get:
> In file included from

/usr/src/linux-2.4.20trl/include/linux/ide.h:14,
> from ide-cd.c:309:
> /usr/src/linux-2.4.20trl/include/linux/blkdev.h: In function
> `blk_queue_bounce':
> /usr/src/linux-2.4.20trl/include/linux/blkdev.h:158: warning:
comparison
> between signed and unsigned
> In file included from ide-cd.c:318:
> ide-cd.h: At top level:
> ide-cd.h:440: error: long, short, signed or unsigned used invalidly
for
> `slot_tablelen'
> ide-cd.c: In function `cdrom_analyze_sense_data':
> ide-cd.c:468: warning: comparison between signed and unsigned
> ide-cd.c: In function `cdrom_buffer_sectors':
> ide-cd.c:816: warning: comparison between signed and unsigned
> ide-cd.c:816: warning: signed and unsigned type in conditional
expression
> ide-cd.c: In function `cdrom_read_intr':
> ide-cd.c:994: warning: comparison between signed and unsigned
> ide-cd.c:994: warning: signed and unsigned type in conditional
expression
> ide-cd.c: In function `cdrom_read_from_buffer':
> ide-cd.c:1061: warning: comparison between signed and unsigned
> ide-cd.c: In function `cdrom_start_read_continuation':
> ide-cd.c:1100: warning: comparison between signed and unsigned
> ide-cd.c: In function `cdrom_write_intr':
> ide-cd.c:1607: warning: comparison between signed and unsigned
> ide-cd.c:1607: warning: signed and unsigned type in conditional
expression
> ide-cd.c: At top level:
> /usr/src/linux-2.4.20trl/include/linux/module.h:299: warning:
> `__module_kernel_version' defined but not used
> /usr/src/linux-2.4.20trl/include/linux/module.h:302: warning:
> `__module_using_checksums' defined but not used
> ide-cd.c:3104: warning: `__module_license' defined but not used
> make[2]: *** [ide-cd.o] Error 1
> make[2]: Leaving directory `/usr/src/linux-2.4.20trl/drivers/ide'
is
NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
>
> Has anybody come accross this yet? Can anybody give some hints or
> recommendations? I do compile my own kernels, so being technical
won't
> be a problem.
>
> Thanks much
   

 I had exactly the same problem, and it seems that the SuSE gcc  prerelease has some problems compiling the kernel and other software.  (For me i.e. mjpegtools and transcode did'nt compile, too.)  

 My solution: Downgrade the gcc to 3.2. Therefore I installed the  following RPMs by the SuSE 8.1-version from ftp.suse.com as an  replacement for the installed version (rpm -Uhv --oldpackage):  

 binutils-2.12.90.0.15-49.i586.rpm
 cpp-3.2-44.i586.rpm
 gcc-3.2-44.i586.rpm

 gcc-c++-3.2-44.i586.rpm
 libgcc-3.2-44.i586.rpm
 libstdc++-devel-3.2-44.i586.rpm  

 The only problem is with the libstdc++-3.2-44.i586.rpm (this is  necessary for installing libstdc++-devel-3.2-44.i586.rpm) - against  this lib the KDE apps and some other c++-progammed stuff are linked,  and so you have to install this RPM with rpm -i --force parallel to  the 3.3 version.  

 With this setup I can now compile the vanilla kernel and all other  software without the problems I encountered with gcc 3.3pre, and I  saved the binary constistence of my systems which would be broken if I  used gcc 2.9x.  

 Hope that helps,  

 Arnd

`--------------- Forwarded message (end)



Users mailing list
Users@lists.freeswan.org
http://lists.freeswan.org/mailman/listinfo/users Received on Tue May 6 10:44:18 2003
Do you need more help?X

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:01:30 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library