Hi.
------ Originalnachricht ------
Von: "Milenko Markovic" <[email protected]>
An: [email protected]
Gesendet: 07.01.2018 07:53:44
Betreff: Makefile:813: recipe for target 'haproxy' failed
Dear Sir or Madam
When I run
make TARGET=linux24 USE_OPENSSL=1 SSL_INC=$STATICLIBSSL/include
SSL_LIB=$STATICLIBSSL/lib ADDLIB=-ldl
this appears on screen
Makefile:813: recipe for target 'haproxy' failed
I have attached the whole output as txt file. It would be nice if
someone could help me.
Looks like that you have build the 'staticlibssl' with thread support
but the gcc miss the '-lpthread' or similar library.
```
gcc -g -o haproxy src/haproxy.o src/base64.o src/protocol.o
src/uri_auth.o src/standard.o src/buffer.o src/log.o src/task.o
src/chunk.o src/channel.o src/listener.o src/lru.o src/xxhash.o
src/time.o src/fd.o src/pipe.o src/regex.o src/cfgparse.o src/server.o
src/checks.o src/queue.o src/frontend.o src/proxy.o src/peers.o
src/arg.o src/stick_table.o src/proto_uxst.o src/connection.o
src/proto_http.o src/raw_sock.o src/backend.o src/tcp_rules.o
src/lb_chash.o src/lb_fwlc.o src/lb_fwrr.o src/lb_map.o src/lb_fas.o
src/stream_interface.o src/stats.o src/proto_tcp.o src/applet.o
src/session.o src/stream.o src/hdr_idx.o src/ev_select.o src/signal.o
src/acl.o src/sample.o src/memory.o src/freq_ctr.o src/auth.o
src/proto_udp.o src/compression.o src/payload.o src/hash.o src/pattern.o
src/map.o src/namespace.o src/mailers.o src/dns.o src/vars.o
src/filters.o src/flt_http_comp.o src/flt_trace.o src/flt_spoe.o
src/cli.o src/ev_poll.o src/ssl_sock.o src/shctx.o ebtree/ebtree.o
ebtree/eb32tree.o ebtree/eb64tree.o ebtree/ebmbtree.o ebtree/ebsttree.o
ebtree/ebimtree.o ebtree/ebistree.o -lcrypt -ldl -L/tmp/staticlibssl/lib
-lssl -lcrypto -ldl -ldl
/tmp/staticlibssl/lib/libcrypto.a(threads_pthread.o): In function
`CRYPTO_THREAD_lock_new':
threads_pthread.c:(.text+0x25): undefined reference to
`pthread_rwlock_init'
/tmp/staticlibssl/lib/libcrypto.a(threads_pthread.o): In function
`CRYPTO_THREAD_read_lock':
threads_pthread.c:(.text+0x65): undefined reference to
`pthread_rwlock_rdlock'
/tmp/staticlibssl/lib/libcrypto.a(threads_pthread.o): In function
`CRYPTO_THREAD_write_lock':
threads_pthread.c:(.text+0x85): undefined reference to
`pthread_rwlock_wrlock'
/tmp/staticlibssl/lib/libcrypto.a(threads_pthread.o): In function
`CRYPTO_THREAD_unlock':
threads_pthread.c:(.text+0xa5): undefined reference to
`pthread_rwlock_unlock'
/tmp/staticlibssl/lib/libcrypto.a(threads_pthread.o): In function
`CRYPTO_THREAD_lock_free':
threads_pthread.c:(.text+0xca): undefined reference to
`pthread_rwlock_destroy'
/tmp/staticlibssl/lib/libcrypto.a(threads_pthread.o): In function
`CRYPTO_THREAD_run_once':
threads_pthread.c:(.text+0xf5): undefined reference to `pthread_once'
/tmp/staticlibssl/lib/libcrypto.a(threads_pthread.o): In function
`CRYPTO_THREAD_init_local':
threads_pthread.c:(.text+0x115): undefined reference to
`pthread_key_create'
/tmp/staticlibssl/lib/libcrypto.a(threads_pthread.o): In function
`CRYPTO_THREAD_set_local':
threads_pthread.c:(.text+0x147): undefined reference to
`pthread_setspecific'
/tmp/staticlibssl/lib/libcrypto.a(threads_pthread.o): In function
`CRYPTO_THREAD_cleanup_local':
threads_pthread.c:(.text+0x167): undefined reference to
`pthread_key_delete'
/tmp/staticlibssl/lib/libcrypto.a(threads_pthread.o): In function
`CRYPTO_THREAD_get_local':
threads_pthread.c:(.text+0x133): undefined reference to
`pthread_getspecific'
collect2: error: ld returned 1 exit status
Makefile:813: recipe for target 'haproxy' failed
```
As usual please can you tell us more about your system.
Which OS?
Which glibc?
Which dev libs?
Which gcc?
Which libssl?
All the best
Milenko
Regards
Aleks