Register | Sign In


Understanding through Discussion


EvC Forum active members: 65 (9164 total)
5 online now:
Newest Member: ChatGPT
Post Volume: Total: 916,422 Year: 3,679/9,624 Month: 550/974 Week: 163/276 Day: 3/34 Hour: 1/0


Thread  Details

Email This Thread
Newer Topic | Older Topic
  
Author Topic:   My penguin is hassling me !!!!
John
Inactive Member


Message 1 of 17 (21000)
10-29-2002 9:34 AM


Anyone here know Linux? Or any *nix?
I have a gcc problem that is driving me nuts.
Lately, everything I have tried to make has errored out with "undefined reference to '__ctype_$one-of-several-things-here'"
Help me help me help me
------------------
http://www.hells-handmaiden.com

Replies to this message:
 Message 2 by Mister Pamboli, posted 10-29-2002 9:41 AM John has replied

  
Mister Pamboli
Member (Idle past 7598 days)
Posts: 634
From: Washington, USA
Joined: 12-10-2001


Message 2 of 17 (21001)
10-29-2002 9:41 AM
Reply to: Message 1 by John
10-29-2002 9:34 AM


Sounds like you have a class library missing. If there are specific programs that raise this error try to reinstall them. If it occurs no matter what the program, and you run from a desktop shell, try reisntalling that, and if it is occurs even outwith the desktop, try reinstalling the core.

This message is a reply to:
 Message 1 by John, posted 10-29-2002 9:34 AM John has replied

Replies to this message:
 Message 3 by John, posted 10-29-2002 10:31 AM Mister Pamboli has replied

  
John
Inactive Member


Message 3 of 17 (21013)
10-29-2002 10:31 AM
Reply to: Message 2 by Mister Pamboli
10-29-2002 9:41 AM


quote:
Originally posted by Mister Pamboli:
Sounds like you have a class library missing.
Any idea which one? Someone told me that I was missing the g++ headers, but find finds them.
quote:
If there are specific programs that raise this error try to reinstall them.
I'd say 90% of what I try to make fails.
quote:
If it occurs no matter what the program, and you run from a desktop shell, try reisntalling that, and if it is occurs even outwith the desktop, try reinstalling the core.
I usually run FVWM2 and do most of my work in xterm. But I have the same problem if I kill xwindows. I just tried it.
The problem started a few days ago and since I have upgraded to Slackware 8.1. It didn't help. After reinstalling gcc a couple of times to no avail, I rm'd everything associated with it and reinstalled. Same problem. I'm not sure what to do.
Reinstall the core? You mean the linux kernal? Or gcc?
Thanks
------------------
http://www.hells-handmaiden.com

This message is a reply to:
 Message 2 by Mister Pamboli, posted 10-29-2002 9:41 AM Mister Pamboli has replied

Replies to this message:
 Message 4 by Mister Pamboli, posted 10-29-2002 8:01 PM John has not replied
 Message 5 by Percy, posted 10-29-2002 8:18 PM John has replied

  
Mister Pamboli
Member (Idle past 7598 days)
Posts: 634
From: Washington, USA
Joined: 12-10-2001


Message 4 of 17 (21051)
10-29-2002 8:01 PM
Reply to: Message 3 by John
10-29-2002 10:31 AM


Tried to get you some more info - but nobody admits to using Linux round here
From what I can work out, reinstalling gcc should be your first step. Only reinstall the Linux core if that does not work.
Sorry for the slow reply - I think my browser cache was playing tricks on me as I didn't see your reply until just now.

This message is a reply to:
 Message 3 by John, posted 10-29-2002 10:31 AM John has not replied

  
Percy
Member
Posts: 22480
From: New Hampshire
Joined: 12-23-2000
Member Rating: 4.8


Message 5 of 17 (21052)
10-29-2002 8:18 PM
Reply to: Message 3 by John
10-29-2002 10:31 AM


Can you post the text of precisely what you're seeing, including the original command line?
--Percy
[This message has been edited by Percipient, 10-29-2002]

This message is a reply to:
 Message 3 by John, posted 10-29-2002 10:31 AM John has replied

Replies to this message:
 Message 6 by Tranquility Base, posted 10-29-2002 9:15 PM Percy has not replied
 Message 9 by John, posted 10-29-2002 11:08 PM Percy has replied

  
Tranquility Base
Inactive Member


Message 6 of 17 (21053)
10-29-2002 9:15 PM
Reply to: Message 5 by Percy
10-29-2002 8:18 PM


As much as I consider myself a geek, Linux has caused me to appreciate Windows! I let my students fight with Linux and even they're beginning to convert to Windows.
Finally I get to be mainstream in something around here! Having said that, see my postscipt.
PS - anyone who wants to do GUI Linux programming should get into Borland Delphi/Kylix. It is absolutely awesome. We just recompiled our Delphi Windows code in Kylix and now have Linux GUIs which look just like nice Windows ones. Death to Python & Perl. Long-live Borland Delphi. Delphi is the nicest object oriented but mainly component based Windows software development environment and Pascal is easy on the eyes and brain. Forget V-Basic, Java and C++. And there are so many 3rd party tools and components. Using Intraweb you can even write datadriven web-sites in Delphi (Pascal) with drag and drop DB web-access.
[This message has been edited by Tranquility Base, 10-29-2002]

This message is a reply to:
 Message 5 by Percy, posted 10-29-2002 8:18 PM Percy has not replied

Replies to this message:
 Message 7 by Mister Pamboli, posted 10-29-2002 10:14 PM Tranquility Base has replied
 Message 10 by John, posted 10-29-2002 11:32 PM Tranquility Base has replied

  
Mister Pamboli
Member (Idle past 7598 days)
Posts: 634
From: Washington, USA
Joined: 12-10-2001


Message 7 of 17 (21056)
10-29-2002 10:14 PM
Reply to: Message 6 by Tranquility Base
10-29-2002 9:15 PM


I think the gloss is coming off Linux now that the less code-centred users are moving beyond the initial honeymoon period. Tinkering with your OS is fun - but when you screw it up and ou have work to complete it loses its appeal.
You're right about Delphi: it's an excellent language and environment. I have used it since version 1 and have always found it very productive. I don't know how Kylix is doing commercially - it's an interesting concept, but I don't know of anyone doing serious commercial work with it, and it still seems slightly pricey for students and underfunded researchers to use.
But if you like Delphi - have you looked at VB.Net or C#? VB.Net is much more delphi-like in its capabilities. C# is a beautiful and elegant language.
But when Delphi.Net comes out - its in Beta at the mo - you should try that too. Really productive Web services programming and great XML support.

This message is a reply to:
 Message 6 by Tranquility Base, posted 10-29-2002 9:15 PM Tranquility Base has replied

Replies to this message:
 Message 8 by Tranquility Base, posted 10-29-2002 10:34 PM Mister Pamboli has not replied

  
Tranquility Base
Inactive Member


Message 8 of 17 (21062)
10-29-2002 10:34 PM
Reply to: Message 7 by Mister Pamboli
10-29-2002 10:14 PM


Agree 100% although I haven't looked at the .net stuff. We'll see how this pans out. Delphi/Kylix does everyhting I need for now and I have invested the time. I simply couldn't go back to Perl, Fortran or VB. Kylix is free. I just got Delphi 7 with Kylix 3 at about US$100 academic pricing. For programming itself (not web) Delphi 1 or 2 is good enough and is free I think?
PS - maybe Linux is an underground Microsoft plot to make us feel good about paying for software.
[This message has been edited by Tranquility Base, 10-29-2002]

This message is a reply to:
 Message 7 by Mister Pamboli, posted 10-29-2002 10:14 PM Mister Pamboli has not replied

  
John
Inactive Member


Message 9 of 17 (21066)
10-29-2002 11:08 PM
Reply to: Message 5 by Percy
10-29-2002 8:18 PM


quote:
Originally posted by Percipient:
Can you post the text of precisely what you're seeing, including the original command line?
--Percy
[This message has been edited by Percipient, 10-29-2002]

The original command line is simply: make.
gcc -02 -o hydra a-list-of-files-all-ending-in-.o
hydra-mod.o: In Function 'make_to_lower':
hydra-mod.o(.text=0x60d0: undefined reference to '__ctype_tolower'
collect2: ld returned 1 exit status
make: *** [hydra] Error 1
------------------
http://www.hells-handmaiden.com

This message is a reply to:
 Message 5 by Percy, posted 10-29-2002 8:18 PM Percy has replied

Replies to this message:
 Message 12 by Percy, posted 10-30-2002 7:04 AM John has not replied

  
John
Inactive Member


Message 10 of 17 (21068)
10-29-2002 11:32 PM
Reply to: Message 6 by Tranquility Base
10-29-2002 9:15 PM


quote:
Originally posted by Tranquility Base:
As much as I consider myself a geek, Linux has caused me to appreciate Windows! I let my students fight with Linux and even they're beginning to convert to Windows.
I'm moving rapidly in exactly the opposite direction.
Windows is much too fluffie, and does way too much baby-sitting.
Long live xterm!
Besides, I don't think I've had any OS last more than six months without my severely screwing it up.
------------------
http://www.hells-handmaiden.com

This message is a reply to:
 Message 6 by Tranquility Base, posted 10-29-2002 9:15 PM Tranquility Base has replied

Replies to this message:
 Message 11 by Tranquility Base, posted 10-30-2002 1:06 AM John has replied

  
Tranquility Base
Inactive Member


Message 11 of 17 (21069)
10-30-2002 1:06 AM
Reply to: Message 10 by John
10-29-2002 11:32 PM


^ I'll wait for the bounce back. The code my Windows students write gets used by everyone. The code my Linux student still writes is usable by no-one other than himself. When you dress up Linux so that it is easy to use - guess what? It looks like Windows and costs the same but is still always 50 technologies behind whether it's OLE or COM or web or development tools etc.
It's as simple as Ooohhs vs Uhggaaaaaaaaaaaaaahs!
Good luck with your problem. Last dumb Linux problem we had was due to us using the wrong shell.
PS
Here comes a big TB prediction. Which ever OS makes it easier to develop 'Str Trek' like interfaces will be the OS that wins. That is what will drive things. When continuous speaker-independent speech recogniton (for example) comes in the OS with the better development environemnet will kill the competition.
I can just see Linus and his open buddies trying to compete with Microsoft with all its third party development companies (Borland, Dragon etc) making continuous speech recognition work! (not). The third party tools may eventually be developed for Linux but guess what - it will cost the same amount of money!
My main prediction is that the OS to support ultra advanced interfaces will win. 99.99% of us will be using the high tech stuff ("Write me a database driven web site with these three tables and these indexes . . .") whilst there'll be these Linux guys still writing the code into code editors (and loving it of course).
[This message has been edited by Tranquility Base, 10-30-2002]

This message is a reply to:
 Message 10 by John, posted 10-29-2002 11:32 PM John has replied

Replies to this message:
 Message 13 by John, posted 10-30-2002 9:14 AM Tranquility Base has replied

  
Percy
Member
Posts: 22480
From: New Hampshire
Joined: 12-23-2000
Member Rating: 4.8


Message 12 of 17 (21083)
10-30-2002 7:04 AM
Reply to: Message 9 by John
10-29-2002 11:08 PM


Hi John,
It is probably due to some problem in the build or install that you're not picking up the libraries for the builtin functions. Until you straighten that out you may be able to gain access to these libraries using the -L and -l options, eg:
gcc -Llibdir -lname *.o
For example:
gcc -L/usr/lib -lstdc -liberty *.o
This would check for undefined references in the libraries /usr/lib/libstdc.a and /usr/lib/libiberty.a.
There's a unix function called "nm" that will print the symbols in a library, and you can check a directory of libraries for a symbol with a command like this:
nm -A /usr/lib/* | grep tolower
You mentioned recently installing a new version of Linux from Slackware, and they purport to attempting the goal of being closest to pure Unix, though given the variety of Unixes (Unices?) out there I don't know how they do this. Anyway, it is possible that the assumptions that Slackware Linux makes about system library directories are different. Might it even have moved or renamed a library directory? Or possibly a configuration file that gcc depends upon was reinitialized during installation. Just some ideas...
--Percy

This message is a reply to:
 Message 9 by John, posted 10-29-2002 11:08 PM John has not replied

  
John
Inactive Member


Message 13 of 17 (21094)
10-30-2002 9:14 AM
Reply to: Message 11 by Tranquility Base
10-30-2002 1:06 AM


quote:
Originally posted by Tranquility Base:
^ I'll wait for the bounce back. The code my Windows students write gets used by everyone. The code my Linux student still writes is usable by no-one other than himself. When you dress up Linux so that it is easy to use - guess what? It looks like Windows and costs the same but is still always 50 technologies behind whether it's OLE or COM or web or development tools etc.
See, that's just it, TB. I don't dress up Linux. I LIKE command line. I have Gnome, KDE and some other interfaces installed but never use them. I have fluffie word processors but never use them, opting for vi. To me, FVWM2 is almost a perfect interface. I have xterm for most everything and support from graphical stuff like web browsers if I need it.
------------------
http://www.hells-handmaiden.com

This message is a reply to:
 Message 11 by Tranquility Base, posted 10-30-2002 1:06 AM Tranquility Base has replied

Replies to this message:
 Message 14 by Tranquility Base, posted 10-30-2002 5:54 PM John has replied

  
Tranquility Base
Inactive Member


Message 14 of 17 (21132)
10-30-2002 5:54 PM
Reply to: Message 13 by John
10-30-2002 9:14 AM


Fair enough John. I've got a funny sort of like for vi too.
Having said that, I've gone from Mac to SGI Irix to Linux to Windows. And over the last 5 years I've felt that everything about Windows works now, especially the development tools. Although I find MS word too fluffy I prefer it to vi. For programming I of course spend most of the time writing normal code but I prefer being able to drag and drop DB connectivity and buttons and being able to click on the button to take me to the subroutine. I just couldn't go back to just the file of code. The tools have become so nice. You get lists of your variables and lists of your subroutines in separate windows. I really feel some (maybe not you) Linux people like Linux for the sake of it and few objective reasons. OK, you like typing into a black formatless window. Fair enough. The only reason I have any time for Linux at all now is that I can write GUIs and number crunching code in Kylix and can recompile Delphi Windows code for Linux. At the end of the day I prefer using nice GUIs than sets of scripts which I have to type program names and argument lists. I prefer installations that unzip and install themselves. And so far Windows does a better job at this. At the very end of the day I don't care whether it is Windows or Linux but I want GUIs, advanced development tools for GUIs and no OS hassles. Windows meets these requirements, Linux simply doesn't.
[This message has been edited by Tranquility Base, 10-30-2002]

This message is a reply to:
 Message 13 by John, posted 10-30-2002 9:14 AM John has replied

Replies to this message:
 Message 15 by John, posted 10-30-2002 7:37 PM Tranquility Base has not replied

  
John
Inactive Member


Message 15 of 17 (21139)
10-30-2002 7:37 PM
Reply to: Message 14 by Tranquility Base
10-30-2002 5:54 PM


quote:
Originally posted by Tranquility Base:
Having said that, I've gone from Mac to SGI Irix to Linux to Windows.
Apple OS from 7.1 all the way to OS X, which is running next me now. I am using Win98 right now. All other versions of Windows drive me nuts. Well, NT doesn't drive me nuts but I prefer 98. I used to run BSD on an old Mac. And SusePPC on another. Slackware is my all time favorite OS right now.
quote:
And over the last 5 years I've felt that everything about Windows works now, especially the development tools.
Kinda why I like Win98. Everything does seem to work. My girlfriend has XP-- XP Pro no less. I can't so much as sit down in front of it without screaming.
quote:
For programming I of course spend most of the time writing normal code but I prefer being able to drag and drop DB connectivity and buttons and being able to click on the button to take me to the subroutine.
What little code I write, I normally do on the Mac or on Windows but I feel a change coming on.
quote:
I really feel some (maybe not you) Linux people like Linux for the sake of it and few objective reasons.
hmmm... probably true. Linux has been going through an 'its reallllllly cool phase'
------------------
http://www.hells-handmaiden.com

This message is a reply to:
 Message 14 by Tranquility Base, posted 10-30-2002 5:54 PM Tranquility Base has not replied

Replies to this message:
 Message 16 by Percy, posted 10-30-2002 8:04 PM John has replied

  
Newer Topic | Older Topic
Jump to:


Copyright 2001-2023 by EvC Forum, All Rights Reserved

™ Version 4.2
Innovative software from Qwixotic © 2024