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

linking with --with-glib-static option problem #1426

Closed
mc-butler opened this issue Jul 26, 2009 · 16 comments
Closed

linking with --with-glib-static option problem #1426

mc-butler opened this issue Jul 26, 2009 · 16 comments
Labels
area: core Issues not related to a specific subsystem prio: medium Has the potential to affect progress ver: 4.6.2 Reproducible in version 4.6.2
Milestone

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/1426
Reporter zaytsev (@zyv)

(was: RHEL 4 linking problem)

Hi!

I am working on a new universal SPEC for all RH-based distros and to date I came up with

http://nopaste.com/p/aAdSlProT

Now I get

http://nopaste.com/p/auCMzt4cz

Although it compiles fine. The question is what else do I need to link against my glib statically apart from the PKG_CONFIG_PATH?

Thanks!

Note

Original attachments:

  • txt (raw) by zaytsev (@zyv) on Jul 26, 2009 at 14:54 UTC
  • txt.1 (raw) by zaytsev (@zyv) on Jul 26, 2009 at 14:54 UTC
@mc-butler
Copy link
Author

Changed by zaytsev (@zyv) on Jul 26, 2009 at 14:54 UTC

mc.spec.in

@mc-butler
Copy link
Author

Changed by zaytsev (@zyv) on Jul 26, 2009 at 14:54 UTC

build.log

@mc-butler
Copy link
Author

Changed by iNode (@iNode) on Aug 1, 2009 at 11:48 UTC (comment 1)

Yet another use case for this ticket - #1436.
Fail also in ubuntu 8.04 LTS and ubuntu 9.04.

@mc-butler
Copy link
Author

Changed by iNode (@iNode) on Aug 1, 2009 at 12:42 UTC (comment 2)

  • Summary changed from RHEL 4 linking problem to linking with --with-glib-static option problem
  • Owner set to iNode
  • Description edited
  • Status changed from new to accepted

library search order change proposed, it should fix this problem,
please try:

-- src/Makefile.am.orig	2009-07-28 10:43:41.000000000 +0400
+++ src/Makefile.am	2009-08-01 16:28:53.000000000 +0400
@@ -42,4 +42,4 @@
 mc_LDADD = $(EDITLIB) $(SLANGLIB) $(VFSLIB) \
-	$(INTLLIBS) $(GLIB_LIBS) $(MCLIBS) $(LIBICONV) search/libsearch.la \
-	mcconfig/libmcconfig.la
+	$(INTLLIBS) $(MCLIBS) search/libsearch.la \
+	mcconfig/libmcconfig.la $(GLIB_LIBS) $(LIBICONV)

@mc-butler
Copy link
Author

Changed by iNode (@iNode) on Aug 1, 2009 at 12:53 UTC (comment 3)

  • Severity changed from no branch to on review

branch created: [98f0fd1ca7608ac1a42c969892038895e270b80a]

please test and review

@mc-butler
Copy link
Author

Changed by iNode (@iNode) on Aug 1, 2009 at 13:03 UTC (comment 3.4)

Replying to iNode:

branch created: [98f0fd1ca7608ac1a42c969892038895e270b80a]

please test and review

another branch with correct name: [3d6552894fb17781a7f2e3d9172e55e99a553e1f]

@mc-butler
Copy link
Author

Changed by iNode (@iNode) on Aug 1, 2009 at 14:15 UTC (comment 4.5)

additional cleanup changeset [090bfd67b937693d96a2427cb2f9108eae414096]

@mc-butler
Copy link
Author

Changed by zaytsev (@zyv) on Aug 1, 2009 at 14:25 UTC (comment 6)

  • Votes set to zaytsev

Now works for me.

@mc-butler
Copy link
Author

Changed by slyfox (@trofi) on Aug 1, 2009 at 15:32 UTC (comment 7)

  • Votes changed from zaytsev to zaytsev slyfox

Same here: now works correctly (gentoo amd64)

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Aug 2, 2009 at 6:48 UTC (comment 8)

  • Votes changed from zaytsev slyfox to zaytsev slyfox angel_il
  • Severity changed from on review to approved

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Aug 2, 2009 at 6:49 UTC (comment 9)

  • Votes changed from zaytsev slyfox angel_il to zaytsev slyfox
  • Severity changed from approved to on rework

/home/projects/mc/src/mcconfig/set.c:85: undefined reference to `g_key_file_set_boolean'
mcconfig/.libs/libmcconfig.a(libmcconfig_la-set.o): In function `mc_config_set_string':
/home/projects/mc/src/mcconfig/set.c:72: undefined reference to `g_key_file_set_string'

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Aug 2, 2009 at 7:41 UTC (comment 10)

  • Votes changed from zaytsev slyfox to zaytsev slyfox angel_il
  • Severity changed from on rework to approved

@mc-butler
Copy link
Author

Changed by iNode (@iNode) on Aug 2, 2009 at 8:06 UTC (comment 11)

  • Resolution set to fixed
  • Severity changed from approved to merged
  • Votes changed from zaytsev slyfox angel_il to commited master
  • Status changed from accepted to testing

Fixed: [ea4a652]

@mc-butler
Copy link
Author

Changed by iNode (@iNode) on Aug 2, 2009 at 8:09 UTC (comment 12)

  • Votes changed from commited master to commited-master

@mc-butler
Copy link
Author

Changed by zaytsev (@zyv) on Aug 2, 2009 at 10:10 UTC (comment 13)

  • Status changed from testing to closed

@mc-butler
Copy link
Author

Changed by zaytsev (@zyv) on Feb 20, 2025 at 15:54 UTC (comment 14)

Ticket #1436 has been marked as a duplicate of this ticket.

@mc-butler mc-butler marked this as a duplicate of #1436 Feb 28, 2025
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 ver: 4.6.2 Reproducible in version 4.6.2
Development

No branches or pull requests

1 participant