LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-06-2003, 01:03 PM   #1
vladilinsky
LQ Newbie
 
Registered: Mar 2003
Location: Ponoka Ab Canada
Distribution: slackware current
Posts: 27

Rep: Reputation: 15
How to use GCC


Hello,
I am new to linux so i don't know much, i had sound working when i was useing a sb 16 but now i am running a digifire 7.1 and don't have sound. i was told once to download the cirrus logic drivers witch i did. but i need to turn it into a module now, i belive i need to use gcc to do it but i keep getting error messages whenever i try. any help would be appreceated thanks
 
Old 03-06-2003, 01:50 PM   #2
franki_boy
LQ Newbie
 
Registered: Feb 2003
Posts: 17

Rep: Reputation: 0
do gcc filename in konsole
if its gets compiled with no errors
then give a.out
 
Old 03-06-2003, 02:43 PM   #3
vladilinsky
LQ Newbie
 
Registered: Mar 2003
Location: Ponoka Ab Canada
Distribution: slackware current
Posts: 27

Original Poster
Rep: Reputation: 15
i have tried that i get many errors the most comman being
"derefrencing pointer to incompleat type"
 
Old 03-06-2003, 08:57 PM   #4
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
If the cirrus drivers came with instructions, read them. Typically, when compiling anything that someone has distributed, there is a Makefile provided, so you don't actually need to run gcc yourself at all (though there are exceptions). Most of the time, you do:

./configure
make
(become root)
make install

Again, start by reading the directions. If it didn't come with any, check the website or ftp server you got them from, maybe there are instructions there.
 
Old 03-06-2003, 11:08 PM   #5
vladilinsky
LQ Newbie
 
Registered: Mar 2003
Location: Ponoka Ab Canada
Distribution: slackware current
Posts: 27

Original Poster
Rep: Reputation: 15
I have looked, there is no Makefile and no help or faq. all i have are about 5 .c files and 5 .h files.
 
Old 03-06-2003, 11:16 PM   #6
vladilinsky
LQ Newbie
 
Registered: Mar 2003
Location: Ponoka Ab Canada
Distribution: slackware current
Posts: 27

Original Poster
Rep: Reputation: 15
I just found that the alsa drivers support my sound card, but i have a new problem now. i follow the instructions and it is fine up until i try
"make"
i get an error saying

in: creating symbolic link '/mnt/hd2/Linux/alsa/driver-0.9.0rc7/modules/snd-hwdep.o' to '../acore/snd-hwdep.o': Opeation not permitted
 
Old 03-07-2003, 07:18 AM   #7
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Not sure what to tell you... is your sound card soundblaster-compatible?

If Alsa supports your card, then why do you still need to compile the Cirrus driver?
 
Old 03-07-2003, 10:19 AM   #8
vladilinsky
LQ Newbie
 
Registered: Mar 2003
Location: Ponoka Ab Canada
Distribution: slackware current
Posts: 27

Original Poster
Rep: Reputation: 15
i don't need to compule the cirrus driver anymore (i still wouldn't mind just for my education) but i need to compile alsa now. and i get much farther with alsa. but when i try to run "make" to compile alsa i get the above error.
The sound card to my knowledge is not soundblaster compatible.
it is a hercules digifire 7.1 and uses the cirrus logic soundfusion 4624 chip, cirrus gives no enduser techsupport.
 
Old 03-07-2003, 10:26 AM   #9
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Gotta love hardware manufacturers that pretend Linux doesn't exist.

Hmm... it looks like the error you got compiling Alsa probably has to do with write permission. Usually it's a good idea to compile stuff as a normal user (rather than root), but in the case of modules, you'll probably need to do it as root, so it will have permission to write the module to the appropriate /lib/modules directory.

If you already are compiling as root, then I am clueless I don't have any Slackware experience, so hopefully someone else can lend you a hand.
 
Old 03-07-2003, 11:58 AM   #10
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
agree check that you have write permission where you're trying to write the link.

also, this thread may be of help:

http://www.linuxquestions.org/questi...threadid=47719
 
Old 03-07-2003, 12:16 PM   #11
vladilinsky
LQ Newbie
 
Registered: Mar 2003
Location: Ponoka Ab Canada
Distribution: slackware current
Posts: 27

Original Poster
Rep: Reputation: 15
It was that thread that got me as far as i am. i am trying it as root and the same things happens
as root users i should have permission to write wherever i feel like right?

i do realy appreceate all the help you've been giveing me
 
Old 03-07-2003, 01:30 PM   #12
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
hmm... yes, a root user should have full write permissions.

sorry I'm not more familiar with alsa - maybe try an older version? also, make sure you have all the necessary devel tools - have no idea whether that could be at fault, but it could not hurt.

here is an alsa guide from gentoo:
http://www.gentoo.org/doc/en/alsa-guide.xml

also run a search for something like 'alsa compile' or similar on their board - there are a lot of knowledgeable users there with a lot of compiling experience :

http://forums.gentoo.org/index.php
 
Old 03-07-2003, 02:36 PM   #13
vladilinsky
LQ Newbie
 
Registered: Mar 2003
Location: Ponoka Ab Canada
Distribution: slackware current
Posts: 27

Original Poster
Rep: Reputation: 15
I figured it out. its kinda stupid what happened was i had another old 8 gig hd hdd1that i used for all my downloads. for somereason i extracted alsa on it, and when it tryed to link to my main hdb2 it got angry.
downside still no sound, but im sure i just loaded the wronge module thanks for your help
 
Old 03-07-2003, 03:04 PM   #14
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 03:13 PM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 12:38 PM
running software built with gcc 3.0.2 on Redhat 8 - gcc 3.2 dst1989 Linux - Software 3 03-08-2004 11:23 PM
a doubt with host gcc and arm-linux-gcc renjithgopal Linux - General 1 09-11-2003 05:02 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 01:07 AM


All times are GMT -5. The time now is 10:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration