[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problme with cp-command
From: |
Peter Landgren |
Subject: |
Re: problme with cp-command |
Date: |
Thu, 5 Jul 2007 17:19:43 +0200 |
User-agent: |
KMail/1.9.6 |
Den Thursday 05 July 2007 17.02.38 skrev Eric Blake:
> Please keep replies on the list, so that others may contribute or see the
> resolution.
>
> According to Peter Landgren on 7/5/2007 8:55 AM:
> > OK, I know that, but my problems come when I do a normal su and "make
> > install":
> >
> > The first three cp-commands are OK, but not the fourth:
> >
> > address@hidden sip-4.6]$ su
> > Password:
> > address@hidden sip-4.6]# make install
> > make[1]: Entering directory `/home/progman/src/sip-4.6/sipgen'
> > cp -f sip /usr/bin/sip
> > make[1]: Leaving directory `/home/progman/src/sip-4.6/sipgen'
> > make[1]: Entering directory `/home/progman/src/sip-4.6/siplib'
> > cp -f sip.so /usr/lib/python2.5/site-packages/sip.so
> > strip /usr/lib/python2.5/site-packages/sip.so
> > cp -f sip.h /usr/include/python2.5/sip.h
> > make[1]: Leaving directory `/home/progman/src/sip-4.6/siplib'
> > cp -f sipconfig.py /usr/lib/python2.5/site-packages/sipconfig.py
> > cp: setting attributes for
> > "/usr/lib/python2.5/site-packages/sipconfig.py": Operationen stöds ej
> > make: *** [install] Fel 1
> > address@hidden sip-4.6]#
>
> Can you run the same command via strace, and see which syscall was failing?
Something like this:
(It's also in the attached file.)
-----------------------------------------------------------------------------------------------------------------
address@hidden sip-4.6]# ltrace cp -f
sipconfig.py /usr/lib/python2.5/site-packages/sipconfig.py > trace.txt
__libc_start_main(0x804ae32, 4, 0xbf8625a4, 0x8065bd0, 0x8065bc0
<unfinished ...>
setlocale(6, "") = "sv_SE.UTF-8"
bindtextdomain("coreutils", "/usr/share/locale") = "/usr/share/locale"
textdomain("coreutils") = "coreutils"
__cxa_atexit(0x804f7f9, 0, 0, 0xb7ee1ff4, 0xbf862508) = 0
geteuid() = 0
getenv("SIMPLE_BACKUP_SUFFIX") = NULL
getopt_long(4, 0xbf8625a4, "abdfHilLprst:uvxPRS:T", 0x8065f20, NULL) = 102
getopt_long(4, 0xbf8625a4, "abdfHilLprst:uvxPRS:T", 0x8065f20, NULL) = -1
malloc(40) = 0x806e400
calloc(131, 8) = 0x806e430
__xstat64(3, "/usr/lib/python2.5/site-packages"..., 0xbf862348) = 0
__xstat64(3, "sipconfig.py", 0xbf8621d0) = 0
__xstat64(3, "/usr/lib/python2.5/site-packages"..., 0xbf862170) = 0
open64("sipconfig.py", 0, 00) = 3
__fxstat64(3, 3, 0xbf861f18) = 0
open64("/usr/lib/python2.5/site-packages"..., 513, 00) = 4
__fxstat64(3, 4, 0xbf861f78) = 0
__fxstat64(3, 3, 0xbf861f78) = 0
getpagesize() = 4096
read(3, "# This module is intended to be "..., 4096) = 4096
write(4, "# This module is intended to be "..., 4096) = 4096
read(3, " 'LIBS': "..., 4096) = 4096
write(4, " 'LIBS': "..., 4096) = 4096
read(3, " self._macro = []\n\n if is"..., 4096) = 4096
write(4, " self._macro = []\n\n if is"..., 4096) = 4096
read(3, " # We also want to treat li"..., 4096) = 4096
write(4, " # We also want to treat li"..., 4096) = 4096
read(3, "d(self.config.py_lib_dir)\n\n "..., 4096) = 4096
write(4, "d(self.config.py_lib_dir)\n\n "..., 4096) = 4096
read(3, " cflags.extend(self.optional_l"..., 4096) = 4096
write(4, " cflags.extend(self.optional_l"..., 4096) = 4096
read(3, "pmap[mod]))\n\n "..., 4096) = 4096
write(4, "pmap[mod]))\n\n "..., 4096) = 4096
read(3, "name of the Qt4 library correspo"..., 4096) = 4096
write(4, "name of the Qt4 library correspo"..., 4096) = 4096
read(3, "instead\n then its content"..., 4096) = 4096
write(4, "instead\n then its content"..., 4096) = 4096
read(3, " cppflags.append("-I" + _q"..., 4096) = 4096
write(4, " cppflags.append("-I" + _q"..., 4096) = 4096
read(3, "et))\n\n\nclass ParentMakefile(Make"..., 4096) = 4096
write(4, "et))\n\n\nclass ParentMakefile(Make"..., 4096) = 4096
read(3, "sole=0, qt=0, opengl=0, threaded"..., 4096) = 4096
write(4, "sole=0, qt=0, opengl=0, threaded"..., 4096) = 4096
read(3, "f not self.static:\n i"..., 4096) = 4096
write(4, "f not self.static:\n i"..., 4096) = 4096
read(3, "anlib = self.optional_string("RA"..., 4096) = 4096
write(4, "anlib = self.optional_string("RA"..., 4096) = 4096
read(3, "[:5] == 'linux' or\n "..., 4096) = 4096
write(4, "[:5] == 'linux' or\n "..., 4096) = 4096
read(3, " """\n if self.genera"..., 4096) = 4096
write(4, " """\n if self.genera"..., 4096) = 4096
read(3, "":\n vers = st"..., 4096) = 4096
write(4, "":\n vers = st"..., 4096) = 4096
read(3, "hot is indicated by a\n negati"..., 4096) = 4096
write(4, "hot is indicated by a\n negati"..., 4096) = 4096
read(3, " self.pathstack.append(se"..., 4096) = 4096
write(4, " self.pathstack.append(se"..., 4096) = 4096
read(3, " rstart = rstart + 1\n "..., 4096) = 4078
write(4, " rstart = rstart + 1\n "..., 4078) = 4078
read(3, "", 4096) = 0
close(4) = 0
close(3) = 0
free(NULL) = <void>
free(NULL) = <void>
malloc(0) = 0x806e200
malloc(256) = 0x806e850
realloc(0x806e200, 136) = 0x806e958
memset(0x806e958, '\000', 136) = 0x806e958
malloc(8) = 0x806e200
calloc(1, 12) = 0x806e210
__ctype_get_mb_cur_max(1, 12, 136, 0x806e1f8, 16) = 6
nl_langinfo(14, 12, 136, 0x806e1f8, 16) = 0xb7c9d8c8
__ctype_get_mb_cur_max(1, 4, 0xb7e1c3f1, 0xbf861e78, 0xb7e1b921) = 6
towlower(85, 4, 0xb7e1c3f1, 0xbf861e78, 0xb7e1b921) = 117
towlower(85, 4, 0xb7e1c3f1, 0xbf861e78, 0xb7e1b921) = 117
towlower(84, 4, 0xb7e1c3f1, 0xbf861e78, 0xb7e1b921) = 116
towlower(84, 4, 0xb7e1c3f1, 0xbf861e78, 0xb7e1b921) = 116
towlower(70, 4, 0xb7e1c3f1, 0xbf861e78, 0xb7e1b921) = 102
towlower(70, 4, 0xb7e1c3f1, 0xbf861e78, 0xb7e1b921) = 102
towlower(45, 4, 0xb7e1c3f1, 0xbf861e78, 0xb7e1b921) = 45
towlower(45, 4, 0xb7e1c3f1, 0xbf861e78, 0xb7e1b921) = 45
towlower(56, 4, 0xb7e1c3f1, 0xbf861e78, 0xb7e1b921) = 56
towlower(56, 4, 0xb7e1c3f1, 0xbf861e78, 0xb7e1b921) = 56
mbsinit(0xbf861e88, 0, 2, 0x8067269, 0xbf861ed8) = 1
__ctype_get_mb_cur_max(0xbf861e88, 0, 2, 0x8067269, 0xbf861ed8) = 6
memchr("", '\000', 6) = 0xb7c9d8cd
mbrtowc(0xbf861ea0, 0xb7c9d8cd, 1, 0xbf861e88, 0xbf861ed8) = 0
mbsinit(0xbf861e88, 0xb7c9d8cd, 1, 0xbf861e88, 0xbf861ed8) = 1
mbsinit(0xbf861e50, 0xb7c9d8cd, 1, 0xbf861e88, 0xbf861ed8) = 1
__ctype_get_mb_cur_max(0xbf861e50, 0xb7c9d8cd, 1, 0xbf861e88, 0xbf861ed8) = 6
memchr("", '\000', 6) = 0x8068665
mbrtowc(0xbf861e68, 0x8068665, 1, 0xbf861e50, 0xbf861ed8) = 0
mbsinit(0xbf861e50, 0x8068665, 1, 0xbf861e50, 0xbf861ed8) = 1
memset(0xbf861f40, '\000', 84) = 0xbf861f40
malloc(996) = 0x806eb00
malloc(4) = 0x806eee8
malloc(4) = 0x806eef8
malloc(12) = 0x806ef08
malloc(12) = 0x806ef18
malloc(0) = 0x806ef28
free(0x806ef28) = <void>
memset(0x806ef08, '\000', 12) = 0x806ef08
memset(0x806ef18, '\000', 12) = 0x806ef18
malloc(4) = 0x806ef28
malloc(4) = 0x806ef38
calloc(1, 56) = 0x806ef48
malloc(4) = 0x806ef88
malloc(4) = 0x806ef98
realloc(NULL, 4) = 0x806efa8
free(0x806ef38) = <void>
free(0x806eb00) = <void>
free(0x806eef8) = <void>
free(NULL) = <void>
free(NULL) = <void>
attr_copy_file(0xbf864712, 0xbf86471f, 0x804b58b, 0x806a3c0, 0
<unfinished ...>
attr_copy_check_permissions(0xbf861f30, 0x806a3c0, 0xa15573a0, 0xb7ee910c, 98)
= 1
memset(0x806e850, '\000', 256) = 0x806e850
memset(0x806e850, '\001', 256) = 0x806e850
malloc(16) = 0x806eb00
memset(0xbf861d00, '\000', 136) = 0xbf861d00
malloc(11264) = 0x806efb8
memset(0xbf861ac0, '\000', 32) = 0xbf861ac0
free(0x806efb8) = <void>
calloc(256, 4) = 0x806efb8
free(NULL) = <void>
free(NULL) = <void>
free(NULL) = <void>
free(0x806eb00) = <void>
attr_copy_check_permissions(0xbf861f40, 0x806a3c0, 1, 1, 0) = 1
malloc(16) = 0x806eb00
memset(0xbf861d00, '\000', 136) = 0xbf861d00
free(NULL) = <void>
free(NULL) = <void>
free(NULL) = <void>
free(0x806eb00) = <void>
attr_copy_check_permissions(0xbf861f52, 0x806a3c0, 14, 0xb7ee910c, 0x806eb18)
= 1
malloc(16) = 0x806eb00
memset(0xbf861d00, '\000', 136) = 0xbf861d00
free(NULL) = <void>
free(NULL) = <void>
free(NULL) = <void>
free(0x806eb00) = <void>
attr_copy_check_permissions(0xbf861f65, 0x806a3c0, 31, 0xb7ee910c, 0x806eb18)
= 1
malloc(16) = 0x806eb00
memset(0xbf861d00, '\000', 136) = 0xbf861d00
free(NULL) = <void>
free(NULL) = <void>
free(NULL) = <void>
free(0x806eb00) = <void>
attr_copy_check_permissions(0xbf861f7a, 0x806a3c0, 14, 0xb7ee910c, 0x806eb18)
= 1
malloc(16) = 0x806eb00
memset(0xbf861d00, '\000', 136) = 0xbf861d00
free(NULL) = <void>
free(NULL) = <void>
free(NULL) = <void>
free(0x806eb00) = <void>
__errno_location() = 0xb7db689c
__errno_location() = 0xb7db689c
__ctype_get_mb_cur_max(1, 0xb7ed4bc8, 0, 0xbf861e00, 0xb7f2a6f0) = 6
gettext(0x806819e, 0xb7f10c28, 1, 0, 1) = 0x807a660
gettext(0x80681a0, 0xb7f10c28, 1, 0, 1) = 0x807a668
__errno_location() = 0xb7db689c
__errno_location() = 0xb7db689c
malloc(48) = 0x807b718
__errno_location() = 0xb7db689c
vsnprintf(NULL, 0, "setting attributes for %s", 0xbf861f18) = 70
malloc(71) = 0x807b750
vsnprintf("setting attributes for "/usr/lib"..., 71, "setting attributes
for %s", 0xbf861f18) = 70
error(0, 95, 0x8067844, 0x807b750, 0x806a4e0cp: setting attributes
for "/usr/lib/python2.5/site-packages/sipconfig.py": Operationen stöds ej
) = 0
free(0x807b750) = <void>
free(0x807b718) = <void>
<... attr_copy_file resumed> ) = -1
free(0x806e430) = <void>
free(0x806e400) = <void>
exit(1 <unfinished ...>
ferror_unlocked(0xb7ee24c0, 0xb7f10c28, 1, 1, 0) = 0
__fpending(0xb7ee24c0, 0xb7f10c28, 1, 1, 0) = 0
fclose(0xb7ee24c0) = 0
+++ exited (status 1) +++
address@hidden sip-4.6]#
-----------------------------------------------------------------------------------------------------------------
/Peter Landgren
> > The files is copied:
> > address@hidden site-packages]$ ls -l sipconfig.py
> > -rw-r--r-- 1 root root 81902 jul 5 16:45 sipconfig.py
> > address@hidden site-packages]$
> >
> > As I do this as root, cp should not complain?
>
> It makes no difference whether you are root - when cp encounters problems,
> it must report them. Instead, we need to figure out why cp encountered a
> problem as root.
cp-problem3.txt
Description: Text document
- problme with cp-command, Peter Landgren, 2007/07/05
- Re: problme with cp-command, Eric Blake, 2007/07/05
- Message not available
- Re: problme with cp-command, Eric Blake, 2007/07/05
- Re: problme with cp-command,
Peter Landgren <=
- Re: problem with cp-command, Peter Landgren, 2007/07/06
- Re: problem with cp-command, Bob Proulx, 2007/07/06
- Re: problem with cp-command, Peter Landgren, 2007/07/06
- Re: problem with cp-command, Bob Proulx, 2007/07/07
- Re: problem with cp-command, Peter Landgren, 2007/07/07
- Re: problem with cp-command, Bob Proulx, 2007/07/07
- Re: problem with cp-command, Peter Landgren, 2007/07/07
- Re: problem with cp-command, Bob Proulx, 2007/07/07
- Re: problem with cp-command, Peter Landgren, 2007/07/08
- Re: problem with cp-command, Jim Meyering, 2007/07/08