You are not logged in.

#1 2012-06-28 18:27:12

tasos
Member
From: Alpha Centauri
Registered: 2009-02-08
Posts: 25
Website

problem compiling libcapsinetwork in x86_64

Hello, I maintain the monopd package in aur which requires libcapsinetwork.
Libcapsinetwork fails to compile in x86_64 systems with the following error (showing relevant portion):

g++ -shared /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../lib/crti.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/crtbeginS.o  .libs/listener.o .libs/listenport.o .libs/socket.o  -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1 -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/crtendS.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../lib/crtn.o  -march=native -mtune=generic -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -o .libs/libcapsinetwork.so.0.0.3
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../lib/crti.o: In function `_init':
initfini.c:(.init+0x0): multiple definition of `_init'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../lib/crti.o:initfini.c:(.init+0x0): first defined here
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../lib/crti.o: In function `_fini':
initfini.c:(.fini+0x0): multiple definition of `_fini'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../lib/crti.o:initfini.c:(.fini+0x0): first defined here
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/crtbeginS.o:(.data.rel+0x0): multiple definition of `__dso_handle'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/crtbeginS.o:(.data.rel+0x0): first defined here
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/crtendS.o:(.tm_clone_table+0x0): multiple definition of `__TMC_END__'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/crtendS.o:(.tm_clone_table+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [libcapsinetwork.la] Error 1
make[2]: Leaving directory `/home/tassadar/dev/github/pkgbuilds/libcapsinetwork/src/libcapsinetwork-0.3.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tassadar/dev/github/pkgbuilds/libcapsinetwork/src/libcapsinetwork-0.3.0'
make: *** [all] Error 2

Any patches I tried did not solve the problem. However manually running:

g++ -shared .libs/listener.o .libs/listenport.o .libs/socket.o -o .libs/libcapsinetwork.so.0.0.3

seems to work (thanks to user Quentin for the tip).

The problem is that I don't know what to change in the Makefile{,.in,.am} to make it work. Autotools is major PITA. So, any experienced guru's with autotools/make are welcome to help.

FWIW upstream development is dead for some time now, do you think it is worth keeping?


.: github :.

Offline

Board footer

Powered by FluxBB