Posted Fri, 21 Feb 2014 11:24:23 GMT in reply to
Sönke Ludwig
Reply
Hi
i've tested the RC5 under CentOS 6.5 (64-Bit minimal) on new installed VM. After installing the dependencies (dmd 2.064, libevent, libevent-devel, libevent2 via rpm, gcc and so on) I've tried to build the app_skeleton of vibe.d.
First try has thrown the following output:
[root@localhost app_skeleton]# dub
vibe-d: ["vibe-d", "libevent", "openssl"]
app-skeleton: ["app-skeleton", "vibe-d", "libevent", "openssl"]
Target is up to date. Using existing build in /root/.dub/packages/vibe-d-0.7.18/.dub/build/libevent-debug-linux.posix-x86_64-dmd-2494B3E0AC5A6FFE1AD0A6AEA442D8E6/. Use --force to force a rebuild.
Building app-skeleton configuration "application", build type debug.
Compiling...
Compiling diet template 'error.dt' (compat)...
Compiling diet template 'about.dt' (compat)...
Compiling diet template 'home.dt' (compat)...
Linking...
/usr/bin/ld: cannot find -levent_pthreads
collect2: ld returned 1 exit status
--- errorlevel 1
FAIL .dub/build/application-debug-linux.posix-x86_64-dmd-4F90361D91B77B138A050B2B50F9D4C7 app-skeleton executable
Error executing command run: Link command failed with exit code 1
After checking the installation of libevent, libevent2, libevent-devel twice I've made a symlink to fix this issue:
[root@localhost app_skeleton]# ln -s /usr/lib64/libevent_pthreads-2.0.so.5.1.9 /usr/lib64/libevent_pthreads.so
Next try gave me:
[root@localhost app_skeleton]# dub
vibe-d: ["vibe-d", "libevent", "openssl"]
app-skeleton: ["app-skeleton", "vibe-d", "libevent", "openssl"]
Target is up to date. Using existing build in /root/.dub/packages/vibe-d-0.7.18/.dub/build/libevent-debug-linux.posix-x86_64-dmd-2494B3E0AC5A6FFE1AD0A6AEA442D8E6/. Use --force to force a rebuild.
Building app-skeleton configuration "application", build type debug.
Compiling...
Compiling diet template 'error.dt' (compat)...
Compiling diet template 'about.dt' (compat)...
Compiling diet template 'home.dt' (compat)...
Linking...
../../libvibe-d.a(libevent2_1ee7_5d7.o): In function `_D4vibe4core7drivers9libevent215Libevent2Driver6__ctorMFC4vibe4core6driver10DriverCoreZC4vibe4core7drivers9libevent215Libevent2Driver':
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2.d:76: undefined reference to `event_set_mem_functions'
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2.d:85: undefined reference to `evthread_set_lock_callbacks'
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2.d:93: undefined reference to `evthread_set_condition_callbacks'
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2.d:95: undefined reference to `evthread_set_id_callback'
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2.d:102: undefined reference to `evthread_make_base_notifiable'
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2.d:104: undefined reference to `evdns_base_new'
../../libvibe-d.a(libevent2_1ee7_5d7.o): In function `_D4vibe4core7drivers9libevent215Libevent2Driver6__dtorMFZv':
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2.d:128: undefined reference to `evdns_base_free'
../../libvibe-d.a(libevent2_1ee7_5d7.o): In function `_D4vibe4core7drivers9libevent215Libevent2Driver11resolveHostMFAyatbZS4vibe4core3net14NetworkAddress':
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2.d:197: undefined reference to `evutil_inet_pton'
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2.d:213: undefined reference to `evdns_base_resolve_ipv4'
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2.d:214: undefined reference to `evdns_base_resolve_ipv6'
../../libvibe-d.a(libevent2_1ee7_5d7.o): In function `_D4vibe4core7drivers9libevent215Libevent2Driver10connectTCPMFAyatZC4vibe4core3net13TCPConnection':
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2.d:247: undefined reference to `bufferevent_socket_new'
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2.d:258: undefined reference to `bufferevent_socket_connect'
../../libvibe-d.a(libevent2_1ee7_5d7.o): In function `_D4vibe4core7drivers9libevent215Libevent2Driver9listenTCPMFtDFC4vibe4core3net13TCPConnectionZvAyaE4vibe4core3net16TCPListenOptionsZC4vibe4core3net11TCPListener22setupConnectionHandlerFOC4vibe4core7drivers13libevent2_tcp19LibeventTCPListeneriS4vibe4core3net14NetworkAddressODFC4vibe4core3net13TCPConnectionZvZv':
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2.d:302: undefined reference to `event_new'
../../libvibe-d.a(libevent2_1eea_7cb.o): In function `_D4vibe4core7drivers9libevent220Libevent2ManualEvent6__dtorMFZv14__foreachbody1MFKS4vibe4core7drivers9libevent210ThreadSlotZi':
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2.d:430: undefined reference to `event_free'
../../libvibe-d.a(libevent2_1eea_7cb.o): In function `_D4vibe4core7drivers9libevent220Libevent2ManualEvent7acquireMFZv':
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2.d:487: undefined reference to `event_new'
../../libvibe-d.a(libevent2_1eea_7cb.o): In function `_D4vibe4core7drivers9libevent220Libevent2ManualEvent16onThreadShutdownMFZv':
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2.d:523: undefined reference to `event_free'
../../libvibe-d.a(libevent2_1eeb_56c.o): In function `_D4vibe4core7drivers9libevent214Libevent2Timer6__ctorMFC4vibe4core7drivers9libevent215Libevent2DriverDFZvZC4vibe4core7drivers9libevent214Libevent2Timer':
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2.d:568: undefined reference to `event_new'
../../libvibe-d.a(libevent2_1eeb_56c.o): In function `_D4vibe4core7drivers9libevent214Libevent2Timer6__dtorMFZv':
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2.d:574: undefined reference to `event_free'
../../libvibe-d.a(libevent2_1eec_864.o): In function `_D4vibe4core7drivers9libevent222Libevent2UDPConnection6__ctorMFS4vibe4core3net14NetworkAddressC4vibe4core7drivers9libevent215Libevent2DriverZC4vibe4core7drivers9libevent222Libevent2UDPConnection':
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2.d:674: undefined reference to `evutil_inet_ntop'
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2.d:694: undefined reference to `event_new'
../../libvibe-d.a(libevent2_tcp_1f2d_862.o): In function `_D4vibe4core7drivers13libevent2_tcp22Libevent2TCPConnection6__ctorMFPS4vibe4core7drivers13libevent2_tcp10TCPContextZC4vibe4core7drivers13libevent2_tcp22Libevent2TCPConnection':
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:78: undefined reference to `evutil_inet_ntop'
../../libvibe-d.a(libevent2_tcp_1f2d_862.o): In function `_D4vibe4core7drivers13libevent2_tcp22Libevent2TCPConnection11readTimeoutMFNdS4core4time8DurationZv':
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:103: undefined reference to `bufferevent_set_timeouts'
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:107: undefined reference to `bufferevent_set_timeouts'
../../libvibe-d.a(libevent2_tcp_1f2d_862.o): In function `_D4vibe4core7drivers13libevent2_tcp22Libevent2TCPConnection5closeMFZv':
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:144: undefined reference to `bufferevent_flush'
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:145: undefined reference to `bufferevent_flush'
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:147: undefined reference to `bufferevent_get_output'
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:148: undefined reference to `evbuffer_get_length'
../../libvibe-d.a(libevent2_tcp_1f2d_862.o): In function `_D4vibe4core7drivers13libevent2_tcp22Libevent2TCPConnection9leastSizeMFNdZm':
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:169: undefined reference to `bufferevent_get_input'
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:171: undefined reference to `evbuffer_get_length'
../../libvibe-d.a(libevent2_tcp_1f2d_862.o): In function `_D4vibe4core7drivers13libevent2_tcp22Libevent2TCPConnection20dataAvailableForReadMFNdZb':
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:184: undefined reference to `bufferevent_get_input'
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:184: undefined reference to `evbuffer_get_length'
../../libvibe-d.a(libevent2_tcp_1f2d_862.o): In function `_D4vibe4core7drivers13libevent2_tcp22Libevent2TCPConnection4peekMFZAxh':
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:197: undefined reference to `bufferevent_get_input'
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:197: undefined reference to `evbuffer_peek'
../../libvibe-d.a(libevent2_tcp_1f2d_862.o): In function `_D4vibe4core7drivers13libevent2_tcp22Libevent2TCPConnection11waitForDataMFS4core4time8DurationZb':
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:229: undefined reference to `bufferevent_get_input'
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:229: undefined reference to `evbuffer_get_length'
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:234: undefined reference to `event_new'
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:248: undefined reference to `evbuffer_get_length'
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:255: undefined reference to `evbuffer_get_length'
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:243: undefined reference to `event_free'
../../libvibe-d.a(libevent2_tcp_1f2d_862.o): In function `_D4vibe4core7drivers13libevent2_tcp22Libevent2TCPConnection5writeMFxAhZv':
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:272: undefined reference to `bufferevent_get_output'
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:275: undefined reference to `evbuffer_get_length'
../../libvibe-d.a(libevent2_tcp_1f2d_862.o): In function `_D4vibe4core7drivers13libevent2_tcp22Libevent2TCPConnection5flushMFZv':
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:309: undefined reference to `bufferevent_flush'
../../libvibe-d.a(libevent2_tcp_1f2e_766.o): In function `_D4vibe4core7drivers13libevent2_tcp19LibeventTCPListener13stopListeningMFZv':
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:348: undefined reference to `event_free'
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:348: undefined reference to `evutil_closesocket'
../../libvibe-d.a(libevent2_tcp_1f30_3a7.o): In function `_D4vibe4core7drivers13libevent2_tcp9onConnectUNbisPvZv10ClientTask7executeMFZv':
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:426: undefined reference to `bufferevent_socket_new'
../../libvibe-d.a(libevent2_tcp_1f32_551.o): In function `onSocketWrite':
/root/.dub/packages/vibe-d-0.7.18/examples/app_skeleton/../../source/vibe/core/drivers/libevent2_tcp.d:531: undefined reference to `bufferevent_flush'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libevent_pthreads.so: undefined reference to `event_mm_malloc_'
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libevent_pthreads.so: undefined reference to `event_mm_free_'
collect2: ld returned 1 exit status
--- errorlevel 1
FAIL .dub/build/application-debug-linux.posix-x86_64-dmd-4F90361D91B77B138A050B2B50F9D4C7 app-skeleton executable
Error executing command run: Link command failed with exit code 1
Do you have any idea what went wrong?
On Thu, 20 Feb 2014 17:01:04 +0100, Sönke Ludwig wrote:
The fifth and hopefully last release candidate is up, including a new
RPM package.