brunodebus / tinq-core

Tinq Project
Other
12 stars 8 forks source link

Running examples #6

Closed vmayoral closed 10 years ago

vmayoral commented 10 years ago

@brunodebus @mouse256 the makefiles need some minor fixes but still there's an error when linking:

DDDS_BUILTINS -DDDS_IPV6 -DDDS_TYPECODE -DDDS_DYN_IP   -c -o ../../src/co/prof.o ../../src/co/prof.c
gcc -Wall -Wextra -pedantic -Wno-long-long -O3 -g -I../../src/include -I../../api/headers -DFILT_VMWARE -DPTHREADS_USED -DRTPS_USED -DXTYPES_USED -DDDS_BUILTINS -DDDS_IPV6 -DDDS_TYPECODE -DDDS_DYN_IP   -c -o ../../src/co/hash.o ../../src/co/hash.c
gcc -Wall -Wextra -pedantic -Wno-long-long -O3 -g -I../../src/include -I../../api/headers -DFILT_VMWARE -DPTHREADS_USED -DRTPS_USED -DXTYPES_USED -DDDS_BUILTINS -DDDS_IPV6 -DDDS_TYPECODE -DDDS_DYN_IP   -c -o ../../src/co/strseq.o ../../src/co/strseq.c
gcc -Wall -Wextra -pedantic -Wno-long-long -O3 -g -I../../src/include -I../../api/headers -DFILT_VMWARE -DPTHREADS_USED -DRTPS_USED -DXTYPES_USED -DDDS_BUILTINS -DDDS_IPV6 -DDDS_TYPECODE -DDDS_DYN_IP   -c -o ../../src/co/random.o ../../src/co/random.c
gcc -Wall -Wextra -pedantic -Wno-long-long -O3 -g -I../../src/include -I../../api/headers -DFILT_VMWARE -DPTHREADS_USED -DRTPS_USED -DXTYPES_USED -DDDS_BUILTINS -DDDS_IPV6 -DDDS_TYPECODE -DDDS_DYN_IP   -c -o ../../src/co/nmatch.o ../../src/co/nmatch.c
gcc -Wall -Wextra -pedantic -Wno-long-long -O3 -g -I../../src/include -I../../api/headers -DFILT_VMWARE -DPTHREADS_USED -DRTPS_USED -DXTYPES_USED -DDDS_BUILTINS -DDDS_IPV6 -DDDS_TYPECODE -DDDS_DYN_IP   -c -o ../../src/co/ipfilter.o ../../src/co/ipfilter.c
gcc -Wall -Wextra -pedantic -Wno-long-long -O3 -g -I../../src/include -I../../api/headers -DFILT_VMWARE -DPTHREADS_USED -DRTPS_USED -DXTYPES_USED -DDDS_BUILTINS -DDDS_IPV6 -DDDS_TYPECODE -DDDS_DYN_IP   -c -o ../../src/co/libx.o ../../src/co/libx.c
gcc -o bw main.o ../../src/dds/dds.o ../../src/dds/domain.o ../../src/dds/locator.o ../../src/dds/guid.o ../../src/dds/dds_seq.o ../../src/dds/uqos.o ../../src/dds/guard.o ../../src/xtypes/xtypecode.o ../../src/xtypes/xtypes.o ../../src/xtypes/xdata.o ../../src/xtypes/xcdr.o ../../src/xtypes/tsm.o ../../src/xtypes/pl_cdr.o ../../src/xtypes/pid.o ../../src/xtypes/xtopic.o ../../src/xtypes/builtin.o ../../src/xtypes/vtc.o ../../src/dcps/dcps_main.o ../../src/disc/disc.o ../../src/cache/cache.o ../../src/rtps/rtps_main.o ../../src/rtps/rtps_mux.o ../../src/trans/ip/rtps_ip.o ../../src/trans/ip/ri_udp.o ../../src/trans/ip/ri_dtls.o ../../src/dbg/debug.o ../../src/sql/scan.o ../../src/sql/parse.o ../../src/sql/bytecode.o ../../src/dynip/di_main.o ../../src/dynip/di_linux.o ../../src/co/pool.o ../../src/co/sys.o ../../src/co/error.o ../../src/co/ipc.o ../../src/co/timer.o ../../src/co/sock.o ../../src/co/skiplist.o ../../src/co/str.o ../../src/co/heap.o ../../src/co/md5.o ../../src/co/db.o ../../src/co/handle.o ../../src/co/tty.o ../../src/co/log.o ../../src/co/ctrace.o ../../src/co/thread.o ../../src/co/prof.o ../../src/co/hash.o ../../src/co/strseq.o ../../src/co/random.o ../../src/co/nmatch.o ../../src/co/ipfilter.o ../../src/co/libx.o   -lnsl -lrt -g
/usr/bin/ld: ../../src/co/thread.o: undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [bw] Error 1

I'm with the OSRF. I'd appreciate if you could get in touch with me (victor at osrfoundation.org).

vmayoral commented 10 years ago

This refers to the dds/apps examples.

mouse256 commented 10 years ago

The Qeo/DDS version in the repo of brunodebus is a major version behind. I would recommend pulling the latest version first.

vmayoral commented 10 years ago

@mouse256 much appreciated. Switched to your fork and everything seems to compile fine there.

I'd appreciate if you could take a look at https://github.com/brunodebus/tinq-core/issues/7. We are looking forward to explore the chances on collaborating with Tinq.

vmayoral commented 10 years ago

Closing the pull, we keep the discussion at https://github.com/brunodebus/tinq-core/issues/7