|
|
|
|
Aprés avoir configurer le fichier Makefile avec le chemin de pwd : /usr/local/samba/
quand je lance make ça donne plusieur ligne : affichant une error : UX:sed: ERROR: output line too
voila un extrait du fichier makefile ou ily a la commande sed
.c.o:
@if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
@echo Compiling $*.c
@$(CC) -I. -I$(srcdir) $(FLAGS) -c $< \
-o $@
-mv `echo $@ | sed 's%^.*/%%g'` $@
# this adds support for precompiled headers. To use it, install a snapshot
# of gcc-3.4 and run 'make pch' before you do the main build.
pch:
rm -f $(srcdir)/include/includes.h.gch
dynconfig.po: dynconfig.c Makefile
@if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
@echo Compiling $*.c with
@$(CC) -I. -I$(srcdir) $(FLAGS) $(PATH_FLAGS) -c $< -o $*.po
-mv `echo $@ | sed -e 's%^.*/%%g' -e 's%\.po$$%.o%'` $@
lib/version.o: lib/version.c include/version.h
@if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
@echo Compiling $*.c with
@$(CC) -I. -I$(srcdir) $(FLAGS) $(PATH_FLAGS) -c $< -o $*.po
-mv `echo $@ | sed -e 's%^.*/%%g' -e 's%\.po$$%.o%'` $@
.c.po:
@if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
@echo Compiling $*.c with
@$(CC) -I. -I$(srcdir) $(FLAGS) -c $< -o $*.po
-mv `echo $@ | sed -e 's%^.*/%%g' -e 's%\.po$$%.o%'` $@
est qu'il y a qlq qui peut me dire ou le probleme et comment le corriger et merci
Répondre à Koulci
|
Salut [Dal],
|
Salut Jourria,
|
Salut Jourria,
|
Salut Jourria,
|
Salut Jourria,
*** Makefile.orig Wed Jan 7 17:06:28 1998 --- Makefile Thu Jan 8 10:13:19 1998 *************** *** 722,728 **** .c.o: $(INCLUDES) @echo Compiling $*.c ! @$(CC) $(CFLAGS) -c $(srcdir)$*.c -o $(srcdir)$*.o smbd: $(SMBDOBJ) $(ARCFOUR_OBJ) @echo Linking smbd --- 722,731 ---- .c.o: $(INCLUDES) @echo Compiling $*.c ! @$(CC) $(CFLAGS) -c $(srcdir)$*.c ! cp "`basename $*.o`" zzz.o ! cp zzz.o $(srcdir)$*.o ! smbd: $(SMBDOBJ) $(ARCFOUR_OBJ) @echo Linking smbd Puis j'ai appliqué le patch comme çà (Patch version 2.1) : patch < monpatch.patch Celà a eu pour effet de créer une sauvegarde du fichier Makefile (Makefile.orig) et d'appliquer les changements sur Makefile (il y a un warning concernant des lignes redondantes, je pense qu'on peut l'ignorer). D'après l'auteur de ce patch, cette version de Samba ainsi patchée compile sur son système avec le compilateur d'origine. A toi de jouer :) Dal N.B.: pour connaître la version d'un logiciel que tu utilises, en général tu l'obtiens en tapant la commande suivie de l'option "--version"
|
Salut Jourria,
|
Répondre à [Dal]
|
Salut Jourria,
|
Salut Jourria,
workgroup = MYGROUP [tmp] comment = temporary files path = /tmp read only = yes Tu remplaces "MYGROUP" par le groupe auquel appartiennent tes machines Windows. Tu suis les indications figurant dans le fichier UNIX_INSTALL.txt (STEP 3 à STEP 7). Celà devrait te permettre d'accéder au répertoire "/tmp" de ton serveur en lecture seule, le nom du share étant \\serveursmb\tmp où "serveursmb" est le nom netbios de ton serveur samba. Il faut que la syntaxe soit bonne ("testparm"), que le serveur Samba soit lancé, etc. Si tu ne réussis pas à te connecter depuis une machine Windows à ton share "tmp", tu suis les indications figurant dans le fichier "DIAGNOSIS.txt" pour trouver l'origine de ton problème. Une fois que celà fonctionne, tu peux complexifier ton smb.conf, rajouter un serveur WINS, etc. Re-teste à chaque modification. Dal
|
Salut Jourria,
|