Fedora Linux Support Community & Resources Center
Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > Hardware

Hardware Problems with hardware not being detected or supported.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2003-11-16, 04:38 PM CST
meff Offline
Registered User
 
Join Date: Nov 2003
Posts: 5
PCTel Winmodem Won't Compile (Answered)

So, I got the latest PCTel drivers that have worked on every 2.4.* kernel I've used so far, including 22 .. So I figured i'd have no problem with Fedora... ERR! .. *sigh*

[code:1]
gcc32 -D__KERNEL__ -Werror -Wno-trigraphs -fno-common -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -DMODULE -DMODVERSIONS -DEXPORT_SYMTAB -DHAL_PCT789 -DBUILD_SYSTEM=""`uname -s -m -r -p`"" -DGCC_VERSION=""`gcc --version | head -1`"" -I../../include -I/usr/src/linux/include -include /usr/src/linux/include/linux/modversions.h -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DPACKAGE="pctel" -DVERSION="0.9.5" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -c -o ptserial.o ptserial.c
ptserial.c: In function `rs_close':
ptserial.c:2813: invalid operands to binary ==
make[3]: *** [ptserial.o] Error 1
make[3]: Leaving directory `/usr/src/hardware/pctel_winmodem/pctel-0.9.6/src/ptserial'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/hardware/pctel_winmodem/pctel-0.9.6/src/ptserial'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/hardware/pctel_winmodem/pctel-0.9.6/src'
make: *** [all-recursive] Error 1
[/code:1]

Kaboom. Anyone have any idea?

Here's what I used to ./configure :

[code:1]
./configure --with-hal=pct789 CC=gcc32
[/code:1]

If anyone can help, speak up. Thanks
Reply With Quote
  #2  
Old 2003-11-17, 10:11 PM CST
Avatraxiom Offline
Community Manager
 
Join Date: Mar 2004
Location: San Jose, CA
Posts: 323
So this is the exact same version of the drivers that successfully compiled on your 2.4.20-20.9 Red Hat 9 machine?

What is that line of code that it crashes on? (That is, find it in the source and paste it in.)

-M
Reply With Quote
  #3  
Old 2003-11-19, 10:46 AM CST
meff Offline
Registered User
 
Join Date: Nov 2003
Posts: 5
Well, I've never used RH before Fedora, but this worked fine on vanilla 22 and most any other kernel I've tried it on..

Here's the code on that line, and a few lines after:

[code:1]
if ((tty->count == 1) && (state->count != 1)) {
printk("rs_close: bad serial port count; tty->count is 1, " "state->count is %dn", state->count);
state->count = 1;
}
[/code:1]
Reply With Quote
  #4  
Old 2003-11-20, 02:03 AM CST
Avatraxiom Offline
Community Manager
 
Join Date: Mar 2004
Location: San Jose, CA
Posts: 323
My assumption here is that one of the Red Hat kernel patches changed the type of one of those variables. You should probably ask the driver developers of this driver that you're compiling if they have a Red Hat / Fedora version, or if they know what patch it is that's causing this trouble.

-M
Reply With Quote
  #5  
Old 2003-11-23, 04:22 AM CST
meff Offline
Registered User
 
Join Date: Nov 2003
Posts: 5
Quote:
Originally Posted by avatraxiom
My assumption here is that one of the Red Hat kernel patches changed the type of one of those variables. You should probably ask the driver developers of this driver that you're compiling if they have a Red Hat / Fedora version, or if they know what patch it is that's causing this trouble.
Well crap. It's more or less un-maintained at the moment.. And the only thing that works for my winmodem, and I am currently out of cash to get a real one.. *shrug*

Any idea on what to do?
Reply With Quote
  #6  
Old 2003-11-23, 07:33 PM CST
Avatraxiom Offline
Community Manager
 
Join Date: Mar 2004
Location: San Jose, CA
Posts: 323
Quote:
Originally Posted by meff
Any idea on what to do?
I have some ideas.

(1) Which of those lines is 2813? You could ask (a) the fedora-devel-list and (b) the Linux Kernel Mailing List (As a last resort) why you would get that error. Or, first, you could try and ask #fedora-devel why that error would show up, and paste them that line of code. mkj would be the best person to ask, probably, but others might know. You'd probably want to ask during work hours PST, or just slightly after. (Just slightly after tends to work pretty well, for me, since people get home and glace at IRC.)

(2) Those lines look like a sanity check for the driver. If you feel like being risky, you could delete that entire "if" block from the code. (That is, everything you pasted there, you could just rip out.) I'm not sure that would make everything compile, but it might be a start.

-M
Reply With Quote
  #7  
Old 2003-12-16, 02:35 PM CST
meff Offline
Registered User
 
Join Date: Nov 2003
Posts: 5
Followup:

Someone has patched it and is re-releasing the pctel driver with Fedora compatable code:
http://hepunx.rl.ac.uk/~wmurray/pctel/pctel.html

Good luck, if anyone else has this modem...
Reply With Quote
Reply

Tags
answered, compile, pctel, winmodem

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PCTEL modem on FC5? Globe Trotter gmane.linux.redhat.fedora.general 2 2006-05-06 05:50 PM CDT
Pctel vignesh Hardware 0 2005-08-30 09:56 AM CDT
Prob with PCTel HSp56 Micromoden in FC4 jishnu Hardware 1 2005-08-29 12:23 AM CDT
pctel modem FC3 paulr1984 Hardware 0 2005-03-13 07:40 AM CST
PCTel Inc HSP 56 Micromodem on FC3? Harikumar Krishnan gmane.linux.redhat.fedora.general 2 2005-02-02 04:21 PM CST

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 08:21 PM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
Hosting provided by ThePlanet



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Automatic translations (vBET) delivered by NLP-er