Opened 12 years ago

Closed 12 years ago

#38550 closed defect (worksforme)

digikam @3.1.0 compilation error - ld: symbol(s) not found for architecture x86_64

Reported by: rafael.rios.saavedra@… Owned by: jgosmann (Jan Gosmann)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: eborisch (Eric A. Borisch)
Port: digikam

Description (last modified by larryv (Lawrence Velázquez))

Hi!
When building digikam 3.1.0 I get this error:

:info:build Undefined symbols for architecture x86_64:
:info:build   "KGeoMap::KGeoMapWidget::setSortKey(int)", referenced from:
:info:build       Digikam::GPSImageInfoSorter::slotSortOptionTriggered()      in digikam2kgeomap.cpp.o

....
tons of lines refearing to KGeoMap::xxxxxx
....

and at the end:

ld: symbol(s) not found for architecture x86_64
....
:info:build make[2]: *** [lib/libdigikamcore.3.0.0.dylib] Error 1

I have attached the complete log.

I am some kind of newbie using mac ports, so please tellme whatever info you need.

MacOS: 10.7.2
XCode: 4.1

Attachments (3)

main.log (1.1 MB) - added by rafael.rios.saavedra@… 12 years ago.
digikam compile log
main.2.log (21.1 MB) - added by rafael.rios.saavedra@… 12 years ago.
Clean build log
main.3.log (1.0 MB) - added by rafael.rios.saavedra@… 12 years ago.
New log with error when building kipi-plugins

Change History (15)

Changed 12 years ago by rafael.rios.saavedra@…

Attachment: main.log added

digikam compile log

comment:1 Changed 12 years ago by rafael.rios.saavedra@…

Cc: rafael.rios.saavedra@… added

Cc Me!

comment:2 Changed 12 years ago by larryv (Lawrence Velázquez)

Cc: rafael.rios.saavedra@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to jan@…

Thanks for the ticket. In the future, please Cc relevant port maintainers. Also, you don’t have to Cc yourself.

comment:3 Changed 12 years ago by cooljeanius (Eric Gallager)

Might want to cc sharky@… and nicos@… too, as they're the maintainers for most of the KDE ports.

comment:4 Changed 12 years ago by eborisch (Eric A. Borisch)

If you have digikam currently installed, you might try deactivating it first. (If that is the culprit, post it here so the Portfile can be updated!)

The build log seems to be from a repeated attempt at building. Clean and then build (only once) and attach the log.

comment:5 Changed 12 years ago by eborisch (Eric A. Borisch)

Cc: eborisch@… added

Cc Me!

comment:6 in reply to:  4 Changed 12 years ago by rafael.rios.saavedra@…

Replying to eborisch@…:

If you have digikam currently installed, you might try deactivating it first. (If that is the culprit, post it here so the Portfile can be updated!)

I have been using digikam and have update serveral times without problems but with 2.9.0 I was having errors compiling (other diferent than this), so I tried to uninstall a reinstall digikam. That didn't work so I delete ports (following the wiki instructions) and reinstalled ports from zero. Now I have this error.

The build log seems to be from a repeated attempt at building. Clean and then build (only once) and attach the log.

Yes, I have compile it twice, because It seems to me like a dependeces problem. May be the lib that include KGeo is not building. I will be out of home until Monday, so until then I can't try clean & build.

comment:7 in reply to:  2 Changed 12 years ago by rafael.rios.saavedra@…

Replying to larryv@…:

Thanks for the ticket. In the future, please Cc relevant port maintainers. Also, you don’t have to Cc yourself.

OK, thanks for the info and the reformating of my ticket.

comment:8 Changed 12 years ago by rafael.rios.saavedra@…

Hi!,

I have cleaned and tried again: sudo port install digikam, but I got the same error.
Also tried upgrading outdated ports, but It didn't do the trick.

I have attached the log of the clean build.

Changed 12 years ago by rafael.rios.saavedra@…

Attachment: main.2.log added

Clean build log

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

You should update your Xcode (and Mac OS X) to the latest version 4.6.1 and try again.

comment:10 in reply to:  9 ; Changed 12 years ago by rafael.rios.saavedra@…

Replying to macsforever2000@…:

You should update your Xcode (and Mac OS X) to the latest version 4.6.1 and try again.

I have updated to xcode 4.6.1 and MacOs X 10.7.5, now the error have changed but it seems very similar, now when building kipi-plugins:

:info:build Undefined symbols for architecture x86_64:
:info:build   "KIPIPlugins::KPMetadata::KPMetadata()", referenced from:
:info:build       KIPIGPSSyncPlugin::KipiImageItem::getMetadataForFile() const  in kipiimageitem.cpp.o
:info:build   "KIPIPlugins::KPAboutData::setHandbookEntry(QString const&)", referenced from:
:info:build       KIPIGPSSyncPlugin::GPSSyncDialog::GPSSyncDialog(QWidget*)in gpssyncdialog.cpp.o
[[BR]]
...
[[BR]]

I only trying digikam macport, and as I saw that the compiler changed in this version of xcode, I uninstalled all the macports and tried to install digikam again (rebuilding everything) so I don't mix code generated with different versions of the compilers.
I have attached the new log.

Changed 12 years ago by rafael.rios.saavedra@…

Attachment: main.3.log added

New log with error when building kipi-plugins

comment:11 in reply to:  10 Changed 12 years ago by rafael.rios.saavedra@…

Replying to rafael.rios.saavedra@…:

ummm :( :(
This is weird. Now I have completely uninstalled macports, reinstalled and then installed digikam @3.1.0 without problems.

I really don't know where the problem was.
How could I close this ticket ?

Last edited 12 years ago by rafael.rios.saavedra@… (previous) (diff)

comment:12 Changed 12 years ago by larryv (Lawrence Velázquez)

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.