./bmk makemods -a bah.licurl --- mehrere Fehler beim Compile

Übersicht BlitzMax, BlitzMax NG Beginners-Corner

Neue Antwort erstellen

 

antman

Betreff: ./bmk makemods -a bah.licurl --- mehrere Fehler beim Compile

BeitragFr, Apr 06, 2018 22:11
Antworten mit Zitat
Benutzer-Profile anzeigen
Hallo zusammen !

Hoffe, Ihr hattet schönen Erfolg beim Eier suchen Razz

Ich habe im Moment folgendes Problem. Möchte gerne das bah.libcurl bauen. Benutze macOS 10.11.6 und die aktuellsten XCode Commandline Tools. BlitzMax ist selber gebaut aus den Sourcen.
Nun kommt aber folgender Fehler und leider bin ich nicht fest im C/C++.

Code: [AUSKLAPPEN]
MacBookAir:bin andy$ ./bmk makemods -a bah.libcurl
Compiling:amigaos.c
Compiling:asyn-ares.c
Compiling:asyn-thread.c
Compiling:base64.c
Compiling:conncache.c
Compiling:connect.c
Compiling:content_encoding.c
Compiling:cookie.c
Compiling:curl_addrinfo.c
Compiling:curl_des.c
Compiling:curl_endian.c
Compiling:curl_fnmatch.c
Compiling:curl_gethostname.c
Compiling:curl_gssapi.c
Compiling:curl_memrchr.c
Compiling:curl_multibyte.c
Compiling:curl_ntlm_core.c
Compiling:curl_ntlm_wb.c
Compiling:curl_rtmp.c
Compiling:curl_sasl.c
Compiling:curl_sspi.c
Compiling:curl_threads.c
Compiling:dict.c
Compiling:dotdot.c
Compiling:easy.c
Compiling:escape.c
Compiling:file.c
Compiling:fileinfo.c
Compiling:formdata.c
Compiling:ftp.c
Compiling:ftplistparser.c
Compiling:getenv.c
Compiling:getinfo.c
Compiling:gopher.c
Compiling:hash.c
Compiling:hmac.c
Compiling:hostasyn.c
Compiling:hostcheck.c
Compiling:hostip.c
Compiling:hostip4.c
Compiling:hostip6.c
Compiling:hostsyn.c
Compiling:http.c
Compiling:http_chunks.c
Compiling:http_digest.c
Compiling:http_negotiate.c
Compiling:http_ntlm.c
Compiling:http_proxy.c
Compiling:idn_win32.c
Compiling:if2ip.c
Compiling:imap.c
Compiling:inet_ntop.c
Compiling:inet_pton.c
Compiling:krb5.c
Compiling:ldap.c
Compiling:llist.c
Compiling:md4.c
Compiling:md5.c
Compiling:memdebug.c
Compiling:mime.c
Compiling:mprintf.c
Compiling:multi.c
Compiling:netrc.c
Compiling:non-ascii.c
Compiling:nonblock.c
Compiling:openldap.c
Compiling:parsedate.c
Compiling:pingpong.c
Compiling:pipeline.c
Compiling:pop3.c
Compiling:progress.c
Compiling:strcase.c
Compiling:rand.c
Compiling:rtsp.c
Compiling:security.c
Compiling:select.c
Compiling:sendf.c
Compiling:setopt.c
Compiling:sha256.c
Compiling:share.c
Compiling:slist.c
Compiling:smb.c
Compiling:smtp.c
Compiling:socks.c
Compiling:socks_gssapi.c
Compiling:socks_sspi.c
Compiling:speedcheck.c
Compiling:splay.c
Compiling:ssh.c
Compiling:system_win32.c
Compiling:strdup.c
Compiling:strerror.c
Compiling:strtok.c
Compiling:strtoofft.c
Compiling:telnet.c
Compiling:tftp.c
Compiling:timeval.c
Compiling:transfer.c
Compiling:url.c
Compiling:version.c
Compiling:warnless.c
Compiling:wildcard.c
Compiling:x509asn1.c
Compiling:cleartext.c
Compiling:cram.c
Compiling:digest.c
Compiling:digest_sspi.c
Compiling:krb5_gssapi.c
Compiling:krb5_sspi.c
Compiling:ntlm.c
Compiling:ntlm_sspi.c
Compiling:oauth2.c
Compiling:spnego_gssapi.c
Compiling:spnego_sspi.c
Compiling:vauth.c
Compiling:axtls.c
Compiling:cyassl.c
Compiling:darwinssl.c
Compiling:gtls.c
Compiling:mbedtls.c
Compiling:nss.c
Compiling:openssl.c
Compiling:polarssl.c
Compiling:polarssl_threadlock.c
Compiling:schannel.c
Compiling:vtls.c
Compiling:ares__close_sockets.c
In file included from /Applications/blitzmax-master/mod/bah.mod/libcurl.mod/src/ares/ares__close_sockets.c:19:
/Applications/blitzmax-master/mod/bah.mod/libcurl.mod/src/ares/ares.h:373:4: error:
      type name requires a specifier or qualifier
   ares_ssize_t(*arecvfrom)(ares_socket_t, void *, size_t, int, struct s...
   ^
/Applications/blitzmax-master/mod/bah.mod/libcurl.mod/src/ares/ares.h:373:16: error:
      function cannot return function type 'int (ares_socket_t, void *, size_t,
      int, struct sockaddr *, ares_socklen_t *, void *)' (aka 'int (int, void *,

      unsigned long, int, struct sockaddr *, unsigned int *, void *)')
   ares_ssize_t(*arecvfrom)(ares_socket_t, void *, size_t, int, struct s...
               ^
/Applications/blitzmax-master/mod/bah.mod/libcurl.mod/src/ares/ares.h:374:4: error:
      type name requires a specifier or qualifier
   ares_ssize_t(*asendv)(ares_socket_t, const struct iovec *, int, void *);
   ^
/Applications/blitzmax-master/mod/bah.mod/libcurl.mod/src/ares/ares.h:374:16: error:
      function cannot return function type 'int (ares_socket_t, const struct
      iovec *, int, void *)'
      (aka 'int (int, const struct iovec *, int, void *)')
   ares_ssize_t(*asendv)(ares_socket_t, const struct iovec *, int, void *);
               ^
/Applications/blitzmax-master/mod/bah.mod/libcurl.mod/src/ares/ares.h:374:4: error:
      duplicate member 'ares_ssize_t'
   ares_ssize_t(*asendv)(ares_socket_t, const struct iovec *, int, void *);
   ^
/Applications/blitzmax-master/mod/bah.mod/libcurl.mod/src/ares/ares.h:373:4: note:
      previous declaration is here
   ares_ssize_t(*arecvfrom)(ares_socket_t, void *, size_t, int, struct s...
   ^
5 errors generated.
Build Error: failed to compile /Applications/blitzmax-master/mod/bah.mod/libcurl.mod/src/ares/ares__close_sockets.c
MacBookAir:bin andy$


Könnt Ihr mir da ggf. helfen? Was für Infos braucht Ihr noch von mir?

Danke Euch erstmal.

Andy

Thunder

BeitragSa, Apr 07, 2018 21:40
Antworten mit Zitat
Benutzer-Profile anzeigen
War wohl ein Typo in Bruceys Modul. Habe den Fix gerade pull-requested:
https://github.com/maxmods/bah...e2eadf0d46

In der Datei libcurl.mod/src/ares/ares_build.h gehört in der Zeile 206 der Strichpunkt ( ; ) gelöscht.

Ich habe allerdings nicht getestet, ob es weitere Fehler gibt.

Edit: Brucey hat den Code schon gemerget. Wenn du pullst oder es neu herunterlädst, dürfte der Fehler nicht mehr auftreten.
Meine Sachen: https://bitbucket.org/chtisgit https://github.com/chtisgit
 

antman

BeitragMi, Apr 18, 2018 16:44
Antworten mit Zitat
Benutzer-Profile anzeigen
Thunder hat Folgendes geschrieben:
War wohl ein Typo in Bruceys Modul. Habe den Fix gerade pull-requested:
https://github.com/maxmods/bah...e2eadf0d46

In der Datei libcurl.mod/src/ares/ares_build.h gehört in der Zeile 206 der Strichpunkt ( ; ) gelöscht.

Ich habe allerdings nicht getestet, ob es weitere Fehler gibt.

Edit: Brucey hat den Code schon gemerget. Wenn du pullst oder es neu herunterlädst, dürfte der Fehler nicht mehr auftreten.


Hallo Thunder,

dank Dir für den Tipp. Er hat zwar etwas gebaut, kommt aber bei dieser Stelle nicht weiter:

Code: [AUSKLAPPEN]
Compiling:warnless.c
/Applications/blitzmax-master/mod/bah.mod/libcurl.mod/src/lib/warnless.c:101:4: error:
      "SIZEOF_CURL_OFF_T not defined"
#  error "SIZEOF_CURL_OFF_T not defined"
   ^
/Applications/blitzmax-master/mod/bah.mod/libcurl.mod/src/lib/warnless.c:192:40: error:
      use of undeclared identifier 'CURL_MASK_SCOFFT'
  return (curl_off_t)(uznum & (size_t) CURL_MASK_SCOFFT);
                                       ^
2 errors generated.
Build Error: failed to compile /Applications/blitzmax-master/mod/bah.mod/libcurl.mod/src/lib/warnless.c


Ich wollte mir mit maxgui und eben libcurl eine kleine Anwendung bauen, wo ich von https://pass.telekom.de den aktuellen Verbrauch und co anzeigen lassen wollte.

Unter PHP läuft das ganze problemlos.

Schade irgendwie Sad Sad

Mir ist auch aufgefallen, das er zu beginn immer gemailt hat, das ihm eine curl_config.h fehlt.
Habe dann die Original Sourcen geholt und ein ./configure gemacht.

Irgenwie scheint das Ding bah.libcurl noch macken zu haben.

OS ist macOS 10.11.6.

Code: [AUSKLAPPEN]
MacBookAir:mod andy$ gcc -v
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin


Grüße

Andy

Thunder

BeitragMi, Apr 18, 2018 18:45
Antworten mit Zitat
Benutzer-Profile anzeigen
Das ist leider viel zu wenig information um dir zu helfen. Ich hab kein OS X um zu testen, oder die Files, die das ./configure erstellt hat etc.
Außerdem kann ich es nicht kompilieren zum Testen.

Ich kann auch die Seite pass.telekom.de nicht anschauen (weil ich nicht bei der deutschen Telekom bin), deswegen meine Frage: brauchst du dafür libcurl? Du kannst nämlich HTTP requests auch mit den brl modulen machen.
Meine Sachen: https://bitbucket.org/chtisgit https://github.com/chtisgit

Neue Antwort erstellen


Übersicht BlitzMax, BlitzMax NG Beginners-Corner

Gehe zu:

Powered by phpBB © 2001 - 2006, phpBB Group