我的也出了这错误啊
在makefile中加了-static然后再make就一堆错误:
g++ -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.5.3/lib -Wl,-rpath,/usr/local/Trolltech/Qt-4.5.3/lib -o ErrInjectTool .obj/release-static/errinjecttool.o .obj/release-static/main.o .obj/release-static/moc_errinjecttool.o -L/usr/local/Trolltech/Qt-4.5.3/lib -lQtGui -L/usr/local/Trolltech/Qt-4.5.3/lib -L/usr/X11R6/lib -pthread -lpng -lfreetype -lSM -lICE -pthread -pthread -lXrender -lfontconfig -lXext -lX11 -lQtCore -lz -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread -static
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(CrGlCur.o): In function `open_library':
(.text+0x3b): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/Trolltech/Qt-4.5.3/lib/libQtCore.a(qfsfileengine_unix.o): In function `QFSFileEngine::owner(QAbstractFileEngine::FileOwner) const':
qfsfileengine_unix.cpp:(.text+0xabe): warning: Using 'getgrgid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libglib-2.0.a(gutils.o): In function `g_get_any_init_do':
(.text+0x14be): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libglib-2.0.a(gutils.o): In function `g_get_any_init_do':
(.text+0x14b1): warning: Using 'setpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libglib-2.0.a(gutils.o): In function `g_get_any_init_do':
(.text+0x14c6): warning: Using 'endpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(GetDflt.o): In function `GetHomeDir':
(.text+0xa9): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/Trolltech/Qt-4.5.3/lib/libQtGui.a(qapplication_x11.o): In function `sm_performSaveYourself(QSessionManagerPrivate*)':
qapplication_x11.cpp:(.text+0x8a25): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libICE.a(icetrans.o): In function `_IceTransSocketOpen':
(.text+0x15ac): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libICE.a(icetrans.o): In function `_IceTransGetPeerNetworkId':
(.text+0x279d): warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libICE.a(icetrans.o): In function `_IceTransSocketUNIXConnect':
(.text+0x29fb): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libICE.a(icetrans.o): In function `_IceTransSocketINETConnect':
(.text+0x30ca): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libfontconfig.a(fcfreetype.o): In function `FcFreeTypeQueryFace':
(.text+0x245e): undefined reference to `FT_Get_BDF_Property'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libfontconfig.a(fcfreetype.o): In function `FcFreeTypeQueryFace':
(.text+0x248f): undefined reference to `FT_Get_BDF_Property'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libfontconfig.a(fcfreetype.o): In function `FcFreeTypeQueryFace':
(.text+0x27a3): undefined reference to `FT_Get_X11_Font_Format'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libfontconfig.a(fcfreetype.o): In function `FcFreeTypeQueryFace':
(.text+0x27e8): undefined reference to `FT_Get_BDF_Property'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libfontconfig.a(fcfreetype.o): In function `FcFreeTypeQueryFace':
(.text+0x2812): undefined reference to `FT_Get_BDF_Property'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libfontconfig.a(fcfreetype.o): In function `FcFreeTypeQueryFace':
(.text+0x28e4): undefined reference to `FT_Get_BDF_Property'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libfontconfig.a(fcfreetype.o): In function `FcFreeTypeQueryFace':
(.text+0x2a6c): undefined reference to `FT_Get_BDF_Property'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libfontconfig.a(fcfreetype.o): In function `FcFreeTypeQueryFace':
(.text+0x2ac1): undefined reference to `FT_Get_BDF_Property'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libfontconfig.a(fcfreetype.o):(.text+0x2aea): more undefined references to `FT_Get_BDF_Property' follow
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libfontconfig.a(fcxml.o): In function `FcConfigMessage':
(.text+0x25a): undefined reference to `XML_GetCurrentLineNumber'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libfontconfig.a(fcxml.o): In function `FcConfigMessage':
(.text+0x2e7): undefined reference to `XML_GetCurrentLineNumber'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libfontconfig.a(fcxml.o): In function `FcConfigParseAndLoad':
(.text+0x1c60): undefined reference to `XML_ParserCreate'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libfontconfig.a(fcxml.o): In function `FcConfigParseAndLoad':
(.text+0x1ca5): undefined reference to `XML_SetUserData'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libfontconfig.a(fcxml.o): In function `FcConfigParseAndLoad':
(.text+0x1cbd): undefined reference to `XML_SetDoctypeDeclHandler'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libfontconfig.a(fcxml.o): In function `FcConfigParseAndLoad':
(.text+0x1cd5): undefined reference to `XML_SetElementHandler'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libfontconfig.a(fcxml.o): In function `FcConfigParseAndLoad':
(.text+0x1ce5): undefined reference to `XML_SetCharacterDataHandler'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libfontconfig.a(fcxml.o): In function `FcConfigParseAndLoad':
(.text+0x1cfc): undefined reference to `XML_GetBuffer'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libfontconfig.a(fcxml.o): In function `FcConfigParseAndLoad':
(.text+0x1d3c): undefined reference to `XML_ParseBuffer'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libfontconfig.a(fcxml.o): In function `FcConfigParseAndLoad':
(.text+0x1d64): undefined reference to `XML_ParserFree'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libfontconfig.a(fcxml.o): In function `FcConfigParseAndLoad':
(.text+0x2047): undefined reference to `XML_GetErrorCode'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libfontconfig.a(fcxml.o): In function `FcConfigParseAndLoad':
(.text+0x204f): undefined reference to `XML_ErrorString'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(ClDisplay.o): In function `XCloseDisplay':
(.text+0xbe): undefined reference to `xcb_disconnect'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(OpenDis.o): In function `OutOfMemory':
(.text+0x3fa): undefined reference to `xcb_disconnect'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(OpenDis.o): In function `XOpenDisplay':
(.text+0x7e2): undefined reference to `xcb_get_setup'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(OpenDis.o): In function `XOpenDisplay':
(.text+0xc29): undefined reference to `xcb_get_maximum_request_length'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_lock.o): In function `_XPutXCBBuffer':
(.text+0xdd): undefined reference to `xcb_get_request_sent'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_lock.o): In function `_XPutXCBBuffer':
(.text+0x30e): undefined reference to `xcb_get_request_sent'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_lock.o): In function `_XPutXCBBuffer':
(.text+0x33d): undefined reference to `xcb_send_request'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_lock.o): In function `_XGetXCBBuffer':
(.text+0x568): undefined reference to `xcb_get_request_sent'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_lock.o): In function `_XGetXCBBuffer':
(.text+0x57b): undefined reference to `xcb_connection_has_error'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_lock.o): In function `_XCBUnlockDisplay':
(.text+0x6ad): undefined reference to `xcb_xlib_unlock'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_lock.o): In function `_XCBUnlockDisplay':
(.text+0x6e0): undefined reference to `xcb_get_request_sent'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_lock.o): In function `_XCBLockDisplay':
(.text+0x78d): undefined reference to `xcb_xlib_lock'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x94): undefined reference to `xcb_parse_display'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x147): undefined reference to `xcb_connect_to_display_with_auth_info'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x165): undefined reference to `xcb_get_file_descriptor'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x18e): undefined reference to `xcb_generate_id'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x199): undefined reference to `xcb_connection_has_error'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_disp.o): In function `_XConnectXCB':
(.text+0x1c3): undefined reference to `xcb_connect'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_io.o): In function `wait_or_poll_for_event':
(.text+0x3ef): undefined reference to `xcb_wait_for_event'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_io.o): In function `wait_or_poll_for_event':
(.text+0x414): undefined reference to `xcb_poll_for_event'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_io.o): In function `process_responses':
(.text+0x4c3): undefined reference to `xcb_connection_has_error'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_io.o): In function `process_responses':
(.text+0x519): undefined reference to `xcb_xlib_unlock'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_io.o): In function `process_responses':
(.text+0x543): undefined reference to `xcb_xlib_lock'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_io.o): In function `process_responses':
(.text+0x5de): undefined reference to `xcb_poll_for_reply'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_io.o): In function `_XReply':
(.text+0x890): undefined reference to `xcb_xlib_unlock'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_io.o): In function `_XReply':
(.text+0x8bb): undefined reference to `xcb_wait_for_reply'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_io.o): In function `_XAllocIDs':
(.text+0xb60): undefined reference to `xcb_generate_id'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_io.o): In function `_XIDHandler':
(.text+0xb98): undefined reference to `xcb_generate_id'
/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libX11.a(xcb_io.o): In function `_XSend':
(.text+0xc45): undefined reference to `xcb_flush'
collect2: ld returned 1 exit status
make: *** [ErrInjectTool] Error 1
高人出来指点啊