Opened 12 years ago

Closed 9 years ago

#36542 closed defect (wontfix)

ktorrent @3.3.4: error: reference to 'TorrentInterface' is ambiguous

Reported by: tj.trevelyan@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), michaelld (Michael Dickens)
Port: ktorrent

Description

Hi,

ktorrent is not building on my system, see attached log. Although I think there are the relevant lines:

...
/build/libbtcore/autorotatelogjob.moc:14:2: error: #error "This file was generated using the moc from 4.7.4. It"
:info:build #error "This file was generated using the moc from 4.7.4. It"
...
/build/libbtcore/autorotatelogjob.moc:15:2: error: #error "cannot be used with the include files from this version of Qt."
:info:build #error "cannot be used with the include files from this version of Qt."
...
/build/libbtcore/autorotatelogjob.moc:16:2: error: #error "(The moc has changed too much.)"
:info:build #error "(The moc has changed too much.)"
...

I did:

sudo port selfupdate
sudo port install ktorrent

I did not bother with upgrade outdated as I expect it to require newer port versions if needed and thus they would also be upgraded. e.g. It did upgrade qt4-mac and a few few other ports.

So the problem may just be the version of a dependency.

Regards,

Thorben

Attachments (1)

main.log (2.2 MB) - added by tj.trevelyan@… 12 years ago.
main build log

Change History (9)

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

Cc: ryandesign@… added

This was not a clean build attempt. Please run "sudo port clean ktorrent" and then try again. If it fails again, attach the new main.log file.

comment:2 Changed 12 years ago by tj.trevelyan@…

OK :

$ sudo port clean ktorrent
Password:
--->  Cleaning ktorrent
$ sudo port install ktorrent
--->  Computing dependencies for ktorrent
--->  Fetching distfiles for ktorrent
--->  Verifying checksum(s) for ktorrent
--->  Extracting ktorrent
--->  Configuring ktorrent
--->  Building ktorrent
Error: org.macports.build for port ktorrent returned: command execution failed
Please see the log file for port ktorrent for details:
    /opt/ports/var/macports/logs/_opt_ports_var_macports_sources_svn.macports.org_trunk_dports_kde_ktorrent/ktorrent/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port ktorrent failed

I'll attach the new main.log

Changed 12 years ago by tj.trevelyan@…

Attachment: main.log added

main build log

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

Summary: ktorrent build failurektorrent: error: reference to 'TorrentInterface' is ambiguous

Ok thanks. So now we see the real error is:

:info:build /opt/ports/var/macports/build/_opt_ports_var_macports_sources_svn.macports.org_trunk_dports_kde_ktorrent/ktorrent/work/ktorrent-3.3.4/libktcore/groups/torrentgroup.h:37:12: error: reference to 'TorrentInterface' is ambiguous
:info:build                 std::set<TorrentInterface*> torrents;
:info:build                          ^
:info:build /opt/ports/var/macports/build/_opt_ports_var_macports_sources_svn.macports.org_trunk_dports_kde_ktorrent/ktorrent/work/ktorrent-3.3.4/libktcore/groups/torrentgroup.h:30:8: note: candidate found by name lookup is 'kt::TorrentInterface'
:info:build         class TorrentInterface;
:info:build               ^
:info:build /opt/ports/var/macports/build/_opt_ports_var_macports_sources_svn.macports.org_trunk_dports_kde_ktorrent/ktorrent/work/ktorrent-3.3.4/libktcore/groups/group.h:37:12: note: candidate found by name lookup is 'kt::TorrentInterface'
:info:build         using bt::TorrentInterface;
:info:build                   ^

comment:4 Changed 11 years ago by jmroot (Joshua Root)

Cc: michaelld@… added
Summary: ktorrent: error: reference to 'TorrentInterface' is ambiguousktorrent @3.3.4: error: reference to 'TorrentInterface' is ambiguous

Maybe you'd be better off with ktorrent4? I'm not sure why a separate ktorrent4 port was added and ktorrent was left at 3.3.4, actually.

comment:5 Changed 11 years ago by mario.gleirscher@…

This (or a similar) problem still exists both, in ktorrent and ktorrent4, see #40611.

Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:6 Changed 10 years ago by mkae (Marko Käning)

Cc: mk@… added

Cc Me!

comment:7 Changed 10 years ago by mkae (Marko Käning)

Cc: mk@… removed

comment:8 Changed 9 years ago by NicosPavlov

Resolution: wontfix
Status: newclosed

ktorrent has been made obsolete in r135519, and replaced by ktorrent4, which is more recent.

Note: See TracTickets for help on using tickets.