I built opencv with the following cmake options:
cmake -G "Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_TBB=OFF -DWITH_OPENMP=ON -DCMAKE_C_COMPILER=icc -DCMAKE_CXX_COMPILER=icpc -DCMAKE_CXX_FLAGS="-debug inline-debug-info -parallel-source-info=2 -ipo -parallel -xCORE-AVX2 -Bdynamic" ..
However, when I try to build (with icpc) the application which uses opencv (built with icpc) these warning messages appears:
icpc -shared-intel -L/home/luca/ParallelOpenCV/originalOpenCV/lib -parallel -o "SURFAllInOne" ./main.o ./surf.o -lopencv_core -lopencv_xfeatures2d -lopencv_highgui -lopencv_imgproc -lopencv_imgcodecs
ipo: warning #11021: unresolved gzeof
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_core.so
ipo: warning #11021: unresolved gzrewind
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_core.so
ipo: warning #11021: unresolved gzopen
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_core.so
ipo: warning #11021: unresolved gzclose
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_core.so
ipo: warning #11021: unresolved gzgets
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_core.so
ipo: warning #11021: unresolved gzputs
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_core.so
ipo: warning #11021: unresolved _ZNK2cv9Feature2D14descriptorSizeEv
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_xfeatures2d.so
ipo: warning #11021: unresolved _ZN2cv9Feature2D4readERKNS_8FileNodeE
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_xfeatures2d.so
ipo: warning #11021: unresolved _ZNK2cv9Feature2D14descriptorTypeEv
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_xfeatures2d.so
ipo: warning #11021: unresolved _ZN2cv9Feature2D7computeERKNS_11_InputArrayERSt6vectorINS_8KeyPointESaIS5_EERKNS_12_OutputArrayE
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_xfeatures2d.so
ipo: warning #11021: unresolved _ZTTN2cv9Feature2DE
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_xfeatures2d.so
ipo: warning #11021: unresolved _ZN2cv15KeyPointsFilter16runByImageBorderERSt6vectorINS_8KeyPointESaIS2_EENS_5Size_IiEEi
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_xfeatures2d.so
ipo: warning #11021: unresolved _ZN2cv15KeyPointsFilter10retainBestERSt6vectorINS_8KeyPointESaIS2_EEi
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_xfeatures2d.so
ipo: warning #11021: unresolved _ZN2cv9Feature2DD2Ev
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_xfeatures2d.so
ipo: warning #11021: unresolved _ZN2cv9Feature2D16detectAndComputeERKNS_11_InputArrayES3_RSt6vectorINS_8KeyPointESaIS5_EERKNS_12_OutputArrayEb
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_xfeatures2d.so
ipo: warning #11021: unresolved _ZN2cv15KeyPointsFilter16removeDuplicatedERSt6vectorINS_8KeyPointESaIS2_EE
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_xfeatures2d.so
ipo: warning #11021: unresolved _ZN2cv9Feature2D6detectERKNS_11_InputArrayERSt6vectorINS_8KeyPointESaIS5_EES3_
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_xfeatures2d.so
ipo: warning #11021: unresolved _ZN2cv9Feature2D6detectERKNS_11_InputArrayERSt6vectorIS4_INS_8KeyPointESaIS5_EESaIS7_EES3_
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_xfeatures2d.so
ipo: warning #11021: unresolved _ZTIN2cv9Feature2DE
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_xfeatures2d.so
ipo: warning #11021: unresolved _ZN2cv9Feature2D7computeERKNS_11_InputArrayERSt6vectorIS4_INS_8KeyPointESaIS5_EESaIS7_EERKNS_12_OutputArrayE
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_xfeatures2d.so
ipo: warning #11021: unresolved _ZNK2cv9Feature2D5emptyEv
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_xfeatures2d.so
ipo: warning #11021: unresolved _ZNK2cv9Feature2D11defaultNormEv
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_xfeatures2d.so
ipo: warning #11021: unresolved _ZNK2cv9Feature2D5writeERNS_11FileStorageE
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_xfeatures2d.so
ipo: warning #11021: unresolved _ZN2cv15KeyPointsFilter15runByPixelsMaskERSt6vectorINS_8KeyPointESaIS2_EERKNS_3MatE
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_xfeatures2d.so
ipo: warning #11021: unresolved gtk_file_chooser_set_do_overwrite_confirmation
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_mutex_lock
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_main_iteration
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_window_resize
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_get_current_time
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_file_chooser_set_current_name
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_type_check_instance_cast
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_widget_destroy
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_window_fullscreen
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_mutex_unlock
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_box_pack_end
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_widget_get_colormap
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_cond_broadcast
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_box_pack_start
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gdk_cairo_set_source_pixbuf
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_signal_connect_data
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_widget_add_events
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_window_set_title
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved cairo_paint
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_free
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_dialog_run
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gdk_window_move_resize
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_range_set_range
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_source_remove
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_range_get_type
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_main_iteration_do
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_cond_new
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_init
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_file_chooser_add_filter
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_range_set_value
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_window_get_title
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_cond_timed_wait
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_file_filter_new
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_thread_yield
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_return_if_fail_warning
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_window_set_geometry_hints
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_window_set_resizable
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_widget_queue_resize
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_widget_get_events
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_file_chooser_set_filter
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_label_new
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_dialog_get_type
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_file_filter_add_pattern
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_time_val_add
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_object_get_type
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_box_get_type
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gdk_window_set_user_data
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_window_move
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_widget_new
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_file_chooser_get_type
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_container_get_type
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_type_class_peek
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_widget_get_visual
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_file_chooser_get_filename
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_type_register_static_simple
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_scale_set_draw_value
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_widget_get_window
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_vbox_new
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_range_get_value
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gdk_cairo_create
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_style_set_background
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_type_check_class_cast
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_thread_new
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_timeout_add
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_file_filter_set_name
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gdk_window_new
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_hbox_new
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_object_unref
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_type_check_instance_is_a
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_events_pending
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_window_new
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_scale_get_type
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_window_unfullscreen
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_usleep
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_widget_queue_draw
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_thread_self
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_widget_show
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_file_chooser_dialog_new
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_widget_get_realized
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_hscale_new_with_range
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_container_add
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_cond_wait
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved cairo_destroy
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gdk_pixbuf_new_from_data
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_scale_set_digits
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_window_get_type
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_widget_get_type
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_style_attach
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved g_mutex_new
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved gtk_widget_set_realized
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_highgui.so
ipo: warning #11021: unresolved deflateParams
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_imgcodecs.so
ipo: warning #11021: unresolved inflate
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_imgcodecs.so
ipo: warning #11021: unresolved deflateReset
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_imgcodecs.so
ipo: warning #11021: unresolved inflateInit_
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_imgcodecs.so
ipo: warning #11021: unresolved deflateInit_
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_imgcodecs.so
ipo: warning #11021: unresolved inflateReset
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_imgcodecs.so
ipo: warning #11021: unresolved deflate
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_imgcodecs.so
ipo: warning #11021: unresolved uncompress
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_imgcodecs.so
ipo: warning #11021: unresolved deflateEnd
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_imgcodecs.so
ipo: warning #11021: unresolved compress
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_imgcodecs.so
ipo: warning #11021: unresolved inflateSync
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_imgcodecs.so
ipo: warning #11021: unresolved inflateEnd
Referenced in /home/luca/ParallelOpenCV/originalOpenCV/lib/libopencv_imgcodecs.so
What does this means? The code is correct but I wonder if I should bother about this (especially if this make the code slower, I talk about it here)
It seems like this has been an issue for a long time in Intel compilers when you use it with -ipo (inter procedural optimizations) flag. This is a known issue. The issue surfaces when the libraries you use also build with other libraries. But we do not explicitly list these other libraries when we build our application. In fact you don't have to. But inter-procedural analysis fail to figure out these other libraries and therefore the analysis fails resulting not producing any optimizations related to -ipo. Therefore, the degrade in possible/achievable performance.
The workaround is to list all the libraries used (transitively) in the compilation command of your application using -l.
For example, let's say my application needs an library A (liba) and liba was compiled with libraries B (libb) and C (libc).
Usually at link time of our application we specify -lliba in our command. But with -ipo compiler option this is not enough. You also have to specify -llibb -llibc in your compilation command as well.
Find the libraries:
You can start either from your make file or from the warning message
i.e. your warning message listed following libs: libopencv_core.so, libopencv_xfeatures2d.so, libopencv_highgui.so and libopencv_imgcodecs.so
Then for each lib run ldd libname
This will give you the list of libs referred by libname library. You have to recursively run this command for all the libs you found. You can skip the system libs such as "libc.so, linux-vdso.so" etc...
for example, when I try ldd on papi library
ldd libpapi.so
linux-vdso.so.1 (0x00007ffe7a799000)
libpfm.so.4 => path to lib/libpfm.so.4 (0x00007fa2fd1c3000)
libc.so.6 => /lib64/libc.so.6 (0x00007fa2fcd98000)
/lib64/ld-linux-x86-64.so.2 (0x000056413361c000)
Here, libpfm.so is the interesting one. Rest of the libs are system libs. Then we run ldd on libpfm.so
ldd libpfm.so
linux-vdso.so.1 (0x00007ffc5df9d000)
libc.so.6 => /lib64/libc.so.6 (0x00007faf97e74000)
/lib64/ld-linux-x86-64.so.2 (0x0000561984fdb000)
This only refer to system libs, therefore we can stop our algorithm here.
At the end here is the list of libs: papi and pfm.
Related
I have been trying to upgrade my POCO libraries to 1.9.0 which required me to upgrade SSL, which has changed some library names. I am using SSL (OpenSSL-Win64-110g) from Shining Light
I was able to recompile the new poco-1.9.0 libraries , including recompiling the Crypto and Net_SSL_Open_SSL in vs2015 pointing to the new SSL (110g) version.
In my project I reference the newly compiled POCO libs and referenced the new SSL lib paths.
The new SSL seems to have replaced ssleay32MT.lib and libeay32MT.lib with libcrypto64MT.dll and libssl64MT.dll, respectively, so I changed those references in my project as well.
When I compile I get 36 LNK2001 "Unresolved External Symbol" Errors associated with Net, NetSSL, and Crypto libraries. (listed below).
I am wondering it either the SSL 110g lib is too new for POCO 1.9, or needs to be compiled with VS2015. Not Sure though. Any ideas on things to check?
Error list:
Severity Code Description Project File Line Source Error LNK2001 unresolved external symbol GetAdaptersInfo Server\trunk\Server\ide\windows\PocoFoundationmt.lib(Environment.obj)
Error LNK2001 unresolved external symbol __imp_WSAStartup Server\trunk\Server\ide\windows\PocoNetmt.lib(Net.obj)
Error LNK2001 unresolved external symbol __imp_WSAStartup Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock.obj)
Error LNK2001 unresolved external symbol __imp_WSACleanup Server\trunk\Server\ide\windows\PocoNetmt.lib(Net.obj)
Error LNK2001 unresolved external symbol __imp_WSACleanup Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock.obj)
Error LNK2001 unresolved external symbol __imp_htons Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketAddress.obj)
Error LNK2001 unresolved external symbol __imp_ntohs Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketAddress.obj)
Error LNK2001 unresolved external symbol __imp_ntohs Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketAddressImpl.obj)
Error LNK2001 unresolved external symbol __imp_ntohs Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock.obj)
Error LNK2001 unresolved external symbol __imp_ntohs Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_addr.obj)
Error LNK2001 unresolved external symbol __imp_getservbyname Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketAddress.obj)
Error LNK2001 unresolved external symbol __imp_accept Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_accept Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock2.obj)
Error LNK2001 unresolved external symbol __imp_bind Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_bind Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock2.obj)
Error LNK2001 unresolved external symbol __imp_closesocket Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_closesocket Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock2.obj)
Error LNK2001 unresolved external symbol __imp_connect Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_connect Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock2.obj)
Error LNK2001 unresolved external symbol __imp_ioctlsocket Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_ioctlsocket Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock.obj)
Error LNK2001 unresolved external symbol __imp_getpeername Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_getsockname Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_getsockname Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock.obj)
Error LNK2001 unresolved external symbol __imp_getsockopt Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_getsockopt Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock.obj)
Error LNK2001 unresolved external symbol __imp_getsockopt Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock2.obj)
Error LNK2001 unresolved external symbol __imp_listen Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_listen Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock2.obj)
Error LNK2001 unresolved external symbol __imp_recv Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_recv Server\trunk\Server\ide\windows\libcrypto64MT.lib(bss_sock.obj)
Error LNK2001 unresolved external symbol __imp_recvfrom Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_select Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_select Server\trunk\Server\ide\windows\PocoNetmt.lib(Socket.obj)
Error LNK2001 unresolved external symbol __imp_send Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_send Server\trunk\Server\ide\windows\libcrypto64MT.lib(bss_sock.obj)
Error LNK2001 unresolved external symbol __imp_sendto Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_setsockopt Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_setsockopt Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock2.obj)
Error LNK2001 unresolved external symbol __imp_shutdown Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_socket Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_socket Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock2.obj)
Error LNK2001 unresolved external symbol __imp_WSAGetLastError Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock2.obj)
Error LNK2001 unresolved external symbol __imp_WSAGetLastError Server\trunk\Server\ide\windows\PocoNetmt.lib(SocketImpl.obj)
Error LNK2001 unresolved external symbol __imp_WSAGetLastError Server\trunk\Server\ide\windows\PocoNetmt.lib(Socket.obj)
Error LNK2001 unresolved external symbol __imp_WSAGetLastError Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock.obj)
Error LNK2001 unresolved external symbol __imp_WSAGetLastError Server\trunk\Server\ide\windows\libcrypto64MT.lib(bss_sock.obj)
Error LNK2001 unresolved external symbol __imp_gethostname Server\trunk\Server\ide\windows\PocoNetmt.lib(DNS.obj)
Error LNK2001 unresolved external symbol __imp_getaddrinfo Server\trunk\Server\ide\windows\PocoNetmt.lib(DNS.obj)
Error LNK2001 unresolved external symbol __imp_getaddrinfo Server\trunk\Server\ide\windows\PocoNetmt.lib(IPAddressImpl.obj)
Error LNK2001 unresolved external symbol __imp_getaddrinfo Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_addr.obj)
Error LNK2001 unresolved external symbol __imp_freeaddrinfo Server\trunk\Server\ide\windows\PocoNetmt.lib(DNS.obj)
Error LNK2001 unresolved external symbol __imp_freeaddrinfo Server\trunk\Server\ide\windows\PocoNetmt.lib(IPAddressImpl.obj)
Error LNK2001 unresolved external symbol __imp_freeaddrinfo Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_addr.obj)
Error LNK2001 unresolved external symbol __imp_getnameinfo Server\trunk\Server\ide\windows\PocoNetmt.lib(DNS.obj)
Error LNK2001 unresolved external symbol __imp_getnameinfo Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_addr.obj)
Error LNK2001 unresolved external symbol __WSAFDIsSet Server\trunk\Server\ide\windows\PocoNetmt.lib(Socket.obj)
Error LNK2001 unresolved external symbol __imp_inet_addr Server\trunk\Server\ide\windows\PocoNetmt.lib(IPAddressImpl.obj)
Error LNK2001 unresolved external symbol __imp_ntohl Server\trunk\Server\ide\windows\PocoNetmt.lib(IPAddressImpl.obj)
Error LNK2001 unresolved external symbol _vsnprintf Server\trunk\Server\ide\windows\libcrypto64MT.lib(cryptlib.obj)
Error LNK2001 unresolved external symbol _vsnwprintf Server\trunk\Server\ide\windows\libcrypto64MT.lib(cryptlib.obj)
Error LNK2001 unresolved external symbol __iob_func Server\trunk\Server\ide\windows\libcrypto64MT.lib(eng_openssl.obj)
Error LNK2001 unresolved external symbol __iob_func Server\trunk\Server\ide\windows\libcrypto64MT.lib(e_capi.obj)
Error LNK2001 unresolved external symbol __iob_func Server\trunk\Server\ide\windows\libcrypto64MT.lib(pem_lib.obj)
Error LNK2001 unresolved external symbol __iob_func Server\trunk\Server\ide\windows\libcrypto64MT.lib(ui_openssl.obj)
Error LNK2001 unresolved external symbol __imp_gethostbyname Server\trunk\Server\ide\windows\libcrypto64MT.lib(b_sock.obj)
Error LNK2001 unresolved external symbol __imp_WSASetLastError Server\trunk\Server\ide\windows\libcrypto64MT.lib(bss_sock.obj)
Error LNK1120 36 unresolved externals Server\trunk\Server\ide\windows\x64\Release\iqagent.exe
OK so I figured it out. the Crypto errors were because the settings I made in the POCO project linker didn't save; I noticed when running the compiler that the output of the linker didn't include the new SSL libraries (libcrypto.lib, libssl.lib) etc. I also was linking to static libraries in Crypto and Net_SSL.
On the PocoNET errors, I had to include ws2_32.lib and iphlpapi.lib in my linker add'l lib dependancies. I haven't had to do this in the past.
I hope this helps someone in a similar circumstance.
I'm compiling FFmpeg statically against VS2013 update 5 using --toolchain=msvc
If I link against avformat.lib i get a bunch of LNK2019 errors.
I can link make calls against the other libraries(avcodec, swscale, avutil).
Looking at the errors, it seems to be against all the networking .o's (tls_schannel.o, networking.o, tcp.o, etc....)
Here is the output
error LNK2019: unresolved external symbol _QueryContextAttributesA#12 referenced in function _tls_write avformat.lib(tls_schannel.o)
error LNK2019: unresolved external symbol _InitializeSecurityContextA#48 referenced in function _tls_client_handshake avformat.lib(tls_schannel.o)
error LNK2019: unresolved external symbol _FreeContextBuffer#4 referenced in function _tls_client_handshake avformat.lib(tls_schannel.o)
error LNK2019: unresolved external symbol _EncryptMessage#16 referenced in function _tls_write avformat.lib(tls_schannel.o)
error LNK2019: unresolved external symbol _DecryptMessage#16 referenced in function _tls_read avformat.lib(tls_schannel.o)
error LNK2019: unresolved external symbol _AcquireCredentialsHandleA#36 referenced in function _tls_open avformat.lib(tls_schannel.o)
error LNK2019: unresolved external symbol __imp__WSAStartup#8 referenced in function _ff_network_init avformat.lib(network.o)
error LNK2019: unresolved external symbol __imp__WSAGetLastError#0 referenced in function _ff_neterrno avformat.lib(network.o)
error LNK2019: unresolved external symbol __imp__WSACleanup#0 referenced in function _ff_network_close avformat.lib(network.o)
error LNK2019: unresolved external symbol __imp__socket#12 referenced in function _ff_socket avformat.lib(network.o)
error LNK2019: unresolved external symbol __imp__shutdown#8 referenced in function _tcp_shutdown avformat.lib(tcp.o)
error LNK2019: unresolved external symbol __imp__setsockopt#20 referenced in function _tcp_open avformat.lib(tcp.o)
error LNK2019: unresolved external symbol __imp__sendto#24 referenced in function _rtp_write avformat.lib(rtpproto.o)
error LNK2019: unresolved external symbol __imp__send#16 referenced in function _tcp_write avformat.lib(tcp.o)
error LNK2019: unresolved external symbol __imp__select#20 referenced in function _ff_poll avformat.lib(os_support.o)
error LNK2019: unresolved external symbol __imp__recvfrom#24 referenced in function _rtp_read avformat.lib(rtpproto.o)
error LNK2019: unresolved external symbol __imp__recv#16 referenced in function _tcp_read avformat.lib(tcp.o)
error LNK2019: unresolved external symbol __imp__ntohs#4 referenced in function _get_port avformat.lib(rtpproto.o)
error LNK2019: unresolved external symbol __imp__ntohl#4 referenced in function _ff_is_multicast_address avformat.lib(network.o)
error LNK2019: unresolved external symbol __imp__listen#8 referenced in function _ff_listen avformat.lib(network.o)
error LNK2019: unresolved external symbol __imp__ioctlsocket#12 referenced in function _ff_socket_nonblock avformat.lib(os_support.o)
error LNK2019: unresolved external symbol __imp__htons#4 referenced in function _set_port avformat.lib(rtpproto.o)
error LNK2019: unresolved external symbol __imp__htonl#4 referenced in function _ff_inet_aton avformat.lib(os_support.o)
error LNK2019: unresolved external symbol __imp__getsockopt#20 referenced in function _udp_open avformat.lib(udp.o)
error LNK2019: unresolved external symbol __imp__getsockname#12 referenced in function _rtp_read_header avformat.lib(rtsp.o)
error LNK2019: unresolved external symbol __imp__getpeername#12 referenced in function _ff_rtsp_connect avformat.lib(rtsp.o)
error LNK2019: unresolved external symbol __imp__getnameinfo#28 referenced in function _sdp_read_header avformat.lib(rtsp.o)
error LNK2019: unresolved external symbol __imp__gethostname#8 referenced in function _ff_rtp_parse_open avformat.lib(rtpdec.o)
error LNK2019: unresolved external symbol __imp__FreeCredentialsHandle#4 referenced in function _tls_close avformat.lib(tls_schannel.o)
error LNK2019: unresolved external symbol __imp__DeleteSecurityContext#4 referenced in function _tls_close avformat.lib(tls_schannel.o)
error LNK2019: unresolved external symbol __imp__connect#12 referenced in function _udp_open avformat.lib(udp.o)
error LNK2019: unresolved external symbol __imp__closesocket#4 referenced in function _tcp_close avformat.lib(tcp.o)
error LNK2019: unresolved external symbol __imp__bind#12 referenced in function _udp_open avformat.lib(udp.o)
error LNK2019: unresolved external symbol __imp__ApplyControlToken#8 referenced in function _tls_shutdown_client avformat.lib(tls_schannel.o)
error LNK2019: unresolved external symbol __imp__accept#12 referenced in function _ff_accept avformat.lib(network.o)
error LNK2019: unresolved external symbol ___WSAFDIsSet#8 referenced in function _ff_poll avformat.lib(os_support.o)
error LNK2001: unresolved external symbol __imp__setsockopt#20 avformat.lib(udp.o)
error LNK2001: unresolved external symbol __imp__setsockopt#20 avformat.lib(network.o)
error LNK2001: unresolved external symbol __imp__sendto#24 avformat.lib(udp.o)
error LNK2001: unresolved external symbol __imp__send#16 avformat.lib(udp.o)
error LNK2001: unresolved external symbol __imp__recv#16 avformat.lib(udp.o)
error LNK2001: unresolved external symbol __imp__getsockopt#20 avformat.lib(network.o)
error LNK2001: unresolved external symbol __imp__getsockname#12 avformat.lib(sapenc.o)
error LNK2001: unresolved external symbol __imp__getsockname#12 avformat.lib(udp.o)
error LNK2001: unresolved external symbol __imp__getnameinfo#28 avformat.lib(udp.o)
error LNK2001: unresolved external symbol __imp__getnameinfo#28 avformat.lib(sdp.o)
error LNK2001: unresolved external symbol __imp__getaddrinfo#16 avformat.lib(udp.o)
error LNK2001: unresolved external symbol __imp__getaddrinfo#16 avformat.lib(url.o)
error LNK2001: unresolved external symbol __imp__getaddrinfo#16 avformat.lib(sdp.o)
error LNK2001: unresolved external symbol __imp__getaddrinfo#16 avformat.lib(tls.o)
error LNK2001: unresolved external symbol __imp__getaddrinfo#16 avformat.lib(rtsp.o)
error LNK2001: unresolved external symbol __imp__getaddrinfo#16 avformat.lib(sapenc.o)
error LNK2001: unresolved external symbol __imp__getaddrinfo#16 avformat.lib(rtpproto.o)
error LNK2001: unresolved external symbol __imp__getaddrinfo#16 avformat.lib(tcp.o)
error LNK2001: unresolved external symbol __imp__freeaddrinfo#4 avformat.lib(udp.o)
error LNK2001: unresolved external symbol __imp__freeaddrinfo#4 avformat.lib(url.o)
error LNK2001: unresolved external symbol __imp__freeaddrinfo#4 avformat.lib(sdp.o)
error LNK2001: unresolved external symbol __imp__freeaddrinfo#4 avformat.lib(tls.o)
error LNK2001: unresolved external symbol __imp__freeaddrinfo#4 avformat.lib(rtsp.o)
error LNK2001: unresolved external symbol __imp__freeaddrinfo#4 avformat.lib(sapenc.o)
error LNK2001: unresolved external symbol __imp__freeaddrinfo#4 avformat.lib(rtpproto.o)
error LNK2001: unresolved external symbol __imp__freeaddrinfo#4 avformat.lib(tcp.o)
error LNK2001: unresolved external symbol __imp__connect#12 avformat.lib(network.o)
error LNK2001: unresolved external symbol __imp__closesocket#4 avformat.lib(udp.o)
error LNK2001: unresolved external symbol __imp__closesocket#4 avformat.lib(network.o)
error LNK2001: unresolved external symbol __imp__bind#12 avformat.lib(network.o)
It's caused by missing Windows socket library when linking program.
If you don't want any network funcionality from ffmpeg just add this switch to configure command when building ffmpeg:
--disable-network
or if you want network add Ws2_32.lib to Additional dependecies in linker options in you program.
Having problems with Opus codec on VS 2010 even after linking .lib(libopusfile-0.lib and opus.lib) file ?
Getting same errors:
1>main.obj : error LNK2019: unresolved external symbol _opus_decoder_destroy referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _opus_encoder_destroy referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _opus_decode referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _opus_encode referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _opus_decoder_create referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _opus_encoder_ctl referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _opus_strerror referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol _opus_encoder_create referenced in function _main
1>C:\Users\korisnik\Desktop\Projekti\opus\Opus\Debug\Opus.exe : fatal error LNK1120: 8 unresolved externals
I am new to this and stuck with this problem for a while now. Any help would be much appreciated.
OPUS has multiple libs so make sure you link with all of them.
The following is returned when trying to compile part of a project under OSX:
gcc -g -pipe -L/Projects/export buf_test.o buf.o -framework CoreFoundation -o buf_test
Undefined symbols for architecture x86_64:
"___assert_rtn", referenced from:
_init in buf.o
_get in buf.o
_put in buf.o
"___sprintf_chk", referenced from:
_test in buf_test.o
"___strcpy_chk", referenced from:
_test_data_copy in buf_test.o
___inline_strcpy_chk in buf_test.o
"_exit", referenced from:
start in crt1.10.6.o
"_printf", referenced from:
_test in buf_test.o
"_puts", referenced from:
_test in buf_test.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
Help would be much appreciated!
Turns out it was a library naming conflict with the standard libraries -- I had a library called libSystem.a in /Projects/export which was masking libSystem.dylib from being found.
I set up VS 2008 SP1 on Windows 7 (64-bit) and tried to build the psutil, got the following error. VS 2008 is properly setup and with SP1 successfully patched.
I ran the "python setup.py build" command per the INSTALL file in the package.
c:\src\psutil>python setup.py build --verbose
running build
running build_py
running build_ext
building '_psutil_mswindows' extension
c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\link.exe /DLL /nologo
/INCREMENTAL:NO /LIBPATH:C:\python_26_amd64\files\libs /LIBPATH:C:\python_26_amd
64\files\PCbuild\amd64 psapi.lib kernel32.lib advapi32.lib shell32.lib netapi32.
lib iphlpapi.lib /EXPORT:init_psutil_mswindows build\temp.win-amd64-2.6\Release\
psutil/_psutil_mswindows.obj build\temp.win-amd64-2.6\Release\psutil/_psutil_com
mon.obj build\temp.win-amd64-2.6\Release\psutil/arch/mswindows/process_info.obj
build\temp.win-amd64-2.6\Release\psutil/arch/mswindows/process_handles.obj build
\temp.win-amd64-2.6\Release\psutil/arch/mswindows/security.obj /OUT:build\lib.wi
n-amd64-2.6\_psutil_mswindows.pyd /IMPLIB:build\temp.win-amd64-2.6\Release\psuti
l\_psutil_mswindows.lib /MANIFESTFILE:build\temp.win-amd64-2.6\Release\psutil\_p
sutil_mswindows.pyd.manifest
Creating library build\temp.win-amd64-2.6\Release\psutil\_psutil_mswindows.lib and object build\temp.win-amd64-2.6\Release\psutil\_psutil_mswindows.exp_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__Py_BuildValue referenced in function _get_system_uptime
process_info.obj : error LNK2001: unresolved external symbol __imp__Py_BuildValue
process_handles.obj : error LNK2001: unresolved external symbol __imp__Py_BuildValue
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyBool_FromLong referenced in function _pid_exists
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyArg_ParseTuple referenced in function _pid_exists
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyList_Append referenced in function _get_pid_list
process_info.obj : error LNK2001: unresolved external symbol __imp__PyList_Append
process_handles.obj : error LNK2001: unresolved external symbol __imp__PyList_Append
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyList_New referenced in function _get_pid_list_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp___Py_NoneStruct referenced in function _kill_process
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyErr_SetFromWindowsErr referenced in function _kill_process
process_info.obj : error LNK2001: unresolved external symbol __imp__PyErr_SetFromWindowsErr
security.obj : error LNK2001: unresolved external symbol __imp__PyErr_SetFromWindowsErr
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyInt_FromLong referenced in function _process_wait
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyEval_RestoreThread referenced in function _process_wait
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyEval_SaveThread referenced in function _process_wait
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyErr_Clear referenced in function _get_process_cmdline
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyUnicodeUCS2_AsUTF8String referenced in function _get_process_cwd
process_info.obj : error LNK2001: unresolved external symbol __imp__PyUnicodeUCS2_AsUTF8String
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyUnicodeUCS2_FromWideChar referenced in function _get_process_cwd
process_info.obj : error LNK2001: unresolved external symbol __imp__PyUnicodeUCS
2_FromWideChar
process_handles.obj : error LNK2001: unresolved external symbol __imp__PyUnicodeUCS2_FromWideChar
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyExc_TypeError referenced in function _get_process_connections
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyErr_SetString referenced in function _get_process_connections
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyExc_NotImplementedError referenced in function _get_process_connections
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyTuple_New referenced in function _get_process_connections
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PySequence_Contains referenced in function _get_process_connections
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PySequence_Check referenced in function _get_process_connections
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyLong_FromLong referenced in function _get_process_connections
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp___Py_ZeroStruct referenced in function _is_process_suspended
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp___Py_TrueStruct referenced in function _is_process_suspended
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyDict_SetItem referenced in function _get_network_io_counters
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyUnicodeUCS2_FromObject referenced in function _get_network_io_counters
process_info.obj : error LNK2001: unresolved external symbol __imp__PyUnicodeUCS2_FromObject
process_handles.obj : error LNK2001: unresolved external symbol __imp__PyUnicodeUCS2_FromObject
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyExc_RuntimeError referenced in function _get_network_io_counters
process_info.obj : error LNK2001: unresolved external symbol __imp__PyExc_RuntimeError
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyDict_New referenced in function _get_network_io_counters
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyDict_SetItemString referenced in function _get_disk_io_counters
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyModule_AddIntConstant referenced in function _init_psutil_mswindows
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__PyErr_NewException referenced in function _init_psutil_mswindows
_psutil_mswindows.obj : error LNK2019: unresolved external symbol __imp__Py_InitModule4 referenced in function _init_psutil_mswindows
_psutil_common.obj : error LNK2019: unresolved external symbol __imp__PyErr_SetObject referenced in function _NoSuchProcess
_psutil_common.obj : error LNK2019: unresolved external symbol __imp__PyObject_CallFunction referenced in function _NoSuchProcess
_psutil_common.obj : error LNK2019: unresolved external symbol __imp__PyExc_OSError referenced in function _NoSuchProcess
process_info.obj : error LNK2019: unresolved external symbol __imp__PyErr_Format referenced in function _get_process_info
build\lib.win-amd64-2.6\_psutil_mswindows.pyd : fatal error LNK1120: 34 unresolved externals
error: command '"c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\link.exe"' failed with exit status 1120
Any ideas which library is missing from the default distutils config? How can I successfully build psutil in my environment?
For the benefit of other people with the same problem: make sure to use the Visual Studio x64 command prompt for launching the setup script.