{"action":"created","issue":{"url":"https://api.github.com/repos/davidgfnet/whatsapp-purple/issues/253","labels_url":"https://api.github.com/repos/davidgfnet/whatsapp-purple/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/davidgfnet/whatsapp-purple/issues/253/comments","events_url":"https://api.github.com/repos/davidgfnet/whatsapp-purple/issues/253/events","html_url":"https://github.com/davidgfnet/whatsapp-purple/issues/253","id":71063727,"number":253,"title":"libwhatsapp.dll is unknown","user":{"login":"G0Y0","id":12122773,"avatar_url":"https://avatars.githubusercontent.com/u/12122773?v=3","gravatar_id":"","url":"https://api.github.com/users/G0Y0","html_url":"https://github.com/G0Y0","followers_url":"https://api.github.com/users/G0Y0/followers","following_url":"https://api.github.com/users/G0Y0/following{/other_user}","gists_url":"https://api.github.com/users/G0Y0/gists{/gist_id}","starred_url":"https://api.github.com/users/G0Y0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/G0Y0/subscriptions","organizations_url":"https://api.github.com/users/G0Y0/orgs","repos_url":"https://api.github.com/users/G0Y0/repos","events_url":"https://api.github.com/users/G0Y0/events{/privacy}","received_events_url":"https://api.github.com/users/G0Y0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-26T12:59:17Z","updated_at":"2015-04-26T16:08:36Z","closed_at":null,"body":"After compiling the source code whatsapp-purple , loading the library libwhatsapp.dll Pigin not work and my account WhatsApp goes as unknown. I have many warnings when compiling , must be why , but not how to fix it . This is what I get when compiling:\r\n\r\nC:\\whatsapp-purple-master>mingw32-make -f Makefile.mingw\r\ni686-w64-mingw32-gcc -c -std=c++11 -Wno-unused-parameter -O2 -m32 -Wall -Wextra\r\n-fPIC -DPURPLE_PLUGINS -DPIC -IC:/mingw32/pidgin/libpurple    -I \"/pidgin/libpur\r\nple/\" -I \"/win32-dev/gtk_2_0-2.14/include/glib-2.0/\" -I \"/win32-dev/gtk_2_0-2.14\r\n/lib/glib-2.0/include/\" -o wa_purple.o wa_purple.c\r\ncc1.exe: warning: command line option '-std=c++11' is valid for C++/ObjC++ but n\r\not for C\r\nwa_purple.c:1:0: warning: -fPIC ignored for target (all code is position indepen\r\ndent)\r\n /**\r\n ^\r\nwa_purple.c: In function 'hasht_cmp_convo':\r\nwa_purple.c:336:60: warning: comparison between signed and unsigned integer expr\r\nessions [-Wsign-compare]\r\n  return (chatid_to_convo(g_hash_table_lookup(hasht, \"id\")) == *((int *)data));\r\n                                                            ^\r\nwa_purple.c: In function 'waprpl_output_cb':\r\nwa_purple.c:691:3: warning: implicit declaration of function 'wpurple_write' [-W\r\nimplicit-function-declaration]\r\n   ret = sys_write(wconn->fd, tempbuff, datatosend);\r\n   ^\r\nwa_purple.c: In function 'waprpl_input_cb':\r\nwa_purple.c:718:3: warning: implicit declaration of function 'wpurple_read' [-Wi\r\nmplicit-function-declaration]\r\n   ret = sys_read(wconn->fd, tempbuff, sizeof(tempbuff));\r\n   ^\r\nwa_purple.c: In function 'waprpl_close':\r\nwa_purple.c:850:3: warning: implicit declaration of function 'wpurple_close' [-W\r\nimplicit-function-declaration]\r\n   sys_close(wconn->fd);\r\n   ^\r\nwa_purple.c: In function 'waprpl_xfer_init':\r\nwa_purple.c:1385:2: warning: unknown conversion type character 'z' in format [-W\r\nformat=]\r\n  purple_debug_info(WHATSAPP_ID, \"Transfer file %s at %s with size %zu (given re\r\nf %d)\\n\", fn, fp, fs, xfer_info->ref_id);\r\n  ^\r\nwa_purple.c:1385:2: warning: too many arguments for format [-Wformat-extra-args]\r\n\r\ni686-w64-mingw32-gcc -c -std=c++11 -Wno-unused-parameter -O2 -m32 -Wall -Wextra\r\n-fPIC -DPURPLE_PLUGINS -DPIC -IC:/mingw32/pidgin/libpurple    -I \"/pidgin/libpur\r\nple/\" -I \"/win32-dev/gtk_2_0-2.14/include/glib-2.0/\" -I \"/win32-dev/gtk_2_0-2.14\r\n/lib/glib-2.0/include/\" -o tinfl.o tinfl.c\r\ncc1.exe: warning: command line option '-std=c++11' is valid for C++/ObjC++ but n\r\not for C\r\ntinfl.c:1:0: warning: -fPIC ignored for target (all code is position independent\r\n)\r\n /* tinfl.c v1.11 - public domain inflate with zlib header parsing/adler32 check\r\ning (inflate-only subset of miniz.c)\r\n ^\r\ni686-w64-mingw32-gcc -c -std=c++11 -Wno-unused-parameter -O2 -m32 -Wall -Wextra\r\n-fPIC -DPURPLE_PLUGINS -DPIC -IC:/mingw32/pidgin/libpurple    -I \"/pidgin/libpur\r\nple/\" -I \"/win32-dev/gtk_2_0-2.14/include/glib-2.0/\" -I \"/win32-dev/gtk_2_0-2.14\r\n/lib/glib-2.0/include/\" -o imgutil.o imgutil.c\r\ncc1.exe: warning: command line option '-std=c++11' is valid for C++/ObjC++ but n\r\not for C\r\nimgutil.c:1:0: warning: -fPIC ignored for target (all code is position independe\r\nnt)\r\n\r\n ^\r\nimgutil.c: In function 'imgProfile':\r\nimgutil.c:10:45: warning: passing argument 1 of 'FreeImage_OpenMemory' discards\r\n'const' qualifier from pointer target type\r\n  FIMEMORY * inimgmem = FreeImage_OpenMemory(data, size);\r\n                                             ^\r\nIn file included from imgutil.c:2:0:\r\nC:/mingw32/i686-w64-mingw32/include/FreeImage.h:825:32: note: expected 'BYTE *'\r\nbut argument is of type 'const unsigned char *'\r\n DLL_API FIMEMORY *DLL_CALLCONV FreeImage_OpenMemory(BYTE *data FI_DEFAULT(0), D\r\nWORD size_in_bytes FI_DEFAULT(0));\r\n                                ^\r\nimgutil.c: In function 'imgThumbnail':\r\nimgutil.c:53:45: warning: passing argument 1 of 'FreeImage_OpenMemory' discards\r\n'const' qualifier from pointer target type\r\n  FIMEMORY * inimgmem = FreeImage_OpenMemory(data, size);\r\n                                             ^\r\nIn file included from imgutil.c:2:0:\r\nC:/mingw32/i686-w64-mingw32/include/FreeImage.h:825:32: note: expected 'BYTE *'\r\nbut argument is of type 'const unsigned char *'\r\n DLL_API FIMEMORY *DLL_CALLCONV FreeImage_OpenMemory(BYTE *data FI_DEFAULT(0), D\r\nWORD size_in_bytes FI_DEFAULT(0));\r\n                                ^\r\ni686-w64-mingw32-g++ -c -std=c++11 -Wno-unused-parameter -O2 -m32 -Wall -Wextra\r\n-fPIC -DPURPLE_PLUGINS -DPIC -IC:/mingw32/pidgin/libpurple    -I \"/pidgin/libpur\r\nple/\" -I \"/win32-dev/gtk_2_0-2.14/include/glib-2.0/\" -I \"/win32-dev/gtk_2_0-2.14\r\n/lib/glib-2.0/include/\" -o whatsapp-protocol.o whatsapp-protocol.cc\r\nwhatsapp-protocol.cc:1:0: warning: -fPIC ignored for target (all code is positio\r\nn independent)\r\n\r\n ^\r\nIn file included from wa_connection.h:9:0,\r\n                 from whatsapp-protocol.cc:38:\r\nwacommon.h: In function 'long long unsigned int str2lng(std::string)':\r\nwacommon.h:16:31: warning: format '%u' expects argument of type 'unsigned int*',\r\n but argument 3 has type 'long long unsigned int*' [-Wformat=]\r\n  sscanf(s.c_str(), \"%I64u\", &r);\r\n                               ^\r\nwhatsapp-protocol.cc: At global scope:\r\nwhatsapp-protocol.cc:1139:12: warning: 'int isgroup(std::string)' defined but no\r\nt used [-Wunused-function]\r\n static int isgroup(const std::string user)\r\n            ^\r\ni686-w64-mingw32-g++ -c -std=c++11 -Wno-unused-parameter -O2 -m32 -Wall -Wextra\r\n-fPIC -DPURPLE_PLUGINS -DPIC -IC:/mingw32/pidgin/libpurple    -I \"/pidgin/libpur\r\nple/\" -I \"/win32-dev/gtk_2_0-2.14/include/glib-2.0/\" -I \"/win32-dev/gtk_2_0-2.14\r\n/lib/glib-2.0/include/\" -o wa_api.o wa_api.cc\r\nwa_api.cc:1:0: warning: -fPIC ignored for target (all code is position independe\r\nnt)\r\n\r\n ^\r\ni686-w64-mingw32-g++ -c -std=c++11 -Wno-unused-parameter -O2 -m32 -Wall -Wextra\r\n-fPIC -DPURPLE_PLUGINS -DPIC -IC:/mingw32/pidgin/libpurple    -I \"/pidgin/libpur\r\nple/\" -I \"/win32-dev/gtk_2_0-2.14/include/glib-2.0/\" -I \"/win32-dev/gtk_2_0-2.14\r\n/lib/glib-2.0/include/\" -o rc4.o rc4.cc\r\nrc4.cc:1:0: warning: -fPIC ignored for target (all code is position independent)\r\n\r\n\r\n ^\r\ni686-w64-mingw32-g++ -c -std=c++11 -Wno-unused-parameter -O2 -m32 -Wall -Wextra\r\n-fPIC -DPURPLE_PLUGINS -DPIC -IC:/mingw32/pidgin/libpurple    -I \"/pidgin/libpur\r\nple/\" -I \"/win32-dev/gtk_2_0-2.14/include/glib-2.0/\" -I \"/win32-dev/gtk_2_0-2.14\r\n/lib/glib-2.0/include/\" -o keygen.o keygen.cc\r\nkeygen.cc:1:0: warning: -fPIC ignored for target (all code is position independe\r\nnt)\r\n\r\n ^\r\ni686-w64-mingw32-g++ -c -std=c++11 -Wno-unused-parameter -O2 -m32 -Wall -Wextra\r\n-fPIC -DPURPLE_PLUGINS -DPIC -IC:/mingw32/pidgin/libpurple    -I \"/pidgin/libpur\r\nple/\" -I \"/win32-dev/gtk_2_0-2.14/include/glib-2.0/\" -I \"/win32-dev/gtk_2_0-2.14\r\n/lib/glib-2.0/include/\" -o tree.o tree.cc\r\ntree.cc:1:0: warning: -fPIC ignored for target (all code is position independent\r\n)\r\n\r\n ^\r\ni686-w64-mingw32-g++ -c -std=c++11 -Wno-unused-parameter -O2 -m32 -Wall -Wextra\r\n-fPIC -DPURPLE_PLUGINS -DPIC -IC:/mingw32/pidgin/libpurple    -I \"/pidgin/libpur\r\nple/\" -I \"/win32-dev/gtk_2_0-2.14/include/glib-2.0/\" -I \"/win32-dev/gtk_2_0-2.14\r\n/lib/glib-2.0/include/\" -o databuffer.o databuffer.cc\r\ndatabuffer.cc:1:0: warning: -fPIC ignored for target (all code is position indep\r\nendent)\r\n\r\n ^\r\nIn file included from wa_connection.h:9:0,\r\n                 from databuffer.cc:9:\r\nwacommon.h: In function 'long long unsigned int str2lng(std::string)':\r\nwacommon.h:16:31: warning: format '%u' expects argument of type 'unsigned int*',\r\n but argument 3 has type 'long long unsigned int*' [-Wformat=]\r\n  sscanf(s.c_str(), \"%I64u\", &r);\r\n                               ^\r\ndatabuffer.cc: In member function 'DataBuffer* DataBuffer::decompressedBuffer()'\r\n:\r\ndatabuffer.cc:112:14: warning: comparison of unsigned expression >= 0 is always\r\ntrue [-Wtype-limits]\r\n  if (outsize >= 0)\r\n              ^\r\nIn file included from wa_connection.h:9:0,\r\n                 from databuffer.cc:9:\r\nwacommon.h: At global scope:\r\nwacommon.h:12:27: warning: 'long long unsigned int str2lng(std::string)' defined\r\n but not used [-Wunused-function]\r\n static unsigned long long str2lng(std::string s)\r\n                           ^\r\nwacommon.h:23:20: warning: 'std::string i2s(unsigned int)' defined but not used\r\n[-Wunused-function]\r\n static std::string i2s(unsigned int num)\r\n                    ^\r\nwacommon.h:30:12: warning: 'int a2i(const string&)' defined but not used [-Wunus\r\ned-function]\r\n static int a2i(const std::string & s)\r\n            ^\r\nwacommon.h:37:15: warning: 'double str2dbl(std::string)' defined but not used [-\r\nWunused-function]\r\n static double str2dbl(std::string s)\r\n               ^\r\nwacommon.h:46:20: warning: 'std::string getusername(std::string)' defined but no\r\nt used [-Wunused-function]\r\n static std::string getusername(std::string user)\r\n                    ^\r\ni686-w64-mingw32-g++ -c -std=c++11 -Wno-unused-parameter -O2 -m32 -Wall -Wextra\r\n-fPIC -DPURPLE_PLUGINS -DPIC -IC:/mingw32/pidgin/libpurple    -I \"/pidgin/libpur\r\nple/\" -I \"/win32-dev/gtk_2_0-2.14/include/glib-2.0/\" -I \"/win32-dev/gtk_2_0-2.14\r\n/lib/glib-2.0/include/\" -o message.o message.cc\r\nmessage.cc:1:0: warning: -fPIC ignored for target (all code is position independ\r\nent)\r\n\r\n ^\r\nIn file included from message.cc:3:0:\r\nwacommon.h: In function 'long long unsigned int str2lng(std::string)':\r\nwacommon.h:16:31: warning: format '%u' expects argument of type 'unsigned int*',\r\n but argument 3 has type 'long long unsigned int*' [-Wformat=]\r\n  sscanf(s.c_str(), \"%I64u\", &r);\r\n                               ^\r\nwacommon.h: At global scope:\r\nwacommon.h:12:27: warning: 'long long unsigned int str2lng(std::string)' defined\r\n but not used [-Wunused-function]\r\n static unsigned long long str2lng(std::string s)\r\n                           ^\r\nwacommon.h:30:12: warning: 'int a2i(const string&)' defined but not used [-Wunus\r\ned-function]\r\n static int a2i(const std::string & s)\r\n            ^\r\nwacommon.h:37:15: warning: 'double str2dbl(std::string)' defined but not used [-\r\nWunused-function]\r\n static double str2dbl(std::string s)\r\n               ^\r\ni686-w64-mingw32-g++ -c -std=c++11 -Wno-unused-parameter -O2 -m32 -Wall -Wextra\r\n-fPIC -DPURPLE_PLUGINS -DPIC -IC:/mingw32/pidgin/libpurple    -I \"/pidgin/libpur\r\nple/\" -I \"/win32-dev/gtk_2_0-2.14/include/glib-2.0/\" -I \"/win32-dev/gtk_2_0-2.14\r\n/lib/glib-2.0/include/\" -o whatsapp_api.o whatsapp_api.cc\r\nwhatsapp_api.cc:1:0: warning: -fPIC ignored for target (all code is position ind\r\nependent)\r\n\r\n ^\r\nIn file included from wa_connection.h:9:0,\r\n                 from whatsapp_api.cc:3:\r\nwacommon.h: In function 'long long unsigned int str2lng(std::string)':\r\nwacommon.h:16:31: warning: format '%u' expects argument of type 'unsigned int*',\r\n but argument 3 has type 'long long unsigned int*' [-Wformat=]\r\n  sscanf(s.c_str(), \"%I64u\", &r);\r\n                               ^\r\nwacommon.h: At global scope:\r\nwacommon.h:12:27: warning: 'long long unsigned int str2lng(std::string)' defined\r\n but not used [-Wunused-function]\r\n static unsigned long long str2lng(std::string s)\r\n                           ^\r\nwacommon.h:23:20: warning: 'std::string i2s(unsigned int)' defined but not used\r\n[-Wunused-function]\r\n static std::string i2s(unsigned int num)\r\n                    ^\r\nwacommon.h:30:12: warning: 'int a2i(const string&)' defined but not used [-Wunus\r\ned-function]\r\n static int a2i(const std::string & s)\r\n            ^\r\nwacommon.h:37:15: warning: 'double str2dbl(std::string)' defined but not used [-\r\nWunused-function]\r\n static double str2dbl(std::string s)\r\n               ^\r\nwacommon.h:46:20: warning: 'std::string getusername(std::string)' defined but no\r\nt used [-Wunused-function]\r\n static std::string getusername(std::string user)\r\n                    ^\r\ni686-w64-mingw32-g++ -shared  -o libwhatsapp.dll wa_purple.o tinfl.o imgutil.o w\r\nhatsapp-protocol.o wa_api.o rc4.o keygen.o tree.o databuffer.o message.o whatsap\r\np_api.o libwhatsapp.res    -lfreeimage -L \"/win32-dev/gtk_2_0-2.14/lib/\" -L \"/pi\r\ndgin/libpurple/\" -lglib-2.0 -lpurple -static-libgcc -static-libstdc++\r\nstrip --strip-debug --discard-locals libwhatsapp.dll\r\n\r\nC:\\whatsapp-purple-master>"},"comment":{"url":"https://api.github.com/repos/davidgfnet/whatsapp-purple/issues/comments/96403727","html_url":"https://github.com/davidgfnet/whatsapp-purple/issues/253#issuecomment-96403727","issue_url":"https://api.github.com/repos/davidgfnet/whatsapp-purple/issues/253","id":96403727,"user":{"login":"davidgfnet","id":3145339,"avatar_url":"https://avatars.githubusercontent.com/u/3145339?v=3","gravatar_id":"","url":"https://api.github.com/users/davidgfnet","html_url":"https://github.com/davidgfnet","followers_url":"https://api.github.com/users/davidgfnet/followers","following_url":"https://api.github.com/users/davidgfnet/following{/other_user}","gists_url":"https://api.github.com/users/davidgfnet/gists{/gist_id}","starred_url":"https://api.github.com/users/davidgfnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidgfnet/subscriptions","organizations_url":"https://api.github.com/users/davidgfnet/orgs","repos_url":"https://api.github.com/users/davidgfnet/repos","events_url":"https://api.github.com/users/davidgfnet/events{/privacy}","received_events_url":"https://api.github.com/users/davidgfnet/received_events","type":"User","site_admin":false},"created_at":"2015-04-26T16:08:35Z","updated_at":"2015-04-26T16:08:35Z","body":"It's a pain to debug, but my guess is that you are missing FreeImage.dll, so pidgin cannot load the dll. Run pidgin as \"pidgin --debug\" it will give some extra info (although not much)"}}