LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-16-2001, 02:23 PM   #1
MacDaddy
LQ Newbie
 
Registered: Jul 2001
Posts: 8

Rep: Reputation: 0
GNU make problems


Hi,

Having problems with the "make" command. I'm trying to compile some modules for smbfs which is a mount utility for LinNeighborhood I believe. When I compile, it says at the very end "error 1". I want to know how to fix this. One person in another forum (haven't heard from him/her yet) suggested that I use the "./configure" command. I don't know how to use that, so if somebody could help me with that as well, it would be most appreciated. All I know is it's supposed to be used in the terminal. :P

Anyhow, here is what it looks like when I compile:

[macdaddy@192-168-1-2 smbfs-2.0.2]$ make
for i in util man; do make -C $i; done
make[1]: Entering directory `/home/macdaddy/smbfs-2.0.2/util'gcc -O2 -DHAVE_KERNELD -DVERSION=\"2.0.2\" -Wall -c -o smbmount.o smbmount.c
smbmount.c: In function `parse_args':
smbmount.c:101: structure has no member named `addr'
smbmount.c:104: structure has no member named `server_name'
smbmount.c:111: structure has no member named `server_name'
smbmount.c:111: structure has no member named `server_name'
smbmount.c:111: structure has no member named `server_name'
smbmount.c:114: structure has no member named `client_name'
smbmount.c:120: structure has no member named `client_name'
smbmount.c:120: structure has no member named `client_name'
smbmount.c:120: structure has no member named `client_name'
smbmount.c:123: structure has no member named `username'
smbmount.c:129: structure has no member named `username'
smbmount.c:129: structure has no member named `username'
smbmount.c:129: structure has no member named `username'
smbmount.c:139: structure has no member named `domain'
smbmount.c:145: structure has no member named `domain'
smbmount.c:145: structure has no member named `domain'
smbmount.c:145: structure has no member named `domain'
smbmount.c:189: structure has no member named `max_xmit'
smbmount.c:192: structure has no member named `password'
smbmount.c:197: structure has no member named `password'
smbmount.c:197: structure has no member named `password'
smbmount.c:197: structure has no member named `password'
smbmount.c: In function `main':
smbmount.c:525: structure has no member named `service'
smbmount.c:526: structure has no member named `service'
smbmount.c:528: structure has no member named `root_path'
smbmount.c:528: structure has no member named `root_path'
smbmount.c:528: structure has no member named `root_path'
smbmount.c:532: structure has no member named `username'
smbmount.c:536: structure has no member named `username'
smbmount.c:536: structure has no member named `username'
smbmount.c:536: structure has no member named `username'
smbmount.c:537: structure has no member named `username'
smbmount.c:540: structure has no member named `username'
smbmount.c:543: structure has no member named `username'
smbmount.c:547: structure has no member named `username'
smbmount.c:547: structure has no member named `username'
smbmount.c:547: structure has no member named `username'
smbmount.c:548: structure has no member named `username'
smbmount.c:551: structure has no member named `max_xmit'
smbmount.c:558: structure has no member named `addr'
smbmount.c:559: structure has no member named `addr'
smbmount.c:559: `SMB_PORT' undeclared (first use in this function)
smbmount.c:559: (Each undeclared identifier is reported only once
smbmount.c:559: for each function it appears in.)
smbmount.c:561: structure has no member named `domain'
smbmount.c:561: structure has no member named `domain'
smbmount.c:561: structure has no member named `domain'
smbmount.c:585: structure has no member named `addr'
smbmount.c:587: structure has no member named `fd'
smbmount.c:588: structure has no member named `fd'
smbmount.c:606: structure has no member named `password'
smbmount.c:611: structure has no member named `password'
smbmount.c:611: structure has no member named `password'
smbmount.c:611: structure has no member named `password'
smbmount.c:616: structure has no member named `password'
smbmount.c:619: structure has no member named `server_name'
smbmount.c:621: structure has no member named `server_name'
smbmount.c:628: structure has no member named `server_name'
smbmount.c:628: structure has no member named `server_name'
smbmount.c:628: structure has no member named `server_name'
smbmount.c:629: structure has no member named `server_name'
smbmount.c:633: structure has no member named `client_name'
smbmount.c:635: structure has no member named `client_name'
smbmount.c:642: structure has no member named `client_name'
smbmount.c:642: structure has no member named `client_name'
smbmount.c:642: structure has no member named `client_name'
smbmount.c:643: structure has no member named `client_name'
smbmount.c:651: structure has no member named `fd'
smbmount.c:657: structure has no member named `fd'
make[1]: *** [smbmount.o] Error 1
make[1]: Leaving directory `/home/macdaddy/smbfs-2.0.2/util'
make[1]: Entering directory `/home/macdaddy/smbfs-2.0.2/man'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/macdaddy/smbfs-2.0.2/man'



Thanks for any help!

-Gordon
 
Old 08-16-2001, 06:56 PM   #2
joe1011010
Member
 
Registered: Aug 2001
Location: UK
Posts: 48

Rep: Reputation: 15
Not a big expert, but try this link for the make manual...

http://www.gnu.org/manual/make/

The make command is running against a file called Makefile (I think). You should be able to view this. By reading the manual, you should be able to see which files make is compiling. You could then try each in turn to see which gives the error.

This is probably over the top, have you checked the info for the stuff you are compiling?

Joe
 
Old 08-16-2001, 07:23 PM   #3
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Re: GNU make problems

Quote:
Originally posted by MacDaddy
One person in another forum (haven't heard from him/her yet) suggested that I use the "./configure" command. I don't know how to use that, so if somebody could help me with that as well, it would be most appreciated.
The typical set of command when you are installing from source is you untar your files to some directory, say called myDir, then change into that directory using cd myDir then you literally type
Code:
./configure
This runs the configure script in the current directory that builds a set of good make files so that the software will compile on your system. You typically then run make (to compile the software) then sometimes make test then make install

Hopefully all your problems are just from missing the ./configure step!

HTH

Jamie...
 
Old 08-16-2001, 08:22 PM   #4
MacDaddy
LQ Newbie
 
Registered: Jul 2001
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for the replies.

I checked out the manual at gnu.org, and that didn't help at all. Also have previously read the readme for the stuff I am compiling, and that has nothing in it. I tried contacting the software developer, but no reply yet.

As for the ./configure command, it says this when I type it in:

[root@192-168-1-2 smbfs-2.0.2]# ./configure
bash: ./configure: No such file or directory

I have no idea what to do and I am completly stuck.

-Gordon
 
Old 08-17-2001, 02:43 AM   #5
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
does it have an autogen.sh? when a packages is still in development, the configure script is generated by running ./autogen.sh.
 
Old 08-17-2001, 04:40 AM   #6
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Quote:
Originally posted by MacDaddy
As for the ./configure command, it says this when I type it in:

[root@192-168-1-2 smbfs-2.0.2]# ./configure
bash: ./configure: No such file or directory
Were you in the correct directory when you ran the command? You should have been in the directory where you untar'ed the files to.

cheers

Jamie...
 
Old 08-17-2001, 01:19 PM   #7
MacDaddy
LQ Newbie
 
Registered: Jul 2001
Posts: 8

Original Poster
Rep: Reputation: 0
Yeah, I am in the correct directory when I execute the make command.

There's no autogen.sh. Dunno what the problem could be. This is really wierd. Perhaps I am missing something that should be installed for GNU make?
 
Old 08-17-2001, 04:56 PM   #8
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Quote:
Originally posted by MacDaddy
YPerhaps I am missing something that should be installed for GNU make?
Na - make is running correctly. Its the input being given to make that is incorrect. I'd try downloading the source again, perhaps get a different version and see if thats any different. And reread any/all the help/readme/FAQ files that come with the source.

cheers

Jamie...
 
Old 08-17-2001, 08:58 PM   #9
MacDaddy
LQ Newbie
 
Registered: Jul 2001
Posts: 8

Original Poster
Rep: Reputation: 0
Yeah, I guess it is running correctly. Must be the makefile. Still waiting for that reply from the developer...hopefully. hehe

Thanks again for the help guys. It's really appreciated.

-Gordon
 
Old 08-26-2001, 03:09 PM   #10
joe1011010
Member
 
Registered: Aug 2001
Location: UK
Posts: 48

Rep: Reputation: 15
Sorry, been away... are you still interested in this?

My comment about the MAKE manual is that you should be able to work your way through and find the point at which this is failing.

I do not know how much you know about compiling programs. It seems to me that you are trying to compile smbmount.c (the Makefile gives the details about which files it is using). The messages point to line 101 of smbmount.c being part of a variable structure which has not been defined yet, so I assume there must be a file that should be processed before smbmount.c

Perhaps you could post some more lines...

The Makefile contains some lines starting "util:" - post this paragraph.

Post the lines around line 101 in smbmount.c

(Sorry, I am not near my Linux box, or I would try it myself...)

Joe
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Which GNU Make???? munichtexan Linux - Newbie 22 11-20-2005 10:37 AM
Need help installing gnu make 3.80.0 AljoshaNL Linux - Software 0 08-19-2005 05:16 AM
Shell commands in GNU make MadCactus Programming 2 02-19-2004 05:36 AM
Shell commands in GNU make? MadCactus Linux - Software 0 02-17-2004 04:11 PM
How to do a make? GNU Krell steve65 Linux - Software 6 10-22-2002 11:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:55 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
Open Source Consulting | Domain Registration