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

some compile problem about fr_xxx function #2248

Closed
NolanWoo opened this Issue Jun 13, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@NolanWoo

NolanWoo commented Jun 13, 2018

Issue type

compile problem

Defect

./configure --with-pcap-lib-dir=/usr/local/lib --with-pcap-include-dir=/usr/local/include
make

Output of [radiusd|freeradius] -X showing issue occurring

build/objs/src/main/radsniff.o: In function `rs_signal_self':
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1840: undefined reference to `fr_syserror'
build/objs/src/main/radsniff.o: In function `_request_free':
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:823: undefined reference to `fr_assert_cond'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:818: undefined reference to `fr_assert_cond'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:813: undefined reference to `fr_assert_cond'
build/objs/src/main/radsniff.o: In function `rs_rtx_cmp':
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1671: undefined reference to `fr_assert_cond'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1672: undefined reference to `fr_assert_cond'
build/objs/src/main/radsniff.o: In function `rs_build_filter':
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1730: undefined reference to `fr_pair_list_afrom_str'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1741: undefined reference to `fr_cursor_init'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1743: undefined reference to `fr_cursor_next'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1743: undefined reference to `fr_cursor_next'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1757: undefined reference to `fr_pair_cmp_by_da_tag'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1757: undefined reference to `fr_pair_list_sort'
build/objs/src/main/radsniff.o: In function `rs_stats_process':
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:677: undefined reference to `fr_debug_lvl'
build/objs/src/main/radsniff.o: In function `rs_signal_action':
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1879: undefined reference to `fr_debug_lvl'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1859: undefined reference to `fr_syserror'
build/objs/src/main/radsniff.o: In function `rs_packet_print_fancy':
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:476: undefined reference to `fr_debug_lvl'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:482: undefined reference to `fr_debug_lvl'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:490: undefined reference to `fr_pair_cmp_by_da_tag'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:490: undefined reference to `fr_pair_list_sort'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:425: undefined reference to `fr_assert_cond'
build/objs/src/main/radsniff.o: In function `rs_packet_print_csv':
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:367: undefined reference to `fr_pair_find_by_da'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:328: undefined reference to `fr_assert_cond'
build/objs/src/main/radsniff.o: In function `rs_build_dict_list':
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1719: undefined reference to `fr_pointer_cmp'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1719: undefined reference to `fr_quick_sort'
build/objs/src/main/radsniff.o: In function `_rs_event_status':
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1656: undefined reference to `fr_debug_lvl'
build/objs/src/main/radsniff.o: In function `rs_packet_cleanup':
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:851: undefined reference to `fr_debug_lvl'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:876: undefined reference to `fr_debug_lvl'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:840: undefined reference to `fr_assert_cond'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:839: undefined reference to `fr_assert_cond'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:841: undefined reference to `fr_assert_cond'
build/objs/src/main/radsniff.o: In function `rs_packet_process':
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1044: undefined reference to `fr_debug_lvl'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1048: undefined reference to `fr_pcap_link_layer_offset'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1120: undefined reference to `fr_udp_checksum'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1309: undefined reference to `fr_debug_lvl'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1198: undefined reference to `fr_debug_lvl'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1333: undefined reference to `fr_pair_cmp_by_da_tag'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1333: undefined reference to `fr_pair_list_sort'
build/objs/src/main/radsniff.o: In function `rs_get_pairs':
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:778: undefined reference to `fr_cursor_init'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:779: undefined reference to `fr_cursor_init'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:781: undefined reference to `fr_cursor_next_by_da'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:793: undefined reference to `fr_cursor_insert'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:797: undefined reference to `fr_cursor_next_by_da'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:788: undefined reference to `fr_pair_copy'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:790: undefined reference to `fr_pair_list_free'
build/objs/src/main/radsniff.o: In function `rs_packet_process':
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1234: undefined reference to `fr_pair_cmp_by_da_tag'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1234: undefined reference to `fr_pair_list_sort'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1235: undefined reference to `fr_pair_validate_relaxed'
build/objs/src/main/radsniff.o: In function `rs_get_pairs':
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:783: undefined reference to `fr_cursor_init'
build/objs/src/main/radsniff.o: In function `rs_packet_process':
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1405: undefined reference to `fr_pair_validate_relaxed'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1541: undefined reference to `fr_debug_lvl'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1579: undefined reference to `fr_debug_lvl'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1284: undefined reference to `fr_debug_lvl'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1456: undefined reference to `fr_cursor_init'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1459: undefined reference to `fr_pair_steal'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1458: undefined reference to `fr_cursor_next'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1485: undefined reference to `fr_assert_cond'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1465: undefined reference to `fr_assert_cond'
build/objs/src/main/radsniff.o: In function `rs_got_packet':
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1599: undefined reference to `fr_event_loop_exiting'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1608: undefined reference to `fr_debug_lvl'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1612: undefined reference to `fr_event_list_num_fds'
build/objs/src/main/radsniff.o: In function `rs_rtx_cmp':
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1686: undefined reference to `fr_pair_list_cmp'
build/objs/src/main/radsniff.o: In function `main':
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1955: undefined reference to `fr_debug_lvl'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2136: undefined reference to `fr_pcap_init'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2068: undefined reference to `fr_pcap_init'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2075: undefined reference to `fr_pcap_init'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2184: undefined reference to `fr_check_lib_magic'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2191: undefined reference to `fr_pcap_init'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:1971: undefined reference to `fr_assert_cond'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2281: undefined reference to `dict_read'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2320: undefined reference to `fr_cursor_init'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2321: undefined reference to `fr_cursor_next_by_num'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2323: undefined reference to `fr_cursor_remove'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2337: undefined reference to `fr_cursor_init'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2338: undefined reference to `fr_cursor_next_by_num'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2340: undefined reference to `fr_cursor_remove'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2507: undefined reference to `fr_pcap_link_layer_supported'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2514: undefined reference to `fr_pcap_apply_filter'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2498: undefined reference to `fr_pcap_open'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2226: undefined reference to `fr_pcap_init'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2233: undefined reference to `fr_pcap_init'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2427: undefined reference to `fr_pcap_device_names'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2615: undefined reference to `fr_pcap_device_names'
build/objs/src/main/radsniff.o: In function `rs_daemonize':
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:147: undefined reference to `fr_syserror'
build/objs/src/main/radsniff.o: In function `main':
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2586: undefined reference to `fr_syserror'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2558: undefined reference to `fr_pcap_open'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2556: undefined reference to `fr_assert_cond'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2401: undefined reference to `fr_pcap_if_link_layer'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2407: undefined reference to `fr_pcap_link_layer_supported'
/usr/wutianyi/freeRADIUS/freeradius-server-3.0.x/src/main/radsniff.c:2413: undefined reference to `fr_pcap_init'
collect2: error: ld returned 1 exit status
make: *** [build/bin/local/radsniff] Error 1

Full backtrace from LLDB or GDB

COPY/PASTE OUTPUT HERE (WITHIN BACKTICKS).  NO PASTEBIN (ET AL) LINKS!
@alandekok

This comment has been minimized.

Member

alandekok commented Jun 13, 2018

It's not clear what you're doing wrong. But you are definitely running into issues that no one else is running into.

What OS are you using? What development tools?

The errors above only occur because the linking phase is going wrong. The only way that happens is (a) you're not using a normal compiler / linker, or (b) you're using an unsupport OS which has an abnormal compiler / linker.

@arr2036

This comment has been minimized.

Member

arr2036 commented Jun 14, 2018

fr_syserror is in libfreeradius-radius not libfreeradius-server

@NolanWoo NolanWoo closed this Jul 25, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment