[PATCH] cellmgr-ng[master]: Build fix attempt

Max gerrit-no-reply at lists.osmocom.org
Tue Jan 17 11:29:59 UTC 2017


Review at  https://gerrit.osmocom.org/1616

Build fix attempt

Trying to fix .deb packages build failure which I was unable to
reproduce locally:

[  139s] gcc -Wall -I/usr/include/ -I/usr/include/ -I/usr/include/ -I/usr/include/   -DNO_UNIPORTE -g -O2 -fdebug-prefix-map=/usr/src/packages/BUILD=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-Bsymbolic-functions -Wl,-z,relro -o cellmgr_ng main.o mtp_layer3.o thread.o ipaccess.o pcap.o bss_patch.o bssap_sccp.o bsc_sccp.o bsc_ussd.o links.o msc_conn.o link_udp.o snmp_mtp.o debug.o isup.o mtp_link.o counter.o sccp_state.o bsc.o ss7_application.o vty_interface_legacy.o vty_interface_cmds.o mgcp_patch.o mgcp_callagent.o isup_filter.o -ltalloc -losmocore -ltalloc -losmogsm -losmocore -ltalloc -losmovty -losmocore -losmosccp -losmoxua  -lpthread -lnetsnmp -lcrypto
[  139s] /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libosmosccp.so: undefined reference to `talloc_free'
[  139s] collect2: error: ld returned 1 exit status
[  139s] Makefile:425: recipe for target 'cellmgr_ng' failed
[  139s] make[3]: *** [cellmgr_ng] Error 1
[  139s] make[3]: Leaving directory '/usr/src/packages/BUILD/src'

Changing order of the libs to match that of osmo-bsc hoping that it's
help ld to do the right thing.

Change-Id: I8b989c5012818a302ec819501da1a1c67ac3bab5
---
M src/Makefile.am
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/cellmgr-ng refs/changes/16/1616/1

diff --git a/src/Makefile.am b/src/Makefile.am
index 2052851..20660f8 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -17,8 +17,8 @@
 		     mtp_link.c counter.c sccp_state.c bsc.c ss7_application.c \
 		     vty_interface_legacy.c vty_interface_cmds.c mgcp_patch.c \
 		     mgcp_callagent.c  isup_filter.c
-cellmgr_ng_LDADD = $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(LIBOSMOVTY_LIBS) \
-		   $(LIBOSMOSCCP_LIBS) $(NEXUSWARE_C7_LIBS) \
+cellmgr_ng_LDADD = $(LIBOSMOSCCP_LIBS) $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(LIBOSMOVTY_LIBS) \
+		   $(NEXUSWARE_C7_LIBS) \
 		   -lpthread -lnetsnmp -lcrypto
 
 osmo_stp_SOURCES = main_stp.c mtp_layer3.c thread.c pcap.c link_udp.c snmp_mtp.c \
@@ -28,6 +28,6 @@
 		   vty_interface.c vty_interface_cmds.c mgcp_patch.c \
 		   mgcp_callagent.c isup_filter.c sctp_m3ua_client.c \
 		   sctp_m3ua_misc.c
-osmo_stp_LDADD = $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(LIBOSMOVTY_LIBS) \
-		 $(LIBOSMOSCCP_LIBS) $(NEXUSWARE_C7_LIBS) \
+osmo_stp_LDADD = $(LIBOSMOSCCP_LIBS) $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(LIBOSMOVTY_LIBS) \
+		 $(NEXUSWARE_C7_LIBS) \
 		   -lpthread -lnetsnmp -lcrypto -lxua -lsctp

-- 
To view, visit https://gerrit.osmocom.org/1616
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8b989c5012818a302ec819501da1a1c67ac3bab5
Gerrit-PatchSet: 1
Gerrit-Project: cellmgr-ng
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>


More information about the gerrit-log mailing list