Ticket #3033 (closed defect: duplicate)

Opened 11 years ago

Last modified 11 years ago

mc-4.8.8 linux build from source failed with static glib

Reported by: ISanych Owned by:
Priority: major Milestone:
Component: mc-core Version: master
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

Linking failed, to fix it I've added gmodule lib to link command (-lgmodule-2.0) in makefile, after that build was ok.

make[1]: Entering directory `/home/jenkins_local/src/mc-4.8.8/src'
/bin/sh ../libtool  --tag=CC   --mode=link gcc -std=gnu99  -fdiagnostics-show-option -Wcomment -Wdeclaration-after-statement -Wfloat-equal -Wformat -Wformat-security -Wimplicit -Wignored-qualifiers -Wmissing-braces -Wmissing-declarations -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs -Wno-long-long -Wno-unreachable-code -Wparentheses -Wpointer-sign -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wswitch -Wtype-limits -Wuninitialized -Wunused-but-set-variable -Wunused-function -Wunused-label -Wunused-parameter -Wunused-result -Wunused-value -Wunused-variable -Wwrite-strings  -g -O2   -o mc main.o libinternal.la ../lib/libmc.la
libtool: link: gcc -std=gnu99 -fdiagnostics-show-option -Wcomment -Wdeclaration-after-statement -Wfloat-equal -Wformat -Wformat-security -Wimplicit -Wignored-qualifiers -Wmissing-braces -Wmissing-declarations -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs -Wno-long-long -Wno-unreachable-code -Wparentheses -Wpointer-sign -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wswitch -Wtype-limits -Wuninitialized -Wunused-but-set-variable -Wunused-function -Wunused-label -Wunused-parameter -Wunused-result -Wunused-value -Wunused-variable -Wwrite-strings -g -O2 -o mc main.o  ./.libs/libinternal.a -L/home/jenkins_local/tools/lib ../lib/.libs/libmc.a -lslang /home/jenkins_local/tools/lib/libglib-2.0.a -ldl -lpthread -lrt -pthread
./.libs/libinternal.a(x11conn.o): In function `x11_available':
/home/jenkins_local/src/mc-4.8.8/lib/tty/x11conn.c:136: undefined reference to `g_module_build_path'
/home/jenkins_local/src/mc-4.8.8/lib/tty/x11conn.c:137: undefined reference to `g_module_open'
/home/jenkins_local/src/mc-4.8.8/lib/tty/x11conn.c:146: undefined reference to `g_module_symbol'
/home/jenkins_local/src/mc-4.8.8/lib/tty/x11conn.c:148: undefined reference to `g_module_symbol'
/home/jenkins_local/src/mc-4.8.8/lib/tty/x11conn.c:166: undefined reference to `g_module_close'
/home/jenkins_local/src/mc-4.8.8/lib/tty/x11conn.c:150: undefined reference to `g_module_symbol'
/home/jenkins_local/src/mc-4.8.8/lib/tty/x11conn.c:152: undefined reference to `g_module_symbol'
/home/jenkins_local/src/mc-4.8.8/lib/tty/x11conn.c:154: undefined reference to `g_module_symbol'
/home/jenkins_local/src/mc-4.8.8/lib/tty/x11conn.c:139: undefined reference to `g_module_open'
collect2: error: ld returned 1 exit status
make[1]: *** [mc] Error 1
make[1]: Leaving directory `/home/jenkins_local/src/mc-4.8.8/src'
make: *** [all-recursive] Error 1

Change History

comment:1 Changed 11 years ago by andrew_b

  • Status changed from new to closed
  • Resolution set to duplicate
  • Milestone Future Releases deleted

Duplicate of #2129 (main ticket for static build problems).

Note: See TracTickets for help on using tickets.