Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while building... #408

Open
AkiMosi opened this issue Jul 24, 2020 · 1 comment
Open

Error while building... #408

AkiMosi opened this issue Jul 24, 2020 · 1 comment

Comments

@AkiMosi
Copy link

AkiMosi commented Jul 24, 2020

entering make, leads to this

Scanning dependencies of target tins
[  1%] Building CXX object src/CMakeFiles/tins.dir/address_range.cpp.o
[  2%] Building CXX object src/CMakeFiles/tins.dir/arp.cpp.o
[  4%] Building CXX object src/CMakeFiles/tins.dir/bootp.cpp.o
[  5%] Building CXX object src/CMakeFiles/tins.dir/crypto.cpp.o
[  7%] Building CXX object src/CMakeFiles/tins.dir/detail/address_helpers.cpp.o
[  8%] Building CXX object src/CMakeFiles/tins.dir/detail/icmp_extension_helpers.cpp.o
[  9%] Building CXX object src/CMakeFiles/tins.dir/detail/pdu_helpers.cpp.o
[ 11%] Building CXX object src/CMakeFiles/tins.dir/detail/sequence_number_helpers.cpp.o
[ 11%] Building CXX object src/CMakeFiles/tins.dir/dhcp.cpp.o
[ 12%] Building CXX object src/CMakeFiles/tins.dir/dhcpv6.cpp.o
[ 14%] Building CXX object src/CMakeFiles/tins.dir/dns.cpp.o
[ 15%] Building CXX object src/CMakeFiles/tins.dir/dot3.cpp.o
[ 16%] Building CXX object src/CMakeFiles/tins.dir/dot1q.cpp.o
[ 18%] Building CXX object src/CMakeFiles/tins.dir/eapol.cpp.o
[ 19%] Building CXX object src/CMakeFiles/tins.dir/ethernetII.cpp.o
[ 21%] Building CXX object src/CMakeFiles/tins.dir/handshake_capturer.cpp.o
[ 22%] Building CXX object src/CMakeFiles/tins.dir/hw_address.cpp.o
[ 23%] Building CXX object src/CMakeFiles/tins.dir/icmp_extension.cpp.o
[ 25%] Building CXX object src/CMakeFiles/tins.dir/icmp.cpp.o
[ 26%] Building CXX object src/CMakeFiles/tins.dir/icmpv6.cpp.o
[ 28%] Building CXX object src/CMakeFiles/tins.dir/ip_reassembler.cpp.o
[ 29%] Building CXX object src/CMakeFiles/tins.dir/ip.cpp.o
[ 30%] Building CXX object src/CMakeFiles/tins.dir/ip_address.cpp.o
[ 32%] Building CXX object src/CMakeFiles/tins.dir/ipv6.cpp.o
[ 33%] Building CXX object src/CMakeFiles/tins.dir/ipv6_address.cpp.o
[ 35%] Building CXX object src/CMakeFiles/tins.dir/ipsec.cpp.o
[ 36%] Building CXX object src/CMakeFiles/tins.dir/llc.cpp.o
[ 38%] Building CXX object src/CMakeFiles/tins.dir/loopback.cpp.o
[ 39%] Building CXX object src/CMakeFiles/tins.dir/mpls.cpp.o
[ 40%] Building CXX object src/CMakeFiles/tins.dir/memory_helpers.cpp.o
[ 42%] Building CXX object src/CMakeFiles/tins.dir/network_interface.cpp.o
[ 43%] Building CXX object src/CMakeFiles/tins.dir/packet_sender.cpp.o
[ 45%] Building CXX object src/CMakeFiles/tins.dir/pdu.cpp.o
[ 46%] Building CXX object src/CMakeFiles/tins.dir/pdu_iterator.cpp.o
[ 47%] Building CXX object src/CMakeFiles/tins.dir/pdu_option.cpp.o
[ 49%] Building CXX object src/CMakeFiles/tins.dir/pppoe.cpp.o
[ 50%] Building CXX object src/CMakeFiles/tins.dir/radiotap.cpp.o
[ 52%] Building CXX object src/CMakeFiles/tins.dir/rawpdu.cpp.o
[ 53%] Building CXX object src/CMakeFiles/tins.dir/rsn_information.cpp.o
[ 54%] Building CXX object src/CMakeFiles/tins.dir/sll.cpp.o
[ 56%] Building CXX object src/CMakeFiles/tins.dir/snap.cpp.o
[ 57%] Building CXX object src/CMakeFiles/tins.dir/stp.cpp.o
[ 57%] Building CXX object src/CMakeFiles/tins.dir/tcp.cpp.o
[ 59%] Building CXX object src/CMakeFiles/tins.dir/tcp_ip/ack_tracker.cpp.o
[ 60%] Building CXX object src/CMakeFiles/tins.dir/tcp_ip/flow.cpp.o
[ 61%] Building CXX object src/CMakeFiles/tins.dir/tcp_ip/data_tracker.cpp.o
[ 63%] Building CXX object src/CMakeFiles/tins.dir/tcp_ip/stream.cpp.o
[ 64%] Building CXX object src/CMakeFiles/tins.dir/tcp_ip/stream_follower.cpp.o
[ 66%] Building CXX object src/CMakeFiles/tins.dir/tcp_ip/stream_identifier.cpp.o
[ 67%] Building CXX object src/CMakeFiles/tins.dir/timestamp.cpp.o
[ 69%] Building CXX object src/CMakeFiles/tins.dir/udp.cpp.o
[ 70%] Building CXX object src/CMakeFiles/tins.dir/utils/checksum_utils.cpp.o
[ 71%] Building CXX object src/CMakeFiles/tins.dir/utils/frequency_utils.cpp.o
[ 73%] Building CXX object src/CMakeFiles/tins.dir/utils/radiotap_parser.cpp.o
[ 74%] Building CXX object src/CMakeFiles/tins.dir/utils/radiotap_writer.cpp.o
[ 76%] Building CXX object src/CMakeFiles/tins.dir/utils/routing_utils.cpp.o
[ 77%] Building CXX object src/CMakeFiles/tins.dir/utils/resolve_utils.cpp.o
[ 78%] Building CXX object src/CMakeFiles/tins.dir/utils/pdu_utils.cpp.o
[ 80%] Building CXX object src/CMakeFiles/tins.dir/dot11/dot11_base.cpp.o
[ 81%] Building CXX object src/CMakeFiles/tins.dir/dot11/dot11_data.cpp.o
[ 83%] Building CXX object src/CMakeFiles/tins.dir/dot11/dot11_mgmt.cpp.o
[ 84%] Building CXX object src/CMakeFiles/tins.dir/dot11/dot11_beacon.cpp.o
[ 85%] Building CXX object src/CMakeFiles/tins.dir/dot11/dot11_assoc.cpp.o
[ 87%] Building CXX object src/CMakeFiles/tins.dir/dot11/dot11_auth.cpp.o
[ 88%] Building CXX object src/CMakeFiles/tins.dir/dot11/dot11_probe.cpp.o
[ 90%] Building CXX object src/CMakeFiles/tins.dir/dot11/dot11_control.cpp.o
[ 91%] Building CXX object src/CMakeFiles/tins.dir/sniffer.cpp.o
[ 92%] Building CXX object src/CMakeFiles/tins.dir/packet_writer.cpp.o
[ 94%] Building CXX object src/CMakeFiles/tins.dir/pktap.cpp.o
[ 95%] Building CXX object src/CMakeFiles/tins.dir/tcp_stream.cpp.o
[ 97%] Building CXX object src/CMakeFiles/tins.dir/offline_packet_filter.cpp.o
[ 98%] Building CXX object src/CMakeFiles/tins.dir/ppi.cpp.o
[100%] Linking CXX shared library ../lib/libtins.so
/usr/bin/ld: /usr/local/lib/libcrypto.a(v3_genn.o): relocation R_X86_64_PC32 against symbol `GENERAL_NAME_it' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/tins.dir/build.make:1152: lib/libtins.so.4.3] Error 1
make[1]: *** [CMakeFiles/Makefile2:158: src/CMakeFiles/tins.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Please guide me to rectify this issue!

@laudrup
Copy link
Contributor

laudrup commented Jul 24, 2020

You must likely need to rebuild your openssl static library with the position independent code flag set (-fPIC).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants