Re: [gentoo-user] Getting BC not to truncate at the decimal point?

2006-05-25 Thread John Green
Mike Huber wrote:

 Hi,
I'm just trying to do some quick calculations using bc, but the
 version installed through portage truncates on
 multiplication/division.  It didn't used to do this 2 years ago when I
 was taking number theory, and there are no USE flags available for
 sys-devel/bc to change this.  From the manpage:

 -

 The most basic element in bc is the number.  Numbers are arbitrary
 precision numbers.  This precision is both in
 the  integer  part  and  the fractional part.  All numbers are
 represented internally in decimal and all computation is done in
 decimal.  ( This  version  truncates  results from divide and multiply
 operations.)  There are two attributes of numbers, the length and the
 scale.  The length is the total number of significant  decimal  digits
 in a number and the scale is the total number of decimal digits after
 the decimal point.  For example:
.01 has a length of 6 and scale of 6.
1935.000 has a length of 7 and a scale of 3.


 


 Anyone have any ideas?

 --Mike

Hi,

Try this.

$ echo '1/5' | bc
0
$ echo '1/5' | bc -l
.2000

I don't think bc has changed in a long time.
Maybe you forgot the -l option.

You can also control the scale explicitly like this.

echo 'scale=3;1/5' | bc -l
.200

Hope this helps.

John Green




-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] ImageMagick -contrast-stretch

2006-02-03 Thread John Green
Martins Steinbergs wrote:

On Friday 03 February 2006 09:51, John Green wrote:
  

convert input.jpg -contrast-stretch 10% output.jpg



my installation is working with this

media-gfx/imagemagick-6.2.6.0  USE=X jpeg mpeg perl png tiff truetype xml2 
zlib -bzip2 -doc -fpx -graphviz -gs -jbig -lcms -nocxx -wmf


m
  

Thanks to Martin and Alexander.

Upgrading fixed the problem, as you suggested.

To get the upgrade, I added media-gfx/imagemagick to
/etc/portage/package.keywords, so my system will now
iupgrade to every new version of ImageMagick that has an ebuild.
The last automatic upgrade I saw (January 26)
was to version 6.2.5.5 to fix security bug #83542.  
I can't be sure from the ImageMagick ChangeLog that
the security fix is also in 6.2.6.0.  Am I worrying about nothing?

Thanks again,

John Green
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] ImageMagick -contrast-stretch

2006-02-02 Thread John Green

Hi,

The ImageMagick option -contrast-stretch is not recognised
in my installation (6.2.5 01/31/06 Q16).  The option is documented on the
IM web-site.

If the option exists on your installationi, or you have any insights,
please reply here with your version, so I can decide whether and
where to file a bug-report.

You can do something like this:

convert input.jpg -contrast-stretch 10% output.jpg

Thanks.

J Green
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] portage: fixed or not???

2005-11-06 Thread John Green
Dale wrote:

Jarry wrote:

  

Hi,

there was a thread concerning portage/emerge being recently fixed
and faster now (sorry, forgot original subject). Well, I was really
impressed by that improvement, until today:

emerge --sync takes again very long time, nearly freezing at 51%
of updating portage cache, cpu load is on 99% load, 25 minutes and
I'm still waiting. And 2 days ago the whole emerge --sync took
about 3-4 minutes! Anyone else having the same experience?

Jarry
 



Same here just a bit ago.  I did not use the du -s thing though.  It
stayed around 50% for a while. 

What happened?  Anybody know?

Dale


  

Same here too.  No idea why.

John Green
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Problems with Intel wireless networking and kernel 2.6.14

2005-11-05 Thread John Green

Hi,

 Richard Fish wrote:

 John Green wrote:

 I still cannot make my Intel wireless card work under
 kernel 2.6.14.  Wireless works fine with 2.6.12.6, but not
 with 2.6.13.x or 2.6.14.

   snip

 Here are the relevant outputs from dmesg.

 2.6.14 (fails)
 --

 ipw2100: Detected Intel PRO/Wireless 2100 Network Connection
 eth0 (WE) : Driver using old /proc/net/wireless support, please fix
driver !

 ## How do I fix the driver in question? ##

 Not important...it's just a note for the developers.  I get the same
 warning (again, ipw2200), and it works fine.

 I noticed that the version in the kernel is the 'stable' .0 version,
 while the one you are using with 2.6.12.6 is a .2 'unstable' version.
 It might be interesting to try merging the 1.1.0 version of the package
 with 2.6.12.6, and see if you have the same issue.  That would tell you
 if it is a driver version or kernel change that is causing the problem.

Thanks for the suggestion, but I might never see a working 2.6.12.6
again if I do that :-(

 I have already run emerge -C ipw2100 to remove that Gentoo
 package, which is no longer needed with kernel 2.6.14.  How
 does wireless still work under 2.6.12.6 without that package?

 Sounds like removing the package didn't remove the compiled kernel
 modules from /lib/modules/2.6.12.6.  Both unusual and lucky!

Yes, the 2.6.12.6 module is still there.  I probably built it
under 2.6.12.6 and then 'removed' it while running 2.6.14.  What
*should* happen in those circumstances?

Also, my kernels have no support for module unloading, which is
probably a mistake when I need to play around with ipw2100 etc.
This at last explains why I had to keep rebooting to see the
effect of changes.

 Is the warning about versions 19 and 17 significant?  It seems
 to come from iwconfig, which is part of wireless-tools.  I have
 version 27-r1 of that package, which is the latest available.

 28_pre10 is available for ~x86.  Try:

 echo net-wireless/wireless-tools ~x86
/etc/portage/package.keywords
 emerge -Dv wireless-tools

 Also, there are now versions of the ieee80211 and ipw2100 packages
that will
 merge with 2.6.14.  They are also masked ~x86, so you will need to do
the same
 updates to package.keywords:

echo net-wireless/ieee80211 ~x86 /etc/portage/package.keywords
echo net-wireless/ipw2100 ~x86 /etc/portage/package.keywords

These steps did not seem to help.

 This should give you the latest 1.1.3 version of the driver.  If it still
 won't work with 2.6.14, I suggest subscribing and posting to the devel
list
 at:

 http://lists.sourceforge.net/lists/listinfo/ipw2100-devel

Thanks for the help, but this is where I give up and go back to
2.6.12.6.  I build my own kernels so I know what is in them and
to get the minimum feature set.  I want the latest kernel to get
security and other fixes, and not because I need any new
functionality.

At least I got closer with 2.6.14.  Kernel 2.6.13.x never
created an eth0 device.  And I will read the ipw2100 dev list
from now on.  Other people have similar problems, but I can't
see a solution yet.

Thanks again,

John Green

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Problems with Intel wireless networking and kernel 2.6.14

2005-11-04 Thread John Green

Hi,

I still cannot make my Intel wireless card work under
kernel 2.6.14.  Wireless works fine with 2.6.12.6, but not
with 2.6.13.x or 2.6.14.

I have a Dell Inspiron 510m with built-in wireless, for which
the ipw2100 driver is appropriate.  I have followed the advice
in the Wiki for ipw2100-with-2.6.14 and taken some extra steps,
but still nothing.

Here are the relevant outputs from dmesg.

2.6.14 (fails)
--

ieee80211_crypt: registered algorithm 'NULL'
ipw2100: Intel(R) PRO/Wireless 2100 Network Driver, 1.1.0
ipw2100: Copyright(c) 2003-2004 Intel Corporation
ACPI: PCI Interrupt :01:03.0[A] - Link [LNKB] - GSI 7 (level, low)
- IRQ 7
ipw2100: Detected Intel PRO/Wireless 2100 Network Connection
eth0 (WE) : Driver using old /proc/net/wireless support, please fix driver !

## How do I fix the driver in question? ##

I have already run emerge -C ipw2100 to remove that Gentoo
package, which is no longer needed with kernel 2.6.14.  How
does wireless still work under 2.6.12.6 without that package?
It is lucky that it does still work, otherwise you wouldn't be
reading this post.


2.6.12.6 (works)


ieee80211_crypt: registered algorithm 'NULL'
ieee80211: 802.11 data/management/control stack, 1.0.3
ieee80211: Copyright (C) 2004-2005 Intel Corporation
[EMAIL PROTECTED]
ipw2100: Intel(R) PRO/Wireless 2100 Network Driver, 1.1.2
ipw2100: Copyright(c) 2003-2005 Intel Corporation
ACPI: PCI Interrupt :01:03.0[A] - Link [LNKB] - GSI 7 (level, low)
- IRQ 7
ipw2100: Detected Intel PRO/Wireless 2100 Network Connection
eth0: Reseting on mode change.
eth0: Reseting on mode change.
ieee80211_crypt: registered algorithm 'TKIP'

--

Here are the relevant outputs from iwconfig, with a few details
obscured.

2.6.14 (fails)
--

Warning: Driver for device eth0 has been compiled with version 19
of Wireless Extension, while this program supports up to version 17.
Some things may be broken...

eth0  unassociated  ESSID:off/any  Nickname:ipw2100
  Mode:Managed  Channel=0  Access Point: 00:00:00:00:00:00
  Bit Rate=0 kb/s   Tx-Power:off
  Retry:on   RTS thr:off   Fragment thr:off
  Encryption key:off
  Power Management:off
  Link Quality:0  Signal level:0  Noise level:0
  Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
  Tx excessive retries:0  Invalid misc:0   Missed beacon:0

2.6.12.6 (works)


eth0  IEEE 802.11b  ESSID:**  Nickname:ipw2100
  Mode:Managed  Frequency:2.462 GHz  Access Point: 00:12:**:**:**:**
  Bit Rate=11 Mb/s   Tx-Power:off
  Retry min limit:7   RTS thr:off   Fragment thr:off
  Encryption key:*
  Power Management:off
  Link Quality=100/100  Signal level=-52 dBm
  Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
  Tx excessive retries:0  Invalid misc:1   Missed beacon:0



Is the warning about versions 19 and 17 significant?  It seems
to come from iwconfig, which is part of wireless-tools.  I have
version 27-r1 of that package, which is the latest available.

Thanks in advance,

John Green

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Intel Wireless networking with kernel 2.6.14.

2005-10-28 Thread John Green

Hi,

I never did get Intel wireless networking working with 2.6.13.x.

I just tried with kernel 2.6.14, and I get compilation errors when I try
to emerge
ieee80211.  It complained about lots of incompatible ieee80211 filles in
the Linux kernel  sources, but still failed when I removed the
complained-about files
by hand.  The most recent error messages looked like this
-
Checking in /usr/src/linux/ for ieee80211 components...

make -C /usr/src/linux
M=/var/tmp/portage/ieee80211-1.0.3-r2/work/ieee80211-1.0.3
MODVERDIR=/var/tmp/portage/iee
#undef CONFIG_IEEE80211
sed: can't read /usr/src/linux//build/.config: No such file or directory
make[1]: Entering directory `/usr/src/linux-2.6.14'
 CC [M] 
/var/tmp/portage/ieee80211-1.0.3-r2/work/ieee80211-1.0.3/ieee80211_module.o
 CC [M] 
/var/tmp/portage/ieee80211-1.0.3-r2/work/ieee80211-1.0.3/ieee80211_tx.o
In file included from
/var/tmp/portage/ieee80211-1.0.3-r2/work/ieee80211-1.0.3/ieee80211_module.c:54:
   
/var/tmp/portage/ieee80211-1.0.3-r2/work/ieee80211-1.0.3/net/ieee80211.h:724:
error: redefinition of `is_broadca
include/linux/etherdevice.h:73: error: `is_broadcast_ether_addr'
previously defined here
In file included from
/var/tmp/portage/ieee80211-1.0.3-r2/work/ieee80211-1.0.3/ieee80211_tx.c:46:
   
/var/tmp/portage/ieee80211-1.0.3-r2/work/ieee80211-1.0.3/net/ieee80211.h:724:
error: redefinition of `is_broadca
include/linux/etherdevice.h:73: error: `is_broadcast_ether_addr'
previously defined here
make[2]: ***
[/var/tmp/portage/ieee80211-1.0.3-r2/work/ieee80211-1.0.3/ieee80211_module.o]
Error 1
make[2]: *** Waiting for unfinished jobs
make[2]: ***
[/var/tmp/portage/ieee80211-1.0.3-r2/work/ieee80211-1.0.3/ieee80211_tx.o]
Error 1
make[1]: ***
[_module_/var/tmp/portage/ieee80211-1.0.3-r2/work/ieee80211-1.0.3] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.14' 
make: *** [modules] Error 2

!!! ERROR: net-wireless/ieee80211-1.0.3-r2 failed.
!!! Function linux-mod_src_compile, Line 505, Exitcode 2
!!! Unable to make 
KSRC=/usr/src/linux KSRC_OUTPUT=/usr/src/linux all.
!!! If you need support, post the topmost build error, NOT this
status message.

Are any versions of the Gentoo packages iee80211, ipw2100 and
ipw2100-firmware
expected to work with kernel 2.6.14?  Or is a different approach
required?  It does
seem odd to have to delete an ever-increasing list of vanilla kernel
files that someone
has worked to provide.

I also tried building the ipw2100 without first building ieee80211, but
that build failed
like this.

Looks like you forgot to remerge net-wireless/ieee80211 after
upgrading your kernel.

Hint: use sys-kernel/module-rebuild for keeping track of which
modules needs to be remerged after a kernel upgrade.

!!! ERROR: net-wireless/ipw2100-1.1.2-r3 failed.

I obviously don't know what I'm doing, so any guidance would be welcome.
Meanwhile, it's back to 2.6.12.6 for me.

TIA,

John Green
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] module-rebuild script

2005-10-24 Thread John Green

Hi,

The Gentoo newsletter mentioned the new module-rebuild script,
so I emerged it and ran it with the following results.

# module-rebuild list
** Packages which I will emerge are:
=media-libs/svgalib-1..21-r1
=net-wireless/ieee80211-1.0.3-r2
=net-wireless/ipw2100-1.1.2-r3

So I ran

# module-rebuild rebuild

and it seemed to rebuild the three packages in question.

As a check, I then ran module-rebuild list again, and it
listed the same three modules as before.

Am I missing something obvious?  Fortunately, everything is
still working.

John Green
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] cdrecord trouble

2005-10-12 Thread John Green
Alexey Asprov wrote:

I have finally made my usb cdr to work, however I can't burn cds
This was what I made it to work:

Device Drivers -
SCSI device support -
[*] SCSI CDROM support
USB support -
[*] EHCI HCD
[*] USB Mass Storage support
[*] Freecom USB/ATAPI Bridge support
[*] ISD-200 USB/ATA Bridge support
[*] USBAT/USBAT02-based storage support


Now... 

cdrecord -scanbus
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Warning: Running on Linux-2.6.12-gentoo-r6
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
Linux sg driver version: 3.5.33
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) 'HP' 'CD-Writer+ 8200e' '0001' Removable Disk
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *

And...

cdrecord -v -dao speed=4 dev=0,0,0 KNOPPIX_V4.0.2CD-2005-09-23-EN.iso
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Warning: Running on Linux-2.6.12-gentoo-r6
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
TOC Type: 1 = CD-ROM
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
Linux sg driver version: 3.5.33
Using libscg version 'schily-0.8'.
SCSI buffer size: 64512
atapi: 1
Device type: Removable Disk
Version: 0
Response Format: 1
Vendor_info: 'HP'
Identifikation : 'CD-Writer+ 8200e'
Revision   : '0001'
Device seems to be: Generic CCS Disk.
cdrecord: Sorry, no CD/DVD-Drive found on this target

Any suggestions? I see many people have the same problem, but couldn't find 
the 
solution. Thanks in advance.

  

Hi Alexey,

I haven't seen any replies to your question.  You might want
to try this suggestion if you are still stuck.  It worked for me.

emerge k3b

Then run k3b and note the parameters it uses to burn the cd.  The use that
information to adjust cdrecord.

I normally use fluxbox, so I first had to emerge large parts of kde, run k3b
and then remove k3b and kde.  That's why this suggestion is a last resort.

Good luck,

John Green
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] cdrecord trouble

2005-10-12 Thread John Green
Holly Bostick wrote:

John Green schreef:
  

Alexey Asprov wrote:




I have finally made my usb cdr to work, however I can't burn cds 
This was what I made it to work:

Device Drivers - SCSI device support - [*] SCSI CDROM support USB
 support - [*] EHCI HCD [*] USB Mass Storage support [*] Freecom 
USB/ATAPI Bridge support [*] ISD-200 USB/ATA Bridge support [*] 
USBAT/USBAT02-based storage support


Now...

cdrecord -scanbus Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright
 (C) 1995-2004 Jörg Schilling cdrecord: Warning: Running on 
Linux-2.6.12-gentoo-r6 cdrecord: There are unsettled issues with 
Linux-2.5 and newer. cdrecord: If you have unexpected problems, 
please try Linux-2.4 or Solaris. Linux sg driver version: 3.5.33 
Using libscg version 'schily-0.8'. scsibus0: 0,0,0 0) 'HP' 
'CD-Writer+ 8200e' '0001' Removable Disk 0,1,0 1) * 0,2,0 2) * 
0,3,0 3) * 0,4,0 4) * 0,5,0 5) * 0,6,0 6) * 0,7,0 
7) *

And...

cdrecord -v -dao speed=4 dev=0,0,0 
KNOPPIX_V4.0.2CD-2005-09-23-EN.iso Cdrecord-Clone 2.01 
(i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling 
cdrecord: Warning: Running on Linux-2.6.12-gentoo-r6 cdrecord: 
There are unsettled issues with Linux-2.5 and newer. cdrecord: If 
you have unexpected problems, please try Linux-2.4 or Solaris. TOC
 Type: 1 = CD-ROM scsidev: '0,0,0' scsibus: 0 target: 0 lun: 0
Linux sg driver version: 3.5.33 Using libscg version 'schily-0.8'.
SCSI buffer size: 64512 atapi: 1 Device type: Removable Disk
Version : 0 Response Format: 1 Vendor_info: 'HP' Identifikation
: 'CD-Writer+ 8200e' Revision   : '0001' Device seems to be: 
Generic CCS Disk. cdrecord: Sorry, no CD/DVD-Drive found on this 
target

Any suggestions? I see many people have the same problem, but 
couldn't find the solution. Thanks in advance.



  

Hi Alexey,

I haven't seen any replies to your question.  You might want to try 
this suggestion if you are still stuck.  It worked for me.

emerge k3b

Then run k3b and note the parameters it uses to burn the cd.  The use
 that information to adjust cdrecord.

I normally use fluxbox, so I first had to emerge large parts of kde,
 run k3b and then remove k3b and kde.  That's why this suggestion is
a last resort.



That's a good idea, John, but you don't have to 'emerge large parts of
KDE' to emerge k3b. Just kdelibs (and qt, but QT is useful even if you
don't use KDE, so I don't see that as a problem), *if* you use the -arts
and -kde USE flags to emerge it. If you don't use KDE, then they should
already be in /etc/make.conf, but you (or Alexey) can also add it to
/etc/portage/package.use:

 #echo 'app-cdr/k3b -arts -kde' /etc/portage/package.use

(assuming that the directory /etc/portage exists; the file will be
created if it does not exist, but the folder won't, so it must pre-exist).


HTH,
Holly
  

You are probably right.  It was 6 months ago.
Things may have changed since then, or I was just obtuse.  My
Log says *what* I did, but not why.

John
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Latex spacing problem

2005-10-06 Thread John Green
Joseph wrote:

Is there any Tetex/Latex guru on the list?

I'm trying to modify the formation line in purchase_order.tex form.
I think this line is responsible how the entry items are formated:

[EMAIL PROTECTED]@{\extracolsep
[EMAIL PROTECTED]

However, the line above if the part number is long the description is
not wrap up to the next line.  Just the next columns are keep scrolling
to the right.
So,  text Amount Total scrolls of the page.

I've tried to copy the formating string from invoice.tex form (that
correctly wraps up the description column):
[EMAIL PROTECTED]@{}}

but it doesn't work correctly.
Anybody knows what to change so when the part number is long, the
description section would wrap up to the next line.

  

I suggest you ask on the usenet group comp.text.tex.  The group is active.

John Green
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Cannot compile ipw2100 against kernel 2.6.13

2005-09-29 Thread John Green
Richard Fish wrote:

 John Green wrote:

 the problem might be with ieee80211. A detailed look at my log file for
 rebuilding ieee80211
 under 2.6.13.2 showed that the ebuild tried to delete kernel file
 include/net/ieee80211.h,
 but failed with insufficient privilege, even though emerge was running
 as root. I deleted
 the kernel header file by hand and the ebuild for ipw2100 then ran
 successfully.
  


 BTW, the current ~x86 version of the ipw2100 ebuild has a check for
 this, and if the file exists, it will prompt you to remove it and then
 fail the build.

 You might try:

 echo net-wireless/ipw2100 ~x86 /etc/portage/package.keywords
 emerge -Dv net-wireless/ipw2100

 I'm using ipw2100-1.1.2-r3 with suspend2-sources-2.6.13-r4 without any
 significant problems.

 -Richard

Thanks for the tip, but it did not help.  I still get no communication
when running with 2.6.13.2.

I guess I'll wait for 2.6.14 and try again.

John Green
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Cannot compile ipw2100 against kernel 2.6.13

2005-09-28 Thread John Green

Hi,

I have been using wireless on my Dell laptop successfully under kernel
2.6.12
and earlier, but I can't get it to build under kernel 2.6.13.  Specifically,
the ipw2100 package fails to compile against kernel 2.6.13.{,1,2}.  I
have looked in
bugzilla, but couldn't see anything relevant.  M`aybe I'm missing a
trick somewhere.

In detail, when

/usr/src/linux = /usr/src/linux-2.6.12.6

everything works OK.

But when

/usr/src/linux = /usr/src/linux-2.6.13.2

there are errors beginning like this.

-

 Source unpacked.

 * You may safely ignore any errors from compilation that contain
 * warnings about undefined references to the ieee80211 subsystem.
 *
 * Preparing ipw2100 module
mkdir -p
/var/tmp/portage/ipw2100-1.1.2-r1/work/ipw2100-1.1.2/tmp/.tmp_versions
cp /usr/include/*.mod
/var/tmp/portage/ipw2100-1.1.2-r1/work/ipw2100-1.1.2/tmp/.tmp_versions
cp: cannot stat `/usr/include/*.mod': No such file or directory
make: [modules] Error 1 (ignored)
make -C /usr/src/linux
M=/var/tmp/portage/ipw2100-1.1.2-r1/work/ipw2100-1.1.2
MODVERDIR=/var/tmp/portage/ipw2100-1.1.2-r1/w
make[1]: Entering directory `/usr/src/linux-2.6.13.2'
  CC [M]  /var/tmp/portage/ipw2100-1.1.2-r1/work/ipw2100-1.1.2/ipw2100.o
/var/tmp/portage/ipw2100-1.1.2-r1/work/ipw2100-1.1.2/ipw2100.c: In
function `ipw2100_set_scan_options':
/var/tmp/portage/ipw2100-1.1.2-r1/work/ipw2100-1.1.2/ipw2100.c:1584:
error: structure has no member named `sec'
/var/tmp/portage/ipw2100-1.1.2-r1/work/ipw2100-1.1.2/ipw2100.c:1584:
error: structure has no member named `sec'
/var/tmp/portage/ipw2100-1.1.2-r1/work/ipw2100-1.1.2/ipw2100.c: In
function `ipw2100_configure_security':
/var/tmp/portage/ipw2100-1.1.2-r1/work/ipw2100-1.1.2/ipw2100.c:5103:
error: structure has no member named `sec'
/var/tmp/portage/ipw2100-1.1.2-r1/work/ipw2100-1.1.2/ipw2100.c:5108:
error: structure has no member named `sec'

--

BTW, I am totally confused about in-kernel versus out-of-kernel software
for Intel wireless
and about the hardware/driver nomenclature.  Here is the (possibly)
relevant part of
my kernel .config file.

--

#
# Wireless LAN (non-hamradio)
#
CONFIG_NET_RADIO=y

#
# Obsolete Wireless cards support (pre-802.11)
#
# CONFIG_STRIP is not set
# CONFIG_PCMCIA_WAVELAN is not set
# CONFIG_PCMCIA_NETWAVE is not set

#
# Wireless 802.11 Frequency Hopping cards support
#
# CONFIG_PCMCIA_RAYCS is not set

#
# Wireless 802.11b ISA/PCI cards support
#
CONFIG_HERMES=y
# CONFIG_PLX_HERMES is not set
# CONFIG_TMD_HERMES is not set
CONFIG_PCI_HERMES=y
# CONFIG_ATMEL is not set

#
# Wireless 802.11b Pcmcia/Cardbus cards support
#
# CONFIG_PCMCIA_HERMES is not set
# CONFIG_AIRO_CS is not set
# CONFIG_PCMCIA_WL3501 is not set

#
# Prism GT/Duette 802.11(a/b/g) PCI/Cardbus support
#
# CONFIG_PRISM54 is not set
CONFIG_NET_WIRELESS=y

#
# PCMCIA network device support
#
CONFIG_NET_PCMCIA=y
# CONFIG_PCMCIA_3C589 is not set
CONFIG_PCMCIA_3C574=y
# CONFIG_PCMCIA_FMVJ18X is not set
# CONFIG_PCMCIA_PCNET is not set
# CONFIG_PCMCIA_NMCLAN is not set
# CONFIG_PCMCIA_SMC91C92 is not set
# CONFIG_PCMCIA_XIRC2PS is not set
# CONFIG_PCMCIA_AXNET is not set

---

(I sometimes use a PCMCIA cable-ethernet card, but not at present.)

There is a comment that the ipw in-kernel driver may change in 2.6.14,
but I don't want to wait
for that if it turns out to be my error anyway.

Thanks,

John Green


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Cannot compile ipw2100 against kernel 2.6.13

2005-09-28 Thread John Green
Willie Wong wrote:

On Wed, Sep 28, 2005 at 11:03:18AM +, John Green wrote:
  

In detail, when

/usr/src/linux = /usr/src/linux-2.6.12.6

everything works OK.

But when

/usr/src/linux = /usr/src/linux-2.6.13.2

there are errors beginning like this.

-



Source unpacked.
  

 * You may safely ignore any errors from compilation that contain
 * warnings about undefined references to the ieee80211 subsystem.
 *
 * Preparing ipw2100 module
mkdir -p
/var/tmp/portage/ipw2100-1.1.2-r1/work/ipw2100-1.1.2/tmp/.tmp_versions
cp /usr/include/*.mod
/var/tmp/portage/ipw2100-1.1.2-r1/work/ipw2100-1.1.2/tmp/.tmp_versions
cp: cannot stat `/usr/include/*.mod': No such file or directory
make: [modules] Error 1 (ignored)
make -C /usr/src/linux
M=/var/tmp/portage/ipw2100-1.1.2-r1/work/ipw2100-1.1.2
MODVERDIR=/var/tmp/portage/ipw2100-1.1.2-r1/w
make[1]: Entering directory `/usr/src/linux-2.6.13.2'
  CC [M]  /var/tmp/portage/ipw2100-1.1.2-r1/work/ipw2100-1.1.2/ipw2100.o
/var/tmp/portage/ipw2100-1.1.2-r1/work/ipw2100-1.1.2/ipw2100.c: In
function `ipw2100_set_scan_options':
/var/tmp/portage/ipw2100-1.1.2-r1/work/ipw2100-1.1.2/ipw2100.c:1584:


snip

hum, have you tried asking about on ipw2100.sourceforge.net?
There's an IRC channel on freenode and they also have their own bug
database you can search through. Maybe you will find something there?

  

Thanks for the tip. Their bug database did not help, so it was IRC or
nothing.
I'd been on IRC only once before, and that was two years ago... so this time
I made notes on how to do it. Anyway, someone on freenode/#ipw2100 thought
the problem might be with ieee80211. A detailed look at my log file for
rebuilding ieee80211
under 2.6.13.2 showed that the ebuild tried to delete kernel file
include/net/ieee80211.h,
but failed with insufficient privilege, even though emerge was running
as root. I deleted
the kernel header file by hand and the ebuild for ipw2100 then ran
successfully.
Kernel 2.6.12.6 does not contain the file include/net/ieee80211.h, so the
compilation error never happened with that kernel.

Unfortunately, wireless would still not work under 2.6.13.2, despite
many rebuilds
in different orders and many reboots. I guess I'll stick with kernel
2.6.12.6 for now.
If I ever do get wireless working under 2.6.13 or higher, I'll try to
add a note to the
Gentoo Wiki for ipw2100. (More learning and note-taking!)

I use a script to detect errors in ebuild log files because the logs are
usually too long to read.
The script clearly needs an extra clause to highlight the phrase
'insufficient privilege'.

John Green
-- 
gentoo-user@gentoo.org mailing list