Changes To XVFS Build Walkthrough

Changes to "XVFS Build Walkthrough" between 2019-09-17 19:53:08 and 2019-09-17 19:56:59

23
24
25
26
27
28
29



30
31
32
33
34
35
36
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39







+
+
+








### Build Output

    $ make xvfs.so
    cc -I. -DUSE_TCL_STUBS=1 -DXVFS_DEBUG -I/usr/include  -DXVFS_MODE_SERVER -fPIC -g3 -ggdb3 -Wall  -o xvfs.o -c xvfs-core.c
    cc -fPIC -g3 -ggdb3 -Wall   -shared -o xvfs.so xvfs.o -L/usr/lib64 -ltclstub8.6
    
    $ ls -l xvfs.so
    -rwxr-xr-x 1 rkeene users 14896 Sep 17 14:54 xvfs.so*

    $ nm -D xvfs.so | grep ' [TU] '
    0000000000004a07 T Xvfs_Init
    0000000000004c6a T Xvfs_Register
                     U fprintf
                     U memcmp
                     U memcpy
                     U stderr
63
64
65
66
67
68
69



70
71
72
73
74
75
76
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82







+
+
+







    $ make example-client.so
    ./xvfs-create --directory example --name example > example.c.new
    mv example.c.new example.c
    
    cc -I. -DUSE_TCL_STUBS=1 -DXVFS_DEBUG -I/usr/include  -DXVFS_MODE_CLIENT -fPIC -g3 -ggdb3 -Wall  -o example-client.o -c example.c
    cc -fPIC -g3 -ggdb3 -Wall   -shared -o example-client.so example-client.o -L/usr/lib64 -ltclstub8.6
    
    $ ls -l example-client.so
    -rwxr-xr-x 1 rkeene users 22584 Sep 17 14:54 example-client.so*
    
    $ nm -D example-client.so | grep ' [TU] '
                     U Xvfs_Register
    0000000000000ed5 T Xvfs_example_Init
                     U memcmp
                     U strlen

## "Standalone"
90
91
92
93
94
95
96




97
98
99
100
101
102
103
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113







+
+
+
+








    $ make example-standalone.so
    ./xvfs-create --directory example --name example > example.c.new
    mv example.c.new example.c
    
    cc -I. -DUSE_TCL_STUBS=1 -DXVFS_DEBUG -I/usr/include  -DXVFS_MODE_STANDALONE -fPIC -g3 -ggdb3 -Wall  -o example-standalone.o -c example.c
    cc -fPIC -g3 -ggdb3 -Wall   -shared -o example-standalone.so example-standalone.o -L/usr/lib64 -ltclstub8.6
    
    $ ls -l example-standalone.so
    -rwxr-xr-x 1 rkeene users 27680 Sep 17 14:54 example-standalone.so*
    
    $ nm -D example-standalone.so | grep ' [TU] '
    0000000000004d26 T Xvfs_example_Init
                     U fprintf
                     U memcmp
                     U memcpy
                     U stderr
                     U strlen
122
123
124
125
126
127
128



129
130
131
132
133
134
135
136
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149







+
+
+








    $ make example-flexible.so
    ./xvfs-create --directory example --name example > example.c.new
    mv example.c.new example.c
    
    cc -I. -DUSE_TCL_STUBS=1 -DXVFS_DEBUG -I/usr/include  -DXVFS_MODE_FLEXIBLE -fPIC -g3 -ggdb3 -Wall  -o example-flexible.o -c example.c
    cc -fPIC -g3 -ggdb3 -Wall   -shared -o example-flexible.so example-flexible.o -L/usr/lib64 -ltclstub8.6
    
    $ ls -l example-flexible.so
    -rwxr-xr-x 1 rkeene users 27728 Sep 17 14:54 example-flexible.so*
    
    $ nm -D example-flexible.so | grep ' [TU] '
    00000000000050c8 T Xvfs_example_Init
                     U fprintf
                     U memcmp
                     U memcpy
                     U stderr
                     U strlen