| Summary: | Error compiling 1.2.8 or hg clone | ||
|---|---|---|---|
| Product: | SDL_net | Reporter: | Robin Cook <rcook> |
| Component: | misc | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 1.2.8 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
Fixed, thanks! http://hg.libsdl.org/SDL_net/rev/8880746bb432 |
I get the below error when I compile 1.2.8 of sdl_net. 1.2.7 compiles with no problem. /bin/sh ./libtool --tag=CC --mode=link gcc -march=native -mtune=native -m64 -pipe -DPIC -fPIC -O3 -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -no-undefined -release 1.2 -version-info 8:0:8 -o libSDL_net.la -rpath /usr/lib SDLnet.lo SDLnetTCP.lo SDLnetUDP.lo SDLnetselect.lo -Wl,-rpath,/usr/lib -lSDL -lpthread libtool: link: gcc -shared .libs/SDLnet.o .libs/SDLnetTCP.o .libs/SDLnetUDP.o .libs/SDLnetselect.o /usr/lib/libSDL.so -L/usr/lib /usr/lib/libdirectfb.so /usr/lib/libfusion.so /usr/lib/libdirect.so -lz -lvga /usr/lib/libaa.so -lslang -lm /usr/lib/libX11.so /usr/lib/libxcb.so /usr/lib/libXau.so /usr/lib/libXdmcp.so -ldl -lpthread -march=native -mtune=native -m64 -Wl,-rpath -Wl,/usr/lib -Wl,-soname -Wl,libSDL_net-1.2.so.0 -o .libs/libSDL_net-1.2.so.0.8.0 libtool: link: (cd ".libs" && rm -f "libSDL_net-1.2.so.0" && ln -s "libSDL_net-1.2.so.0.8.0" "libSDL_net-1.2.so.0") libtool: link: (cd ".libs" && rm -f "libSDL_net.so" && ln -s "libSDL_net-1.2.so.0.8.0" "libSDL_net.so") libtool: link: ar cru .libs/libSDL_net.a SDLnet.o SDLnetTCP.o SDLnetUDP.o SDLnetselect.o libtool: link: ranlib .libs/libSDL_net.a libtool: link: ( cd ".libs" && rm -f "libSDL_net.la" && ln -s "../libSDL_net.la" "libSDL_net.la" ) /bin/sh ./libtool --tag=CC --mode=link gcc -march=native -mtune=native -m64 -pipe -DPIC -fPIC -O3 -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -o showinterfaces showinterfaces.o libSDL_net.la -Wl,-rpath,/usr/lib -lSDL -lpthread libtool: link: gcc -march=native -mtune=native -m64 -pipe -DPIC -fPIC -O3 -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -o .libs/showinterfaces showinterfaces.o -Wl,-rpath -Wl,/usr/lib ./.libs/libSDL_net.so -L/usr/lib /usr/lib/libSDL.so /usr/lib/libdirectfb.so /usr/lib/libfusion.so /usr/lib/libdirect.so -lz -lvga /usr/lib/libaa.so -lslang -lm /usr/lib/libX11.so /usr/lib/libxcb.so /usr/lib/libXau.so /usr/lib/libXdmcp.so -ldl -lpthread g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"SDL_net\" -DVERSION=\"1.2.8\" -I. -march=native -mtune=native -m64 -pipe -DPIC -fPIC -O3 -march=native -mtune=native -m64 -pipe -DPIC -fPIC -O3 -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -MT chat.o -MD -MP -MF .deps/chat.Tpo -c -o chat.o chat.cpp chat.cpp:22:5: error: stray '@' in program chat.cpp:21:5: error: 'Pleasanton' does not name a type In file included from chat.cpp:31:0: /usr/include/stdlib.h:140:8: error: 'size_t' does not name a type In file included from /usr/include/stdlib.h:320:0, from chat.cpp:31: /usr/include/sys/types.h:34:9: error: '__u_char' does not name a type /usr/include/sys/types.h:35:9: error: '__u_short' does not name a type /usr/include/sys/types.h:36:9: error: '__u_int' does not name a type /usr/include/sys/types.h:37:9: error: '__u_long' does not name a type /usr/include/sys/types.h:38:9: error: '__quad_t' does not name a type /usr/include/sys/types.h:39:9: error: '__u_quad_t' does not name a type /usr/include/sys/types.h:40:9: error: '__fsid_t' does not name a type /usr/include/sys/types.h:45:9: error: '__loff_t' does not name a type /usr/include/sys/types.h:49:9: error: '__ino_t' does not name a type /usr/include/sys/types.h:56:9: error: '__ino64_t' does not name a type /usr/include/sys/types.h:61:9: error: '__dev_t' does not name a type /usr/include/sys/types.h:66:9: error: '__gid_t' does not name a type /usr/include/sys/types.h:71:9: error: '__mode_t' does not name a type /usr/include/sys/types.h:76:9: error: '__nlink_t' does not name a type /usr/include/sys/types.h:81:9: error: '__uid_t' does not name a type /usr/include/sys/types.h:99:9: error: '__pid_t' does not name a type /usr/include/sys/types.h:105:9: error: '__id_t' does not name a type /usr/include/sys/types.h:116:9: error: '__daddr_t' does not name a type /usr/include/sys/types.h:117:9: error: '__caddr_t' does not name a type /usr/include/sys/types.h:123:9: error: '__key_t' does not name a type In file included from /usr/include/sys/types.h:133:0, from /usr/include/stdlib.h:320, from chat.cpp:31: /usr/include/time.h:60:9: error: '__clock_t' does not name a type /usr/include/time.h:76:9: error: '__time_t' does not name a type /usr/include/time.h:92:9: error: '__clockid_t' does not name a type /usr/include/time.h:104:9: error: '__timer_t' does not name a type In file included from /usr/include/stdlib.h:320:0, from chat.cpp:31: /usr/include/sys/types.h:137:9: error: '__useconds_t' does not name a type /usr/include/sys/types.h:141:9: error: '__suseconds_t' does not name a type In file included from /usr/include/sys/select.h:44:0, from /usr/include/sys/types.h:220, from /usr/include/stdlib.h:320, from chat.cpp:31: /usr/include/time.h:122:5: error: '__time_t' does not name a type In file included from /usr/include/sys/select.h:46:0, from /usr/include/sys/types.h:220, from /usr/include/stdlib.h:320, from chat.cpp:31: /usr/include/bits/time.h:77:5: error: '__time_t' does not name a type /usr/include/bits/time.h:78:5: error: '__suseconds_t' does not name a type In file included from /usr/include/stdlib.h:320:0, from chat.cpp:31: /usr/include/sys/types.h:229:9: error: '__blksize_t' does not name a type /usr/include/sys/types.h:236:9: error: '__blkcnt_t' does not name a type /usr/include/sys/types.h:240:9: error: '__fsblkcnt_t' does not name a type /usr/include/sys/types.h:244:9: error: '__fsfilcnt_t' does not name a type /usr/include/sys/types.h:263:9: error: '__blkcnt64_t' does not name a type /usr/include/sys/types.h:264:9: error: '__fsblkcnt64_t' does not name a type /usr/include/sys/types.h:265:9: error: '__fsfilcnt64_t' does not name a type In file included from chat.cpp:31:0: /usr/include/stdlib.h:337:4: error: 'size_t' has not been declared /usr/include/stdlib.h:367:4: error: 'size_t' has not been declared /usr/include/stdlib.h:471:22: error: 'size_t' was not declared in this scope /usr/include/stdlib.h:471:37: error: expected ',' or ';' before 'throw' /usr/include/stdlib.h:473:22: error: 'size_t' was not declared in this scope /usr/include/stdlib.h:473:38: error: 'size_t' was not declared in this scope /usr/include/stdlib.h:473:51: error: expression list treated as compound expression in initializer [-fpermissive] /usr/include/stdlib.h:474:6: error: expected ',' or ';' before 'throw' /usr/include/stdlib.h:485:36: error: 'size_t' has not been declared In file included from /usr/include/stdlib.h:497:0, from chat.cpp:31: /usr/include/alloca.h:33:22: error: 'size_t' was not declared in this scope /usr/include/alloca.h:33:37: error: expected ',' or ';' before 'throw' In file included from chat.cpp:31:0: /usr/include/stdlib.h:503:22: error: 'size_t' was not declared in this scope /usr/include/stdlib.h:503:37: error: expected ',' or ';' before 'throw' /usr/include/stdlib.h:508:45: error: 'size_t' has not been declared /usr/include/stdlib.h:508:65: error: 'size_t' has not been declared /usr/include/stdlib.h:756:9: error: 'size_t' has not been declared /usr/include/stdlib.h:756:25: error: 'size_t' has not been declared /usr/include/stdlib.h:761:34: error: 'size_t' has not been declared /usr/include/stdlib.h:761:50: error: 'size_t' has not been declared /usr/include/stdlib.h:764:36: error: 'size_t' has not been declared /usr/include/stdlib.h:764:52: error: 'size_t' has not been declared /usr/include/stdlib.h:840:6: error: 'size_t' has not been declared /usr/include/stdlib.h:843:6: error: 'size_t' has not been declared /usr/include/stdlib.h:847:31: error: 'size_t' has not been declared /usr/include/stdlib.h:851:31: error: 'size_t' has not been declared /usr/include/stdlib.h:860:38: error: 'size_t' has not been declared /usr/include/stdlib.h:864:36: error: 'size_t' has not been declared /usr/include/stdlib.h:871:8: error: 'size_t' does not name a type /usr/include/stdlib.h:874:8: error: 'size_t' does not name a type /usr/include/stdlib.h:937:46: error: 'size_t' has not been declared In file included from chat.cpp:32:0: /usr/include/string.h:45:40: error: 'size_t' has not been declared /usr/include/string.h:49:58: error: 'size_t' has not been declared /usr/include/string.h:58:18: error: 'size_t' has not been declared /usr/include/string.h:65:42: error: 'size_t' has not been declared /usr/include/string.h:68:60: error: 'size_t' has not been declared /usr/include/string.h:75:42: error: 'size_t' has not been declared /usr/include/string.h:77:58: error: 'size_t' has not been declared /usr/include/string.h:82:29: error: 'size_t' has not been declared /usr/include/string.h:88:37: error: 'size_t' has not been declared /usr/include/string.h:115:49: error: 'size_t' has not been declared /usr/include/string.h:117:65: error: 'size_t' has not been declared /usr/include/string.h:132:41: error: 'size_t' has not been declared /usr/include/string.h:140:9: error: 'size_t' has not been declared /usr/include/string.h:146:61: error: 'size_t' has not been declared /usr/include/string.h:153:8: error: 'size_t' does not name a type /usr/include/string.h:168:8: error: 'size_t' does not name a type /usr/include/string.h:183:47: error: 'size_t' has not been declared /usr/include/string.h:284:8: error: 'size_t' does not name a type /usr/include/string.h:288:8: error: 'size_t' does not name a type /usr/include/string.h:382:48: error: 'size_t' has not been declared /usr/include/string.h:383:32: error: 'size_t' has not been declared /usr/include/string.h:389:36: error: 'size_t' has not been declared /usr/include/string.h:392:41: error: 'size_t' has not been declared /usr/include/string.h:399:8: error: 'size_t' does not name a type /usr/include/string.h:406:8: error: 'size_t' does not name a type /usr/include/string.h:438:53: error: 'size_t' has not been declared /usr/include/string.h:451:33: error: 'size_t' has not been declared /usr/include/string.h:455:55: error: 'size_t' has not been declared /usr/include/string.h:459:31: error: 'size_t' has not been declared /usr/include/string.h:462:58: error: 'size_t' has not been declared /usr/include/string.h:540:65: error: 'size_t' has not been declared /usr/include/string.h:552:6: error: 'size_t' has not been declared /usr/include/string.h:577:36: error: 'size_t' has not been declared /usr/include/string.h:580:41: error: 'size_t' has not been declared /usr/include/string.h:593:34: error: 'size_t' has not been declared In file included from /usr/include/SDL/SDL_stdinc.h:71:0, from /usr/include/SDL/SDL_main.h:26, from /usr/include/SDL/SDL.h:30, from SDL_net.h:27, from chat.cpp:34: /usr/include/ctype.h:83:16: error: '__int32_t' does not name a type /usr/include/ctype.h:85:16: error: '__int32_t' does not name a type In file included from /usr/include/SDL/SDL_stdinc.h:74:0, from /usr/include/SDL/SDL_main.h:26, from /usr/include/SDL/SDL.h:30, from SDL_net.h:27, from chat.cpp:34: /usr/include/iconv.h:43:8: error: 'size_t' does not name a type In file included from /usr/include/SDL/SDL_main.h:26:0, from /usr/include/SDL/SDL.h:30, from SDL_net.h:27, from chat.cpp:34: /usr/include/SDL/SDL_stdinc.h:370:71: error: 'size_t' has not been declared /usr/include/SDL/SDL_stdinc.h:403:17: error: 'size_t' does not name a type /usr/include/SDL/SDL_stdinc.h:409:17: error: 'size_t' does not name a type /usr/include/SDL/SDL_stdinc.h:605:17: error: 'size_t' does not name a type In file included from /usr/include/SDL/SDL_main.h:26:0, from /usr/include/SDL/SDL.h:30, from SDL_net.h:27, from chat.cpp:34: /usr/include/SDL/SDL_stdinc.h:609:110: error: 'size_t' has not been declared In file included from /usr/include/SDL/SDL_audio.h:36:0, from /usr/include/SDL/SDL.h:32, from SDL_net.h:27, from chat.cpp:34: /usr/include/SDL/SDL_rwops.h:80:4: error: 'FILE' does not name a type /usr/include/SDL/SDL_rwops.h:102:50: warning: 'SDL_RWFromFP' initialized and declared 'extern' [enabled by default] /usr/include/SDL/SDL_rwops.h:102:50: error: 'FILE' was not declared in this scope /usr/include/SDL/SDL_rwops.h:102:56: error: 'fp' was not declared in this scope /usr/include/SDL/SDL_rwops.h:102:60: error: expected primary-expression before 'int' /usr/include/SDL/SDL_rwops.h:102:73: error: expression list treated as compound expression in initializer [-fpermissive] In file included from /usr/include/GUI/GUI.h:12:0, from chat.cpp:39: /usr/include/GUI/GUI_widget.h: In member function 'void GUI_Widget::SetError(char*, ...)': /usr/include/GUI/GUI_widget.h:119:3: error: 'va_list' was not declared in this scope /usr/include/GUI/GUI_widget.h:119:11: error: expected ';' before 'ap' /usr/include/GUI/GUI_widget.h:121:3: error: 'ap' was not declared in this scope /usr/include/GUI/GUI_widget.h:122:27: error: 'vsprintf' was not declared in this scope In file included from /usr/include/GUI/GUI_button.h:11:0, from /usr/include/GUI/GUI_widgets.h:13, from chat.cpp:40: /usr/include/GUI/GUI_font.h: In member function 'virtual void GUI_Font::TextExtent(char*, int*, int*)': /usr/include/GUI/GUI_font.h:42:20: error: 'strlen' was not declared in this scope In file included from /usr/include/GUI/GUI_widgets.h:16:0, from chat.cpp:40: /usr/include/GUI/GUI_menu.h: In member function 'virtual int GUI_Submenu::GetLength()': /usr/include/GUI/GUI_menu.h:51:24: error: 'strlen' was not declared in this scope chat.cpp: At global scope: chat.cpp:66:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] chat.cpp:66:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] chat.cpp:66:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] chat.cpp: In function 'void SendHello(char*)': chat.cpp:85:9: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] chat.cpp:93:19: error: 'strlen' was not declared in this scope chat.cpp: In function 'int main(int, char**)': chat.cpp:389:11: error: 'stderr' was not declared in this scope chat.cpp:389:50: error: 'fprintf' was not declared in this scope chat.cpp:395:25: error: 'stderr' was not declared in this scope chat.cpp:395:79: error: 'fprintf' was not declared in this scope chat.cpp:402:25: error: 'stderr' was not declared in this scope chat.cpp:402:79: error: 'fprintf' was not declared in this scope chat.cpp:409:11: error: 'stderr' was not declared in this scope chat.cpp:410:24: error: 'fprintf' was not declared in this scope chat.cpp:424:12: error: 'stderr' was not declared in this scope chat.cpp:425:36: error: 'fprintf' was not declared in this scope chat.cpp:436:11: error: 'stderr' was not declared in this scope chat.cpp:436:63: error: 'fprintf' was not declared in this scope chat.cpp:469:11: error: 'stderr' was not declared in this scope chat.cpp:470:24: error: 'fprintf' was not declared in this scope make: *** [chat.o] Error 1