Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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'
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?
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!
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.
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.
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...)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.