Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

why does PAR want make.mo anyway?

by danmcb (Monk)
on Sep 14, 2007 at 15:23 UTC ( [id://639028]=perlquestion: print w/replies, xml ) Need Help??

danmcb has asked for the wisdom of the Perl Monks concerning the following question:

Hi

Been trying to build a PAR archive on Ubuntu, there seems to be an issue with it looking for .mo files for make:

open("/usr/share/locale/en_GB/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT (No such file or directory)

the directory is there, there are other .mo files - but none for make

Why does it want this? How do I stop it? where do I get these files? (I cannot seem to find any reference to them in any of the Ubuntu/Debian info. It seems they should have been installed with make, but they are not.)

Replies are listed 'Best First'.
Re: why does PAR want make.mo anyway?
by almut (Canon) on Sep 14, 2007 at 17:11 UTC

    Those .mo files are compiled message catalogs (in the context of national language support). More specifically, MO stands for "machine object", as opposed to PO for "portable object" — see the GNU gettext manual for in-depth background info.

    What I'm wondering is... are you sure this is really the reason that PAR is failing? Are you somehow trying to include make in the package?  What you've posted looks like a line of strace output (rather than an error message of PAR (though I could be wrong...)). If so, it might not indicate the actual problem... In other words, it's pretty normal for a program to look for all kinds of files and not find them.

    What command did you run, and how exactly does it "not work"?

      hi almut

      you're quite right. I'm to build a PAR of a catalyst application.

      I just got this when I do "make catalyst_par

      Writing PAR "engoi.par"
      make: *** catalyst_par Error 2
      

      So then I do "strace make catalyst_par" and get a whole lot of output, ending with this:

      Writing PAR "engoi.par"
      {WIFEXITED(s) && WEXITSTATUS(s) == 2}, 0, NULL) = 9853
      --- SIGCHLD (Child exited) @ 0 (0) ---
      sigreturn()                             = ? (mask now [])
      open("/usr/share/locale/en_GB.utf8/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
      open("/usr/share/locale/en_GB/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
      open("/usr/share/locale/en.utf8/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
      open("/usr/share/locale/en/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
      open("/usr/share/locale-langpack/en_GB.utf8/LC_MESSAGES/make.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
      open("/usr/share/locale-langpack/en_GB/LC_MESSAGES/make.mo", O_RDONLY) = 4
      fstat64(4, {st_mode=S_IFREG|0644, st_size=37510, ...}) = 0
      mmap2(NULL, 37510, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7c9e000
      close(4)                                = 0
      write(2, "make: ", 6make: )                   = 6
      write(2, "*** catalyst_par Error 2", 26*** catalyst_par Error 2) = 26
      write(2, "\n", 1
      )                       = 1
      rt_sigprocmask(SIG_BLOCK, HUP INT QUIT TERM XCPU XFSZ, NULL, 8) = 0
      rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
      chdir("/home/daniel/work/engoi/trunk/Engoi") = 0
      close(1)                                = 0
      exit_group(2)                           = ?
      Process 9838 detached
      
      

      So I'm chasing the errors I can see, but these may turn out not to be the real issue. (In fact, on closer inspection, there are many files that are not found, as you say, and that doesn't seem to stop the build.)

      So, what is the issue? I don't see anything else in the output that looks like an error. If you have any ideas as to what may be, I'm most grateful.

        make.mo is a red herring -- you're just seeing the output of make localizing a message for your locale. I'm no catalyst expert but have you tried the catalyst support site? It appears this has come up before and maybe a newer version of PAR is needed.

        -derby

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://639028]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-25 17:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found