Author Topic: issue with SAMBA [ Heee?! Waaaa Yattaaa :: solved ]  (Read 2143 times)

0 Members and 1 Guest are viewing this topic.

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
issue with SAMBA [ Heee?! Waaaa Yattaaa :: solved ]
« on: November 15, 2016, 07:03:23 pm »
I have put a gentoo-x86/32bit stage4 inside a virtual machine
(virtual box) and it's running kernel version 2.6.39

I have added CIFS support in the kernel setup
and emerged mount-cifs utilities (mount.cifs)

then I have
enabled "sharing folder" (D:\idp.do) in WindowsXp machine
and filled the following in /etc/fstab

Code: [Select]
//192.168.1.12/idp.do/ /idp.do   cifs  auto,guest,users,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,credentials=/etc/cifspasswd 0 0

(/etc/cifspasswd is properly set with my Xp password)

Code: [Select]
exp sim # mount /idp.do

apparently it works, I can access files in the shared XP folder through linux

but ...

Code: [Select]
exp # cd sim
exp sim # make
compiling pkg_SPB ... Makefile:13: recipe for target 'work/pkg_SPB.o' failed
make: *** [work/pkg_SPB.o] Error 2

Code: [Select]
exp sim # cd ..
exp sim # cp -r sim /root
exp sim # cd /root/sim
exp sim # make
compiling pkg_SPB ... done

in the first case, compiling files accessed through SAMBA does not work
while compiling the same files accessed through native-ext3 does work

what's wrong? any idea ?  :-//
« Last Edit: November 15, 2016, 10:11:55 pm by legacy »
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: issue with SAMBA
« Reply #1 on: November 15, 2016, 07:31:58 pm »
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: issue with SAMBA
« Reply #2 on: November 15, 2016, 07:33:25 pm »
@blueskull
latek has the same issue and it claims it's not able to find a dot tek (ascii) file
nano can open it (through) CIFS, but pdflatek (launched by Makefile) fails  :-// :-// :-//
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: issue with SAMBA
« Reply #3 on: November 15, 2016, 07:48:03 pm »
Code: [Select]
exp latek-example # ls
Makefile  source  tdc.tex  tweaklist.sty  work

tdc.tex exists !

Code: [Select]

exp latek-example # make
building tdc.pdf ... This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
! I can't find file `tdc.tex'.
<*> tdc.tex
           
(Press Enter to retry, or Control-D to exit)
Please type another input file name:

but inside the shared-CIFS folder, latekpdf is not able to see the file  :palm: :palm: :palm:

Code: [Select]
exp latek-example # cat Makefile
TEX=tdc.tex

PDF=$(TEX:.tex=.pdf)
AUX=work/$(TEX:.tex=.aux.txt)
LOG=work/$(TEX:.tex=.log.txt)
DBG=work/$(TEX:.tex=.dbg.txt)
OPT=-file-line-error -output-directory ./work

all: $(PDF)

%.pdf: %.tex
@echo -n "building $(PDF) ... "
@pdflatex $(OPT) $<
#1> $(LOG) 2> $(DBG)
@pdflatex $(OPT) $<
#1> $(LOG) 2> $(DBG)
@echo "done"

clean:
@rm -f work/$(PDF) $(AUX) $(LOG) $(DBG)


dbg:
@echo "{ work/$(PDF) $(AUX) $(LOG) $(DBG) }"

Code: [Select]
exp latek-example # file tdc.tex                 
tdc.tex: LaTeX 2e document, ASCII text, with very long lines


WTF?!?!?!?  :wtf: :wtf: :wtf:
« Last Edit: November 15, 2016, 10:07:57 pm by legacy »
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: issue with SAMBA
« Reply #4 on: November 15, 2016, 07:52:11 pm »
Code: [Select]
exp latek-example # file tdc.tex                 
tdc.tex: LaTeX 2e document, ASCII text, with very long lines
it works

Code: [Select]
exp latek-example # nano tdc.tex                 
it works, I can edit/save the file

Code: [Select]
exp latek-example # pdflatex -file-line-error -output-directory ./work tdc.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
! I can't find file `tdc.tex'.
<*> tdc.tex
           
(Press Enter to retry, or Control-D to exit)
Please type another input file name:
! Emergency stop.
<*> tdc.tex
           
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on ./work/texput.log.
it doesn't see the file


so, it's not Make(file), it's gcc/ghdl/pdflatex

what is the difference between them ?

why /sbin/file and /usr/bin/nano have success
while gcc/ghdl/pdflatex fail ?!?!?
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: issue with SAMBA
« Reply #5 on: November 15, 2016, 08:10:50 pm »
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: issue with SAMBA
« Reply #6 on: November 15, 2016, 08:30:55 pm »
solution

Quote
I had similar problems and found that adding the options
nobrl and noserverino to the mount line fixed the problem.
Thus I am now using the follow mount command

Code: [Select]
mount -t cifs -ousername=<server_user_name>,uid=<local_user_id>,gid=<local_group>,file_mode=0777,dir_mode=0777,nobrl,noserverino //server/path /mounts/localmountpoint

added: { unix, nobrl, noserverino }
latek now works  :-+ :-+ :-+
 

Offline apelly

  • Supporter
  • ****
  • Posts: 1061
  • Country: nz
  • Probe
Re: issue with SAMBA
« Reply #7 on: November 15, 2016, 09:00:08 pm »
If I had to guess (and I know I don't) I'd say there's some sort of optimisation checking for file changes that doesn't work on ntfs.
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: issue with SAMBA
« Reply #8 on: November 15, 2016, 09:56:26 pm »
Code: [Select]
@ghdl -r test  --wave=work/tbencha.ghw --stop-time=10us

Code: [Select]
ghdl: compilation error

******************** GHDL Bug occured ****************************
Please report this bug on [url]http://gna.org/projects/ghdl[/url]
GHDL release: GHDL 0.29 (20100109) [Sokcho edition]
Compiled with GNAT Version: 4.3.5
In directory: /idp.do/cpld-fpga/soc/my_lcd_stn/sim/
Command line:
ghdl -r test --wave=work/tbencha.ghw --stop-time=100us
Exception STORAGE_ERROR raised
Exception information:
Exception name: STORAGE_ERROR
Message: stack overflow (or erroneous memory access)
Call stack traceback locations:
0x811387b
******************************************************************


ghdl does not work as expected on CIFS share :palm: :palm: :palm: :palm:
« Last Edit: November 15, 2016, 10:07:08 pm by legacy »
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: issue with SAMBA
« Reply #9 on: November 15, 2016, 10:06:13 pm »
Code: [Select]
//192.168.1.12/idp.do  /idp.do   cifs uid=0,guid=0,noauto,nobrl,noserverino,rw,iocharset=utf8,credentials=/etc/cifspasswd 0 0

this works both on latek and ghdl  :-+ :-+ :-+
(removed some extra features)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf