Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: Ubuntu-Forum & Kubuntu-Forum | www.Ubuntu-Forum.de. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

  • »Ascawath« ist der Autor dieses Themas

Beiträge: 7

Registrierungsdatum: 21.09.2016

Derivat: Ubuntu

Version: 16.04 LTS (Xenial Xerus)

Architektur: 64-Bit PC

Desktop: unbekannt

  • Nachricht senden

1

22.09.2016, 19:19

Probleme bei xmlrpc-c

Moin moin und hallo,

ich brauche für eines meiner Projekte die Bibliothek Xmlrpc-c.
Diese habe ich heruntergeladen und wollte ich installieren.
Beim ./configure gab es schon Probleme, dass ein HTTP Client installiert sein müsste.
Also habe ich versucht libwww zu installieren.
Allerdings gab es auch hierbei wieder Fehler.

Ausgabe von ./configure xmlrpc-c

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
 ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for wininet-config... no
configure: You don't appear to have Wininet installed (no working wininet-config in your command search path), so we will not build the Wininet client XML transport
checking whether to build Wininet client XML transport module... no
checking for curl-config... no
configure: You don't appear to have Curl installed (no working curl-config in your command search path), so we will not build the Curl client XML transport
checking whether to build Curl client XML transport module... no
checking for libwww-config... no
configure: You don't appear to have Libwww installed (no working libwww-config in your command search path), so we will not build the Libwww client XML transport
checking whether to build Libwww client XML transport module... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for main in -lncurses... no
checking for main in -lreadline... no
checking whether to build tools... no
checking whether to build Abyss server module... yes
checking whether to build CGI server module... yes
checking whether to build C++ wrappers and tools... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for socket... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for size_t... yes
checking whether va_list is an array... yes
checking whether compiler has __attribute__... yes
checking for vsnprintf... yes
checking for wcsncmp... yes
checking for setgroups... yes
checking for asprintf... yes
checking for setenv... yes
checking for strtoll... yes
checking for strtoull... yes
checking for strtoq... yes
checking for strtouq... yes
checking for __strtoll... no
checking for __strtoull... no
checking for pselect... yes
checking for gettimeofday... yes
checking for localtime_r... yes
checking for gmtime_r... yes
checking for strcasecmp... yes
checking for stricmp... no
checking for _stricmp... no
checking whether to use Abyss pthread function... yes
checking whether to use SSL with libwww... no
checking whether to build the libxml2 backend... no
configure: creating ./config.status
config.status: creating srcdir.mk
config.status: creating config.mk
config.status: creating xmlrpc_config.h
config.status: creating xmlrpc_amconfig.h
config.status: executing default-1 commands
configure: ==>
configure: ==>We are not building any client XML transport (see earlier messages explaining why), therefore WE WILL NOT BUILD THE CLIENT LIBRARY.
configure: ==>


./configure libwww

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
./configure
loading cache ./config.cache
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking build system type... x86_64-unknown-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for POSIXized ISC... no
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for executable suffix... (cached) no
checking for ranlib... (cached) ranlib
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... (cached) no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... no
checking if gcc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes

*** Warning: the command libtool uses to detect shared libraries,
*** /usr/bin/file, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such. This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem. Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@gnu.org

checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
loading cache ./config.cache
checking whether make sets ${MAKE}... (cached) yes
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... (cached) gcc -E
checking for X... (cached) no
checking whether to define additional compiler specific flags... no
checking for telnet... (cached) telnet
checking for rlogin... (cached) rlogin
checking for tn3270... no
checking for x3270... no
checking for perl... (cached) perl
checking for rm... (cached) /bin/rm
checking for ar... (cached) /usr/bin/ar
checking for mkdir... (cached) /bin/mkdir
checking for chmod... (cached) /bin/chmod
checking for cp... (cached) /bin/cp
checking for tar... (cached) /bin/tar
checking for cvs... (cached) cvs
checking for sed... (cached) /bin/sed
checking for gzip... (cached) /bin/gzip
checking whether ln -s works... (cached) yes
checking for resolv.conf... (cached) /etc/resolv.conf
checking for socket in -lsocket... (cached) no
checking for connect in -linet... (cached) no
checking for t_accept in -lnsl... (cached) no
checking for dlopen in -ldl... (cached) yes
checking for appkit/appkit.h... (cached) no
checking for appkit.h... (cached) no
checking for arpa/inet.h... (cached) yes
checking for inet.h... (cached) no
checking for net/errno.h... (cached) no
checking for sys/errno.h... (cached) yes
checking for errno.h... (cached) yes
checking for netinet/in.h... (cached) yes
checking for in.h... (cached) no
checking for netinet/tcp.h... (cached) yes
checking for tcp.h... (cached) no
checking for sys/fcntl.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for sys/ipc.h... (cached) yes
checking for sys/limits.h... (cached) no
checking for limits.h... (cached) yes
checking for sys/machine.h... (cached) no
checking for sys/resource.h... (cached) yes
checking for resource.h... (cached) no
checking for sys/select.h... (cached) yes
checking for select.h... (cached) no
checking for sys/socket.h... (cached) yes
checking for socket.h... (cached) no
checking for sys/stat.h... (cached) yes
checking for stat.h... (cached) no
checking for sys/syslog... (cached) no
checking for syslog.h... (cached) yes
checking for sys/systeminfo.h... (cached) no
checking for sys/time.h... (cached) yes
checking for time.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for types.h... (cached) no
checking for sys/unistd.h... (cached) yes
checking for unistd.h... (cached) yes
checking for wais/wais.h... (cached) no
checking for wais.h... (cached) no
checking for bsdtime.h... (cached) no
checking for bsdtypes.h... (cached) no
checking for ctype.h... (cached) yes
checking for cursesX.h... (cached) no
checking for curses.h... (cached) no
checking for dn.h... (cached) no
checking for dnetdb.h... (cached) no
checking for grp.h... (cached) yes
checking for libc.h... (cached) no
checking for malloc.h... (cached) yes
checking for manifest.h... (cached) no
checking for memory.h... (cached) yes
checking for netdb.h... (cached) yes
checking for pwd.h... (cached) yes
checking for rxposix.h... (cached) no
checking for regex.h... (cached) yes
checking for stdefs.h... (cached) no
checking for stdio.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for termios.h... (cached) yes
checking for unixlib.h... (cached) no
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking for dir.h... (cached) no
checking for direct.h... (cached) no
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking whether stat file-mode macros are broken... (cached) no
checking for uid_t in sys/types.h... (cached) yes
checking for pid_t... (cached) yes
checking type of array argument to getgroups... (cached) gid_t
checking for mode_t... (cached) yes
checking for size_t... (cached) yes
checking return type of signal handlers... (cached) void
checking for BOOLEAN... (cached) no
checking for u_char... (cached) yes
checking for u_short... (cached) yes
checking for u_long... (cached) yes
checking size of char... (cached) 1
checking size of char *... (cached) 8
checking size of int... (cached) 4
checking size of long... (cached) 8
checking for whether time_t is long... (cached) yes
checking for whether size_t is long... (cached) yes
checking for working const... (cached) yes
checking whether byte ordering is bigendian... (cached) no
checking whether char is unsigned... (cached) no
checking for long double... (cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking for tm_gmtoff in struct tm... (cached) yes
checking for time.h that defines timezone... (cached) yes
checking for time.h that defines altzone... (cached) no
checking for time.h that defines daylight... (cached) yes
checking if timezone is backwards... (cached) no
checking for tm_zone in struct tm... (cached) yes
checking for winsize structure... (cached) yes
checking for vprintf... (cached) yes
checking for strftime... (cached) yes
checking for getcwd... (cached) yes
checking for gethostname... (cached) yes
checking for getdomainname... (cached) yes
checking for getwd... (cached) yes
checking for select... (cached) yes
checking for socket... (cached) yes
checking for strerror... (cached) yes
checking for strtol... (cached) yes
checking for opendir... (cached) yes
checking for getpid... (cached) yes
checking for strchr... (cached) yes
checking for memcpy... (cached) yes
checking for getlogin... (cached) yes
checking for getpass... (cached) yes
checking for fcntl... (cached) yes
checking for readdir... (cached) yes
checking for sysinfo... (cached) yes
checking for ioctl... (cached) yes
checking for chdir... (cached) yes
checking for tempnam... (cached) yes
checking for getsockopt... (cached) yes
checking for setsockopt... (cached) yes
checking for gettimeofday... (cached) yes
checking for mktime... (cached) yes
checking for timegm... (cached) yes
checking for tzset... (cached) yes
checking for unlink... (cached) yes
checking whether to support direct WAIS access.... no
checking whether to support zlib compress/decompress... no
checking whether to support POSIX regex... no
checking whether to support SOCKS... no
checking whether to support SOCKS5... no
checking whether to support SOCKS4... no
checking whether to support mysql access.... no
checking whether we include the Expat XML parser.... yes
checking whether we include MD5 support for HTTP Digest Authentication.... yes
checking whether we include WebDAV support.... no
checking whether we include extension methods.... no
checking whether we can find OpenSSL... no
checking whether to use internal signal handlers... no
checking whether to disable Nagle's algorithm... yes
checking whether to accept new rule files without asking an end user.... no
checking whether to disable HTTP/1.1 pipelining... no
checking whether to use MUX as transport for HTTP.... no
checking whether to define _REENTRANT... no
checking whether to define _POSIX_SOURCE... no
creating ./config.status
creating Makefile
creating libwww-config
creating w3c-libwww.spec
creating config/Makefile
creating modules/Makefile
creating modules/expat/Makefile
creating modules/expat/xmltok/Makefile
creating modules/expat/xmlparse/Makefile
creating modules/md5/Makefile
creating Library/Makefile
creating Library/User/Makefile
creating Library/User/Patch/Makefile
creating Library/User/Architecture/Makefile
creating Library/User/Using/Makefile
creating Library/User/Guide/Makefile
creating Library/User/Style/Makefile
creating Library/User/Platform/Makefile
creating Library/src/Makefile
creating Library/src/windows/Makefile
creating Library/src/vms/Makefile
creating Library/src/SSL/Makefile
creating Library/src/SSL/windows/Makefile
creating Library/Examples/Makefile
creating Library/cvs2sql/Makefile
creating Library/External/Makefile
creating PICS-client/Makefile
creating PICS-client/User/Makefile
creating PICS-client/src/Makefile
creating PICS-client/src/windows/Makefile
creating LineMode/Makefile
creating LineMode/User/Makefile
creating LineMode/src/Makefile
creating LineMode/src/windows/Makefile
creating LineMode/src/vms/Makefile
creating Robot/Makefile
creating Robot/User/Makefile
creating Robot/src/Makefile
creating Robot/tcl/Makefile
creating Robot/src/windows/Makefile
creating ComLine/Makefile
creating ComLine/User/Makefile
creating ComLine/src/Makefile
creating ComLine/src/windows/Makefile
creating WinCom/Makefile
creating WinCom/hlp/Makefile
creating WinCom/res/Makefile
creating Icons/Makefile
creating Icons/WWW/Makefile
creating Icons/32x32/Makefile
creating Icons/internal/Makefile
creating wwwconf.h
wwwconf.h is unchanged


make von libwww

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
make
make all-recursive
make[1]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0'
Making all in config
make[2]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/config'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/config'
Making all in modules
make[2]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/modules'
Making all in expat
make[3]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/modules/expat'
Making all in xmltok
make[4]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/modules/expat/xmltok'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/modules/expat/xmltok'
Making all in xmlparse
make[4]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/modules/expat/xmlparse'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/modules/expat/xmlparse'
make[4]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/modules/expat'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/modules/expat'
make[3]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/modules/expat'
Making all in md5
make[3]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/modules/md5'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/modules/md5'
make[3]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/modules'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/modules'
make[2]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/modules'
Making all in Library
make[2]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library'
Making all in src
make[3]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/src'
Making all in SSL
make[4]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/src/SSL'
Making all in windows
make[5]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/src/SSL/windows'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/src/SSL/windows'
make[5]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/src/SSL'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/src/SSL'
make[4]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/src/SSL'
Making all in windows
make[4]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/src/windows'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/src/windows'
Making all in vms
make[4]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/src/vms'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/src/vms'
make[4]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/src'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/src'
make[3]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/src'
Making all in User
make[3]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/User'
Making all in Patch
make[4]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/User/Patch'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/User/Patch'
Making all in Architecture
make[4]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/User/Architecture'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/User/Architecture'
Making all in Using
make[4]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/User/Using'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/User/Using'
Making all in Guide
make[4]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/User/Guide'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/User/Guide'
Making all in Style
make[4]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/User/Style'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/User/Style'
Making all in Platform
make[4]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/User/Platform'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/User/Platform'
make[4]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/User'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/User'
make[3]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/User'
Making all in Examples
make[3]: Entering directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/Examples'
/bin/sh ../../libtool --mode=link gcc -g -O2 -Wall -o libapp_2 libapp_2.o ../src/libwwwinit.la ../src/libwwwapp.la ../../Library/src/libwwwxml.la ../../modules/expat/xmlparse/libxmlparse.la ../../modules/expat/xmltok/libxmltok.la ../src/libwwwhtml.la ../src/libwwwtelnet.la ../src/libwwwnews.la ../src/libwwwhttp.la ../src/libwwwmime.la ../src/libwwwgopher.la ../src/libwwwftp.la ../src/libwwwdir.la ../src/libwwwcache.la ../src/libwwwstream.la ../src/libwwwfile.la ../src/libwwwmux.la ../src/libwwwtrans.la ../src/libwwwcore.la ../src/libwwwutils.la -lm	../../modules/md5/libmd5.la -ldl 
gcc -g -O2 -Wall -o .libs/libapp_2 libapp_2.o ../src/.libs/libwwwinit.so ../src/.libs/libwwwapp.so ../../Library/src/.libs/libwwwxml.so ../../modules/expat/xmlparse/.libs/libxmlparse.so ../../modules/expat/xmltok/.libs/libxmltok.so ../src/.libs/libwwwhtml.so ../src/.libs/libwwwtelnet.so ../src/.libs/libwwwnews.so ../src/.libs/libwwwhttp.so ../src/.libs/libwwwmime.so ../src/.libs/libwwwgopher.so ../src/.libs/libwwwftp.so ../src/.libs/libwwwdir.so ../src/.libs/libwwwcache.so ../src/.libs/libwwwstream.so ../src/.libs/libwwwfile.so ../src/.libs/libwwwmux.so ../src/.libs/libwwwtrans.so ../src/.libs/libwwwcore.so ../src/.libs/libwwwutils.so -lm ../../modules/md5/.libs/libmd5.so -ldl -Wl,--rpath -Wl,/usr/local/lib
../src/.libs/libwwwfile.so: undefined reference to `HTDir_addElement'
../src/.libs/libwwwfile.so: undefined reference to `HTDir_free'
../src/.libs/libwwwfile.so: undefined reference to `HTDir_new'
collect2: error: ld returned 1 exit status
Makefile:660: recipe for target 'libapp_2' failed
make[3]: *** [libapp_2] Error 1
make[3]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library/Examples'
Makefile:174: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0/Library'
Makefile:263: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/hacker/Downloads/w3c-libwww-5.4.0'
Makefile:408: recipe for target 'all-recursive-am' failed
make: *** [all-recursive-am] Error 2


Ich habe auch die libxmlrpc-core-c3-dev installiert.
Beim Kompillieren des Standard Skripts des Manual von Xmlrpc-c bekomme ich aber nur Referenzen Fehler.

C/C++-Quelltext

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/* A simple standalone XML-RPC server program written in C. */

/* This server knows one RPC class (besides the system classes):
"sample.add".

The program takes one argument: the HTTP port number on which the server
is to accept connections, in decimal.

You can use the example program 'xmlrpc_sample_add_client' to send an RPC
to this server.

Example:

$ ./xmlrpc_sample_add_server 8080&
$ ./xmlrpc_sample_add_client

For more fun, run client and server in separate terminals and turn on
tracing for each:

$ export XMLRPC_TRACE_XML=1
*/

#define WIN32_LEAN_AND_MEAN /* required by xmlrpc-c/server_abyss.h */

#include <stdlib.h>
#include <stdio.h>
#ifdef _WIN32
# include <windows.h>
# include <winsock2.h>
#else
# include <unistd.h>
#endif

#include <xmlrpc-c/base.h>
#include <xmlrpc-c/server.h>
#include <xmlrpc-c/server_abyss.h>

//#include "config.h" /* information about this build environment */


#ifdef _WIN32
#define SLEEP(seconds) SleepEx(seconds * 1000, 1);
#else
#define SLEEP(seconds) sleep(seconds);
#endif


static xmlrpc_value *
sample_add(xmlrpc_env * const envP,
xmlrpc_value * const paramArrayP,
void * const serverInfo,
void * const channelInfo) {

xmlrpc_int32 x, y, z;

/* Parse our argument array. */
xmlrpc_decompose_value(envP, paramArrayP, "(ii)", &x, &y);
if (envP->fault_occurred)
return NULL;

/* Add our two numbers. */
z = x + y;

/* Sometimes, make it look hard (so client can see what it's like
to do an RPC that takes a while).
*/
if (y == 1)
SLEEP(5);

/* Return our result. */
return xmlrpc_build_value(envP, "i", z);
}



int
main(int const argc,
const char ** const argv) {

struct xmlrpc_method_info3 const methodInfo = {
/* .methodName = */ "sample.add",
/* .methodFunction = */ &sample_add,
};
xmlrpc_server_abyss_parms serverparm;
xmlrpc_registry * registryP;
xmlrpc_env env;

if (argc-1 != 1) {
fprintf(stderr, "You must specify 1 argument: The TCP port "
"number on which the server will accept connections "
"for RPCs (8080 is a common choice). "
"You specified %d arguments.\n", argc-1);
exit(1);
}

xmlrpc_env_init(&env);

registryP = xmlrpc_registry_new(&env);
if (env.fault_occurred) {
printf("xmlrpc_registry_new() failed. %s\n", env.fault_string);
exit(1);
}

xmlrpc_registry_add_method3(&env, registryP, &methodInfo);
if (env.fault_occurred) {
printf("xmlrpc_registry_add_method3() failed. %s\n",
env.fault_string);
exit(1);
}

serverparm.config_file_name = NULL; /* Select the modern normal API */
serverparm.registryP = registryP;
serverparm.port_number = atoi(argv[1]);
serverparm.log_file_name	= "/tmp/xmlrpc_log";

printf("Running XML-RPC server...\n");

xmlrpc_server_abyss(&env, &serverparm, XMLRPC_APSIZE(log_file_name));
if (env.fault_occurred) {
printf("xmlrpc_server_abyss() failed. %s\n", env.fault_string);
exit(1);
}
/* xmlrpc_server_abyss() never returns unless it fails */

return 0;
}


und die Fehler

Quellcode

1
2
3
4
5
6
7
8
9
10
||=== Build: Debug in rob (compiler: GNU GCC Compiler) ===|
obj/Debug/main.o||In function `sample_add':|
/home/hacker/Downloads/rob/rob/main.c|57|undefined reference to `xmlrpc_decompose_value'|
/home/hacker/Downloads/rob/rob/main.c|71|undefined reference to `xmlrpc_build_value'|
obj/Debug/main.o||In function `main':|
/home/hacker/Downloads/rob/rob/main.c|96|undefined reference to `xmlrpc_env_init'|
/home/hacker/Downloads/rob/rob/main.c|98|undefined reference to `xmlrpc_registry_new'|
/home/hacker/Downloads/rob/rob/main.c|104|undefined reference to `xmlrpc_registry_add_method3'|
/home/hacker/Downloads/rob/rob/main.c|118|undefined reference to `xmlrpc_server_abyss'|
||=== Build failed: 6 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|


Also ich benutze ein frisch installiertes Ubuntu 16.04 LTS und BLOCKS.
Ich bin, was das angeht leider schon ziemlich lange am Rätseln, woran das liegen könnte.
Ich hoffe, ihr könnt mir dabei helfen :)

Viele Grüße
Ascawath

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Ascawath« (22.09.2016, 20:47)


  • »Ascawath« ist der Autor dieses Themas

Beiträge: 7

Registrierungsdatum: 21.09.2016

Derivat: Ubuntu

Version: 16.04 LTS (Xenial Xerus)

Architektur: 64-Bit PC

Desktop: unbekannt

  • Nachricht senden

2

22.09.2016, 20:50

Hat sich erledigt.

Das Problem lag lediglich daran, dass Blocks die libs nicht selbst importieren wollte.
Man muss da nur ein wenig nachhelfen.
Geholfen hat mir also das hier:
http://stackoverflow.com/questions/58627…with-codeblocks

und die Libs müssen hinzugefügt werden
http://xmlrpc-c.sourceforge.net/doc/#clibraries

chroot

Ubuntu-Forum-Team

  • »chroot« ist männlich

Beiträge: 2 242

Registrierungsdatum: 04.03.2008

Derivat: Kein Ubuntu-Derivat

Architektur: 64-Bit PC

Desktop: KDE4

Andere Betriebssysteme: Debian Testing

  • Nachricht senden

3

24.09.2016, 09:05

Gut das du die lösung gefunden hast.

Etwas in eigener sache: Gibts einen grund für xmlrpc? Da ich mich momentan auch viel mit solchen themen befasse, würde ich gerne wissen, ob xmlrpc eine vorgabe war, oder ob du dich bewusst dafür entschieden hast und wenn ja, warum?
"Do or do not. There is no try." (Yoda) || Thread auf gelöst/erledigt setzen

  • »Ascawath« ist der Autor dieses Themas

Beiträge: 7

Registrierungsdatum: 21.09.2016

Derivat: Ubuntu

Version: 16.04 LTS (Xenial Xerus)

Architektur: 64-Bit PC

Desktop: unbekannt

  • Nachricht senden

4

10.03.2017, 01:21

Sorry, für die späte Antwort.

Es war keine Vorgabe. Ich habe mich für xmlrpc entschieden, weil ich sowieso mit XML Dateien arbeite und ich nur einzelne Werte übermittlen muss.
Dafür reicht das alle male und ist im Prinzip ja auch nicht schwer zu implimentieren :D

Viele Grüße