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

multiple definition error #1

Closed
clehner opened this issue Nov 15, 2023 · 1 comment
Closed

multiple definition error #1

clehner opened this issue Nov 15, 2023 · 1 comment

Comments

@clehner
Copy link

clehner commented Nov 15, 2023

build fails as follows. Debian Testing. this also happen with upstream dillo - but i would like to track it with an issue - and then fix it so i can try your new features!

gcc  -g -O2 -DD_DNS_THREADED -D_REENTRANT -D_THREAD_SAFE -Wall -W -Wno-unused-parameter -Waggregate-return  -L/usr/local/lib -o dpid dpi.o dpi_socket_dir.o dpid.o dpid_common.o main.o misc_new.o ../dpip/libDpip.a ../dlib/libDlib.a 
/usr/bin/ld: dpi_socket_dir.o:/home/cel/src/dillo/dpid/dpid_common.h:44: multiple definition of `dpi_errno'; dpi.o:/home/cel/src/dillo/dpid/dpid_common.h:44: first defined here
/usr/bin/ld: dpid.o:/home/cel/src/dillo/dpid/dpid_common.h:44: multiple definition of `dpi_errno'; dpi.o:/home/cel/src/dillo/dpid/dpid_common.h:44: first defined here
/usr/bin/ld: dpid_common.o:/home/cel/src/dillo/dpid/dpid_common.h:44: multiple definition of `dpi_errno'; dpi.o:/home/cel/src/dillo/dpid/dpid_common.h:44: first defined here
/usr/bin/ld: main.o:/home/cel/src/dillo/dpid/dpid.h:58: multiple definition of `dpi_attr_list'; dpid.o:/home/cel/src/dillo/dpid/dpid.h:58: first defined here
/usr/bin/ld: main.o:/home/cel/src/dillo/dpid/dpid.h:61: multiple definition of `services_list'; dpid.o:/home/cel/src/dillo/dpid/dpid.h:61: first defined here
/usr/bin/ld: main.o:/home/cel/src/dillo/dpid/dpid_common.h:44: multiple definition of `dpi_errno'; dpi.o:/home/cel/src/dillo/dpid/dpid_common.h:44: first defined here
/usr/bin/ld: main.o:/home/cel/src/dillo/dpid/dpid.h:52: multiple definition of `numdpis'; dpid.o:/home/cel/src/dillo/dpid/dpid.h:52: first defined here
/usr/bin/ld: main.o:/home/cel/src/dillo/dpid/dpid.h:55: multiple definition of `numsocks'; dpid.o:/home/cel/src/dillo/dpid/dpid.h:55: first defined here
/usr/bin/ld: main.o:/home/cel/src/dillo/dpid/dpid.h:64: multiple definition of `sock_set'; dpid.o:/home/cel/src/dillo/dpid/dpid.h:64: first defined here
/usr/bin/ld: main.o:/home/cel/src/dillo/dpid/dpid.h:31: multiple definition of `srs_fd'; dpid.o:/home/cel/src/dillo/dpid/dpid.h:31: first defined here
/usr/bin/ld: main.o:/home/cel/src/dillo/dpid/dpid.h:28: multiple definition of `srs_name'; dpid.o:/home/cel/src/dillo/dpid/dpid.h:28: first defined here
/usr/bin/ld: misc_new.o:/home/cel/src/dillo/dpid/dpid_common.h:44: multiple definition of `dpi_errno'; dpi.o:/home/cel/src/dillo/dpid/dpid_common.h:44: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:428: dpid] Error 1
make[2]: Leaving directory '/home/cel/src/dillo/dpid'
make[1]: *** [Makefile:438: all-recursive] Error 1
make[1]: Leaving directory '/home/cel/src/dillo'
make: *** [Makefile:358: all] Error 2
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

1 participant