Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#33595 closed defect (fixed)

krusader: Undefined symbols Solid::DeviceNotifier::instance etc.

Reported by: istvan.m.antal@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: haspatch Cc: fate.by@…, nebengtsson@…, alexa_0172@…, yuri@…, frantisek.rezac@…, al.iiieii@…, artem.golubev@…, ant_sssr@…, alpodrezov@…, axone-zero, barbara456x@…, mymacports@…, mike@…
Port: krusader

Description

I just reformatted my partition, and reinstalled macports and can't install krusader, because it fails to compile.

I am using Lion with Xcode 4.2.1 (4D502)

Attachments (4)

main.log (1.4 MB) - added by istvan.m.antal@… 13 years ago.
main.2.log (315.4 KB) - added by nebengtsson@… 13 years ago.
main-2.log (324.4 KB) - added by alexa_0172@… 13 years ago.
krusader.patch.tar.gz (730 bytes) - added by mike@… 12 years ago.
Patch to fix krusader build issues with Solid lib.

Change History (37)

Changed 13 years ago by istvan.m.antal@…

Attachment: main.log added

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to jonas@…
Summary: "Undefined symbols for architecture x86_64:" when compiling krusaderkrusader: Undefined symbols Solid::DeviceNotifier::instance etc.

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: fate.by@… added
Owner: changed from jonas@… to macports-tickets@…

Has duplicate #33718.

comment:3 Changed 13 years ago by nebengtsson@…

Cc: nebengtsson@… added

Cc Me!

Changed 13 years ago by nebengtsson@…

Attachment: main.2.log added

comment:4 Changed 13 years ago by alexa_0172@…

Hi, I got same error with compiling Krusader:

:info:build Undefined symbols for architecture x86_64:
:info:build   "Solid::DeviceNotifier::instance()", referenced from:
:info:build       MediaButton::MediaButton(QWidget*)in libGUI.a(mediabutton.o)
:info:build   "Solid::Device::parent() const", referenced from:
:info:build       MediaButton::eject(QString)      in libGUI.a(mediabutton.o)
:info:build   "Solid::StorageAccess::filePath() const", referenced from:
:info:build       MediaButton::slotSetupDone(Solid::ErrorType, QVariant, QString const&) in libGUI.a(mediabutton.o)

Environment: OS X-10.7.3, darwin-11.3.0; MacPorts-2.04-10.7-Lion.dmg 550kb; XCode-4.3.2 (4E2002); The X-Window System XQuartz 2.6.3 (xorg-server 1.10.3) Could somebody please look into this? Something (?symbol?) apparently is simply missing in the latest release. I am submitting the log file "main-2.log".

Changed 13 years ago by alexa_0172@…

Attachment: main-2.log added

comment:5 Changed 13 years ago by alexa_0172@…

Cc: alexa_0172@… added

Cc Me!

comment:6 Changed 13 years ago by yuri@…

Same defect here. Can't pass through the compilation with "undefined symbols" error.

comment:7 Changed 13 years ago by yuri@…

Cc: yuri@… added

Cc Me!

comment:8 Changed 12 years ago by frantisek.rezac@…

Cc: frantisek.rezac@… added

Cc Me!

comment:9 Changed 12 years ago by al.iiieii@…

Cc: al.iiieii@… added

Cc Me!

comment:10 Changed 12 years ago by al.iiieii@…

Is there any workaround to install krusader on Lion?

comment:11 Changed 12 years ago by mf2k (Frank Schima)

The usual method would be to try the following:

sudo port clean krusader
sudo port install krusader configure.compiler=llvm-gcc-4.2

comment:12 in reply to:  11 Changed 12 years ago by al.iiieii@…

Replying to macsforever2000@…:

The usual method would be to try the following:

sudo port clean krusader
sudo port install krusader configure.compiler=llvm-gcc-4.2

Didn't help. The same problem with undefined Solid:: etc.

comment:13 Changed 12 years ago by mastak365@…

Did not work for me either. Can't install Krusader. Any help would be greatly appreciated.

I researched on it a bit: some of the errors with previous MacPort releases appear somehow connected to the same "buttons panel" curse in Krusader. This time the issue ain't far again. I hope this gives some ideas. M.

comment:14 Changed 12 years ago by jypelait@…

I have also exactly same problem. I tried to compile it also with apple-gcc-4.2 but that didn't help either. Hope that this will be resolved soon...

comment:15 Changed 12 years ago by artem.golubev@…

Same issue on Mac OS X 10.7.4, MacPorts 2.2.1, Xcode 4.3.3

comment:16 Changed 12 years ago by artem.golubev@…

Cc: artem.golubev@… added

Cc Me!

comment:17 Changed 12 years ago by ant_sssr@…

Cc: ant_sssr@… added

Cc Me!

comment:18 Changed 12 years ago by ant_sssr@…

Issue on Mac OS X 10.7.4, MacPorts 2.1.1, Xcode 4.3.3

comment:19 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: alpodrezov@… added

Has duplicate #35260.

comment:20 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: mitroshin@… added

Has duplicate #35284.

comment:21 Changed 12 years ago by barbara456x@…

Unclear what the problem is, but Krusader will simply not compile. Mac OS X 10.7.4, MacPorts 2.1.2, Xcode 4.4

comment:22 Changed 12 years ago by barbara456x@…

Cc: barbara456x@… added

Cc Me!

comment:23 Changed 12 years ago by mymacports@…

Mac OS X 10.8, MacPorts 2.1.2, Xcode 4.4.1

...
:info:build       MediaButton::eject(QString)      in libGUI.a(mediabutton.o)
:info:build ld: symbol(s) not found for architecture x86_64
:info:build collect2: ld returned 1 exit status
:info:build make[2]: *** [krusader/krusader.app/Contents/MacOS/krusader] Error 1
...

comment:24 Changed 12 years ago by mymacports@…

Cc: mymacports@… added

Cc Me!

Changed 12 years ago by mike@…

Attachment: krusader.patch.tar.gz added

Patch to fix krusader build issues with Solid lib.

comment:25 Changed 12 years ago by mike@…

I have attached a tar.gz that contains a patch to fix this together with a portfile patch to apply the patch.

The issue was that the KDE Solid lib was not being linked into Krusader (hence the missing Solid symbols messages)

This is my first Macports patch so I hope everything is in order. I have tested it locally of course :-)

As Krusader does not seem to have a maintainer I am unsure as to the next step, feel free to educate me...

comment:26 Changed 12 years ago by mike@…

Cc: mike@… added

Cc Me!

comment:27 Changed 12 years ago by alexa_0172@…

Would you please tell us nubes how to apply it? Tnx.

comment:28 Changed 12 years ago by al.iiieii@…

After unpacking try this (I believe that you will replace the <path_to_patch> with the real path):

cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/kde/krusader
sudo patch -p0 < ~/Downloads/<path_to_patch>/krusader-Portfile.patch
sudo cp ~/Downloads/<path_to_patch>/files/krusader-CMakeLists.patch
sudo port install krusader

comment:29 Changed 12 years ago by alexa_0172@…

What a relief! All worked, many thanks. BTW: the first line should end with ../krusader/files

comment:30 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Has duplicate #36008.

comment:31 in reply to:  25 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added
Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

comment:32 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Replying to mike@…:

I have attached a tar.gz that contains a patch to fix this together with a portfile patch to apply the patch.

Thanks very much! Committed in r97488.

If this patch did not come from the developers of krusader or is not already known to them, please inform them of it so that they can apply the fix too.

comment:33 Changed 12 years ago by mike@…

No problem :-)

Good point, I'll check with the Krusader peeps.

Note: See TracTickets for help on using tickets.