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

mc-4.8.8 linux build from source failed with static glib #3033

Closed
mc-butler opened this issue Jul 8, 2013 · 1 comment
Closed

mc-4.8.8 linux build from source failed with static glib #3033

mc-butler opened this issue Jul 8, 2013 · 1 comment
Labels
area: core Issues not related to a specific subsystem prio: medium Has the potential to affect progress

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/3033
Reporter ISanych

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
@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Jul 8, 2013 at 16:50 UTC (comment 1)

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: core Issues not related to a specific subsystem prio: medium Has the potential to affect progress
Development

No branches or pull requests

1 participant