8000 Linking error when compiling with "--enable-debug" on OpenBSD 6.7 · Issue #5862 · curl/curl · GitHub
[go: up one dir, main page]

Skip to content

Linking error when compiling with "--enable-debug" on OpenBSD 6.7 #5862

@cvengler

Description

@cvengler

I did this

export AUTOCONF_VERSION=2.69
export AUTOMAKE_VERSION=1.16
./buildconf
./configure --enable-debug
make

...
ld: error: undefined symbol: curl_dbg_malloc
>>> referenced by slist_wc.c:45
>>>               curl-slist_wc.o:(slist_wc_append)

ld: error: undefined symbol: curl_dbg_free
>>> referenced by slist_wc.c:69
>>>               curl-slist_wc.o:(slist_wc_free_all)

ld: error: undefined symbol: curl_dbg_fopen
>>> referenced by tool_cb_dbg.c:84
>>>               curl-tool_cb_dbg.o:(tool_debug_cb)

ld: error: undefined symbol: curl_dbg_free
>>> referenced by tool_cb_hdr.c:164
>>>               curl-tool_cb_hdr.o:(tool_header_cb)

ld: error: undefined symbol: curl_dbg_malloc
>>> referenced by tool_cb_hdr.c:217
>>>               curl-tool_cb_hdr.o:(parse_filename)

ld: error: undefined symbol: curl_dbg_free
>>> referenced by tool_cb_hdr.c:242
>>>               curl-tool_cb_hdr.o:(parse_filename)

ld: error: undefined symbol: curl_dbg_free
>>> referenced by tool_cb_hdr.c:254
>>>               curl-tool_cb_hdr.o:(parse_filename)

ld: error: undefined symbol: curl_dbg_free
>>> referenced by tool_cb_hdr.c:292
>>>               curl-tool_cb_hdr.o:(parse_filename)

ld: error: undefined symbol: curl_dbg_strdup
>>> referenced by tool_cb_hdr.c:293
>>>               curl-tool_cb_hdr.o:(parse_filename)

ld: error: undefined symbol: curl_dbg_fdopen
>>> referenced by tool_cb_wrt.c:80
>>>               curl-tool_cb_wrt.o:(tool_create_output_file)

ld: error: undefined symbol: curl_dbg_free
>>> referenced by tool_cb_wrt.c:84
>>>               curl-tool_cb_wrt.o:(tool_create_output_file)

ld: error: undefined symbol: curl_dbg_fopen
>>> referenced by tool_cb_wrt.c:88
>>>               curl-tool_cb_wrt.o:(tool_create_output_file)

ld: error: undefined symbol: curl_dbg_free
>>> referenced by tool_cfgable.c:53
>>>               curl-tool_cfgable.o:(free_config_fields)

ld: error: undefined symbol: curl_dbg_free
>>> referenced by tool_cfgable.c:54
>>>               curl-tool_cfgable.o:(free_config_fields)

ld: error: undefined symbol: curl_dbg_free
>>> referenced by tool_cfgable.c:55
>>>               curl-tool_cfgable.o:(free_config_fields)

ld: error: undefined symbol: curl_dbg_free
>>> referenced by tool_cfgable.c:56
>>>               curl-tool_cfgable.o:(free_config_fields)

ld: error: undefined symbol: curl_dbg_free
>>> referenced by tool_cfgable.c:57
>>>               curl-tool_cfgable.o:(free_config_fields)

ld: error: undefined symbol: curl_dbg_free
>>> referenced by tool_cfgable.c:58
>>>               curl-tool_cfgable.o:(free_config_fields)

ld: error: undefined symbol: curl_dbg_free
>>> referenced by tool_cfgable.c:59
>>>               curl-tool_cfgable.o:(free_config_fields)

ld: error: undefined symbol: curl_dbg_free
>>> referenced by tool_cfgable.c:61
>>>               curl-tool_cfgable.o:(free_config_fields)

ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
collect2: ld returned 1 exit status
*** Error 1 in target 'curl'
*** Error 1 in src (Makefile:984 'curl': @echo "  CCLD    " curl;/bin/sh ../libtool --silent --tag=CC    --mode=link gcc  -Werror-implicit-f...)
*** Error 1 in src (Makefile:2145 'all-recursive')
*** Error 1 in /home/eengler/curl (Makefile:1015 'all-recursive')

I expected the following

No linking errors

curl/libcurl version

259a815

operating system

OpenBSD openbsd.fritz.box 6.7 GENERIC#5 amd64

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0