jamel / strace-plus

Automatically exported from code.google.com/p/strace-plus
Other
0 stars 0 forks source link

compile tests issue #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. git clone
2. ./configure
3. make

What is the expected output? What do you see instead?
libtool: link: gcc -U_FORTIFY_SOURCE -fexceptions -Wall -Wsign-compare -o 
.libs/Gperf-simple Gperf-simple.o  ../src/.libs/libunwind-x86.so
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: 
Gperf-simple.o: undefined reference to symbol '_Ux86_getcontext'
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: note: 
'_Ux86_getcontext' is defined in DSO 
/workshop/usr/src/strace-plus/libunwind-1.0/src/.libs/libunwind.so.7 so try 
adding it to the linker command line
/workshop/usr/src/strace-plus/libunwind-1.0/src/.libs/libunwind.so.7: could not 
read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [Gperf-simple] Error 1
make[2]: Leaving directory `/workshop/usr/src/strace-plus/libunwind-1.0/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/workshop/usr/src/strace-plus/libunwind-1.0'
make: *** [libunwind-1.0/src/libunwind-ptrace.a] Error 2

What version of the product are you using? On what operating system?
openSUSE 12.1
gcc 4.6.2
ld 2.21.1

Please provide any additional information below.

Original issue reported on code.google.com by subb...@gmail.com on 13 Aug 2012 at 3:26

GoogleCodeExporter commented 9 years ago
I make it again, and it passes the check and now I have strace+.
I find I need to use "make" twice for a new make.

Original comment by subb...@gmail.com on 13 Aug 2012 at 3:48

GoogleCodeExporter commented 9 years ago
Same problem here. The first make failed on '_Ux86_getcontext'. The second make 
succeeded.

Original comment by wuyongzh...@gmail.com on 6 Mar 2013 at 2:12

GoogleCodeExporter commented 9 years ago
I had the same problem too. And when I ran hello world trace, the result looks 
like this:

[ ] fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0
[ ] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb76dc000
[ ] write(1, "Hello world\n", 12)           = 12
[ ] write(1, "foo\n", 4)                    = 4
[ ] write(1, "bar\n", 4)                    = 4
[ ] write(1, "bar again\n", 10)             = 10

If I use --tree 
=== stat64 ===
    16    <???> (/lib/i386-linux-gnu/ld-2.15.so)
    16      <???> (/lib/i386-linux-gnu/ld-2.15.so)
    16        <???> (/lib/i386-linux-gnu/ld-2.15.so)
    16          <???> (/lib/i386-linux-gnu/ld-2.15.so)
    16            <???> (/lib/i386-linux-gnu/ld-2.15.so)
    16              <???> (/lib/i386-linux-gnu/ld-2.15.so)
    16                <???> (/lib/i386-linux-gnu/ld-2.15.so)
    16                  <???> (/lib/i386-linux-gnu/ld-2.15.so)
    16                    <???> (/lib/i386-linux-gnu/ld-2.15.so)
   [16]                     <???> (/lib/i386-linux-gnu/ld-2.15.so)

=== write ===
(nothing here..)

Original comment by yanyanzh...@gmail.com on 21 Apr 2013 at 2:01