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

3.0 fails to build on OpenBSD #1170

Closed
vaygr opened this issue Mar 28, 2024 · 2 comments
Closed

3.0 fails to build on OpenBSD #1170

vaygr opened this issue Mar 28, 2024 · 2 comments

Comments

@vaygr
Copy link

vaygr commented Mar 28, 2024

ar rcs libn2n.a  src/aes.o  src/auth.o  src/cc20.o  src/curve25519.o  src/edge.o  src/edge_management.o  src/edge_utils.o  src/edge_utils_win32.o
 src/example_edge_embed.o  src/example_edge_embed_quick_edge_init.o  src/example_sn_embed.o  src/header_encryption.o  src/hexdump.o  src/minilzo.o  src/n2n.o  src/n2n_regex.o  src/network_traffic_filter.o  src/pearson.o  src/random_numbers.o  src/sn_management.o  src/sn_selection.o  src/sn_utils.o  src/speck.o  src/supernode.o  src/tf.o  src/transform_aes.o  src/transform_cc20.o  src/transform_null.o  src/transform_speck.o  src/transform_tf.o  src/tuntap_freebsd.o  src/tuntap_linux.o  src/tuntap_netbsd.o  src/tuntap_osx.o  src/wire.o
cc -pthread -L .  src/edge.o libn2n.a  -ln2n -o src/edge
edge_utils.c:2696 (src/edge_utils.c:2696)(edge_utils.o:(process_udp) in archive libn2n.a): warning: sprintf() is often misused, please use snprintf()
network_traffic_filter.c:70 (src/network_traffic_filter.c:70)(network_traffic_filter.o:(get_filter_packet_info_log_string) in archive libn2n.a): warning: strcpy() is almost always misused, please use strlcpy()
ld: error: undefined symbol: tuntap_open
>>> referenced by edge.c:1222 (src/edge.c:1222)
>>>               src/edge.o:(main)
>>> referenced by edge_utils.c:2326 (src/edge_utils.c:2326)
>>>               edge_utils.o:(edge_read_from_tap) in archive libn2n.a
>>> referenced by edge_utils.c:3806 (src/edge_utils.c:3806)
>>>               edge_utils.o:(quick_edge_init) in archive libn2n.a

ld: error: undefined symbol: tuntap_close
>>> referenced by edge.c:1346 (src/edge.c:1346)
>>>               src/edge.o:(main)
>>> referenced by edge_utils.c:2325 (src/edge_utils.c:2325)
>>>               edge_utils.o:(edge_read_from_tap) in archive libn2n.a
>>> referenced by edge_utils.c:3825 (src/edge_utils.c:3825)
>>>               edge_utils.o:(quick_edge_init) in archive libn2n.a

ld: error: undefined symbol: tuntap_read
>>> referenced by edge_utils.c:2319 (src/edge_utils.c:2319)
>>>               edge_utils.o:(edge_read_from_tap) in archive libn2n.a

ld: error: undefined symbol: tuntap_write
>>> referenced by edge_utils.c:1750 (src/edge_utils.c:1750)
>>>               edge_utils.o:(process_udp) in archive libn2n.a

ld: error: undefined symbol: tuntap_get_address
>>> referenced by edge_utils.c:3161 (src/edge_utils.c:3161)
>>>               edge_utils.o:(run_edge_loop) in archive libn2n.a
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake: *** [<builtin>: src/edge] Error 1
@hamishcoleman
Copy link
Collaborator

Compiling on BSD is a tested part of the CI in the recently released fork n3n
You should be able to compile that project - and if it doesnt work, raise a ticket over there and we would be happy to investigate it further as part of that new project.

@vaygr
Copy link
Author

vaygr commented Mar 30, 2024

Thanks, I raised an issue there.

@vaygr vaygr closed this as completed Mar 30, 2024
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