Blitzmax unter Linux - Ich kann nichts kompilieren
Übersicht

![]() |
M0rgensternBetreff: Blitzmax unter Linux - Ich kann nichts kompilieren |
![]() Antworten mit Zitat ![]() |
---|---|---|
Hallo Leute,
Ich habe gerade ein ziemliches Problem und hoffe, dass ihr mir helfen könnt. Undzwar wollte ich unter Linux mit BlitzMax programmieren. Also habe ich zuerstmal alle Module gebaut. Die Fehler die da aufgetreten sind habe ich soweit alle behoben (waren so ziemlich alles Fehler wegen X11). Aber jetzt wollte ich ein ganz einfaches Programm kompilieren, das auch keinerlei Module nutzt, aber das ganze scheitert beim linken. Undzwar erhalte ich folgende Ausgabe: Code: [AUSKLAPPEN] Building Test
Compiling:Test.bmx flat assembler version 1.68 (32768 kilobytes memory) 4 passes, 27490 bytes. Linking:Test.debug /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TNetwork_CloseNetwork': (code+0x5d1): undefined reference to `WSACleanup@0' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TNetwork_CountHostIPs': (code+0x71f): undefined reference to `gethostbyname@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TNetwork_CountHostIPs': (code+0x878): undefined reference to `ntohl@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TNetwork_DottedIP': (code+0xb84): undefined reference to `htonl@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TNetwork_IntIP': (code+0xbdc): undefined reference to `htonl@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPStream_TCPStreamIP': (code+0xf93): undefined reference to `ntohl@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPStream_TCPStreamPort': (code+0x1092): undefined reference to `ntohs@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPStream_Size': (code+0x1527): undefined reference to `ioctlsocket@12' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPStream_Close': (code+0x15d2): undefined reference to `shutdown@8' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPStream_Close': (code+0x15fb): undefined reference to `closesocket@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPStream_Read': (code+0x19e8): undefined reference to `recv@16' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPStream_Read': (code+0x1c8d): undefined reference to `recv@16' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPStream_Write': (code+0x1ea7): undefined reference to `send@16' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPStream_Write': (code+0x1fdb): undefined reference to `send@16' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPStream_Write': (code+0x2045): undefined reference to `sendto@24' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPServer_CreateTCPServer': (code+0x2368): undefined reference to `socket@12' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPServer_CreateTCPServer': (code+0x246f): undefined reference to `htons@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPServer_CreateTCPServer': (code+0x24f2): undefined reference to `bind@12' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPServer_CreateTCPServer': (code+0x252f): undefined reference to `closesocket@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPServer_CreateTCPServer': (code+0x2578): undefined reference to `listen@8' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPServer_CreateTCPServer': (code+0x25b7): undefined reference to `shutdown@8' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPServer_CreateTCPServer': (code+0x25e0): undefined reference to `closesocket@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPServer_AcceptTCPStream': (code+0x281c): undefined reference to `accept@12' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPClient_OpenTCPStream': (code+0x2c72): undefined reference to `socket@12' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPClient_OpenTCPStream': (code+0x2da9): undefined reference to `htons@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPClient_OpenTCPStream': (code+0x2ef4): undefined reference to `htons@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPClient_OpenTCPStream': (code+0x300d): undefined reference to `htons@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPClient_OpenTCPStream': (code+0x30e1): undefined reference to `shutdown@8' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPClient_OpenTCPStream': (code+0x310a): undefined reference to `closesocket@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPClient_OpenTCPStream': (code+0x3170): undefined reference to `connect@12' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPClient_OpenTCPStream': (code+0x31b5): undefined reference to `shutdown@8' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TTCPClient_OpenTCPStream': (code+0x31de): undefined reference to `closesocket@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TUDPStream_CreateUDPStream': (code+0x3622): undefined reference to `socket@12' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TUDPStream_CreateUDPStream': (code+0x372b): undefined reference to `htons@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TUDPStream_CreateUDPStream': (code+0x37ae): undefined reference to `bind@12' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TUDPStream_CreateUDPStream': (code+0x37ed): undefined reference to `closesocket@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TUDPStream_CreateUDPStream': (code+0x386a): undefined reference to `getsockname@12' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TUDPStream_CreateUDPStream': (code+0x38a9): undefined reference to `closesocket@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TUDPStream_RecvUDPMsg': (code+0x3d8e): undefined reference to `recvfrom@24' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TUDPStream_RecvUDPMsg': (code+0x3fd1): undefined reference to `ntohl@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TUDPStream_SendUDPMsg': (code+0x421c): undefined reference to `htons@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TUDPStream_SendUDPMsg': (code+0x4261): undefined reference to `htonl@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TUDPStream_SendUDPMsg': (code+0x42cd): undefined reference to `sendto@24' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TUDPStream_UDPMsgIP': (code+0x45f7): undefined reference to `ntohl@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TUDPStream_UDPMsgPort': (code+0x46f6): undefined reference to `ntohs@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TUDPStream_UDPStreamIP': (code+0x4789): undefined reference to `ntohl@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TUDPStream_UDPStreamPort': (code+0x4888): undefined reference to `ntohs@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TUDPStream_Close': (code+0x4a61): undefined reference to `shutdown@8' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `_pub_bnet_TUDPStream_Close': (code+0x4a8a): undefined reference to `closesocket@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `pub_bnet_s_FD_ISSET': (code+0x5b6a): undefined reference to `__WSAFDIsSet@8' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `pub_bnet_s_select': (code+0x5f60): undefined reference to `select@20' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `pub_bnet_s_inet_addr': (code+0x6198): undefined reference to `inet_addr@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `pub_bnet_s_inet_ntoa': (code+0x61de): undefined reference to `inet_ntoa@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `pub_bnet_s_gethostbyname': (code+0x627e): undefined reference to `gethostbyname@4' /home/luzifer/Programme/BlitzMax/mod/pub.mod/bnet.mod/bnet.debug.linux.x86.a(bnet.bmx.debug.linux.x86.o): In function `pub_bnet_s_WSAStartup': (code+0x645c): undefined reference to `WSAStartup@8' collect2: ld gab 1 als Ende-Status zurück Build Error: Failed to link /home/luzifer/Dokumente/Programmierung/BlitzMax/WIP/Translator/Test.debug Process complete Also, wie gesagt: Die Module wurden alle gebaut, jedenfalls ist er beim rebuild der Module komplett durchgelaufen. Ich hab auch schon danach gegoogelt aber nichts hilfreiches gefunden. Wäre wirklich super, wenn jemand ahnen könnte, was da los ist. Achja, zum System: Ich nutze Kubuntu 12.04 Lg, M0rgenstern |
||
![]() |
XeresModerator |
![]() Antworten mit Zitat ![]() |
---|---|---|
Warum liegt bnet im pub Verzeichnis und nicht in einem eigenen? Um das Modul raus zu werfen, müsstest du ein Framework benutzen.
Keine Ahnung was das eigentliche Problem mit bnet sein könnte... |
||
Win10 Prof.(x64)/Ubuntu 16.04|CPU 4x3Ghz (Intel i5-4590S)|RAM 8 GB|GeForce GTX 960
Wie man Fragen richtig stellt || "Es geht nicht" || Video-Tutorial: Sinus & Cosinus THERE IS NO FAIR. THERE IS NO JUSTICE. THERE IS JUST ME. (Death, Discworld) |
![]() |
M0rgenstern |
![]() Antworten mit Zitat ![]() |
---|---|---|
Hey Xeres.
Deine Frage kann ich dir leider nicht beantworten, da ich bewusst nichts mit bnet getan habe. Framework zu nutzen hat abhilfe geschafft. Vielen Dank dafür an Dich und Lobby (der mirs im ICQ gesagt hat). Lg, M0rgenstern |
||
![]() |
XeresModerator |
![]() Antworten mit Zitat ![]() |
---|---|---|
Alle Module aus Brl und Pub werden ohne Framework immer mit eingebunden. Module von dritten sollten da nicht drin stecken. | ||
Win10 Prof.(x64)/Ubuntu 16.04|CPU 4x3Ghz (Intel i5-4590S)|RAM 8 GB|GeForce GTX 960
Wie man Fragen richtig stellt || "Es geht nicht" || Video-Tutorial: Sinus & Cosinus THERE IS NO FAIR. THERE IS NO JUSTICE. THERE IS JUST ME. (Death, Discworld) |
![]() |
M0rgenstern |
![]() Antworten mit Zitat ![]() |
---|---|---|
Also, wie gesagt.
Das Problem habe ich mit Framwork behoben. Aber trotzdem sind noch so viele Fehler aufgetaucht (zum Beispiel haben manche selbstgeschriebene Module, die unter Windows schon wochenlang benutzt werden, nicht funktioniert (er hat da zum Beispiel Bilder nicht geladen)), dass ich einfach weiterhin auf Windows mit Blitzmax arbeite. Vielen Dank für die Hilfe^^ Lg, M0rgenstern |
||
![]() |
BtbN |
![]() Antworten mit Zitat ![]() |
---|---|---|
Die viel spannendere Frage ist doch, wieso bnet unter Linux versucht, gegen WinSock Funktionen zu linken. | ||
![]() |
M0rgenstern |
![]() Antworten mit Zitat ![]() |
---|---|---|
Tja..
Ähm... Keine Ahnung. Ne, sorry, da kann ich wirklich nicht weiterhelfen. Das was ich gepostet hab ist halt die komplette Ausgabe. Und die Module hab ich extra nochmal alle unter Linux neu builden lassen. Lg, M0rgenstern |
||
Übersicht


Powered by phpBB © 2001 - 2006, phpBB Group