fredollinger / dillo

Tiny Light Web Browser Fork
GNU General Public License v3.0
11 stars 1 forks source link

multiple definition error #1

Closed clehner closed 9 months ago

clehner commented 10 months ago

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
clehner commented 9 months ago

Same as https://github.com/w00fpack/dilloNG/issues/5, https://bugs.debian.org/957136, https://bugzilla.redhat.com/show_bug.cgi?id=1799282

Fix in https://github.com/w00fpack/dilloNG/pull/6 / https://github.com/dillo-browser/dillo/commit/4d35673f69d837db894305f3b3b618a26d0277c7