Click to See Complete Forum and Search --> : GNU Make problems.


MacDaddy
08-08-2001, 02:21 PM
Hi all,

Whenever I try to compile stuff with GNU make, I always get errors. I have all of the GNU Make dependencies installed. Here is the error code I get:

[root@maclinuxbox 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
make[1]: gcc: Command not found
make[1]: *** [smbmount.o] Error 127
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'

As some of you can see, I'm trying to install the Samba mount utilities for LinNeighborhood. Any help on this one would be appreciated, as I really need to install this stuff. Thanks!

-Gordon

bdg1983
08-08-2001, 07:19 PM
make[1]: gcc: Command not found

Seems to me you don't have a c (gcc) compiler installed.

Did you install the development packages?

MacDaddy
08-08-2001, 09:21 PM
Ok, installed the GCC compiler, but now I have another error (compiling the same modules):

[root@maclinuxbox 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'

MacDaddy
08-10-2001, 11:17 PM
Could anybody please help me on this one?
:)

pbharris
08-10-2001, 11:28 PM
hello,
It really looks like you are not seeing the header files...
what does the makefile look like?

MacDaddy
08-11-2001, 02:43 AM
I don't know exactly what you mean by what does the makefile look like, so I'll just assume you want me to paste the contents of it? :) There are also two other make files: one in the man directory and one in the util directory. I'm just gonna post the one in the main directory. Thanks for the help.

Here it is:

#
# Makefile for the linux smb-filesystem routines.
#

VERSION = 2.0.2

# If you do not have kerneld support, please comment out the following
# line. It is STRONGLY recommended to enable kerneld support. If you do
# not have kerneld support enabled, smbmount will try to execute
# modprobe. If you make smbmount suid root, modprobe will be executed
# from a suid root program, which is probably a bad security hole.
KERNELD = -DHAVE_KERNELD

TOPDIR = $(shell pwd)
BINDIR = /usr/bin
MANDIR = /usr/local/man
SUBDIRS = util man

export INCLUDES VERSION KERNELD BINDIR MANDIR

all:
for i in $(SUBDIRS); do make -C $$i; done

install:
for i in $(SUBDIRS); do make -C $$i install; done

dep:
for i in $(SUBDIRS); do make -C $$i dep; done

clean:
rm -f `find . -type f -name '*.o' -print`
rm -f `find . -type f -name '*~' -print`
rm -f `find . -type f -name '.depend' -print`
rm -f `find . -type f -name '*.out' -print`
for i in $(SUBDIRS); do make -C $$i clean; done

mrproper: clean
rm -f *.tgz
make -C util mrproper

modules: smbfs.o

SRCPATH=$(shell pwd)
SRCDIR=$(shell basename $(SRCPATH))
DISTFILE=$(SRCDIR).tgz

dist: mrproper
(cd ..; \
tar cvf - $(SRCDIR) | \
gzip -9 > $(DISTFILE); \
mv $(DISTFILE) $(SRCDIR))

#
# include a dependency file if one exists
#
ifeq (.depend,$(wildcard .depend))
include .depend
endif

MacDaddy
08-13-2001, 04:22 PM
Anybody know what the problem could be?