[MacPorts] #21138: strigi fails to build on OS 10.6
#21138: strigi fails to build on OS 10.6 -----------------------------+---------------------------------------------- Reporter: andrea@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.99 Keywords: snowleopard | Port: strigi -----------------------------+---------------------------------------------- -- Ticket URL: <http://trac.macports.org/ticket/21138> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21138: strigi fails to build on OS 10.6 -----------------------------+---------------------------------------------- Reporter: andrea@… | Owner: clubjuggler@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.99 Keywords: snowleopard | Port: strigi -----------------------------+---------------------------------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => clubjuggler@… -- Ticket URL: <http://trac.macports.org/ticket/21138#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21138: strigi fails to build 64-bit -----------------------------+---------------------------------------------- Reporter: andrea@… | Owner: clubjuggler@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: LP64 | Port: strigi -----------------------------+---------------------------------------------- Changes (by toby@…): * keywords: snowleopard => LP64 * version: 1.8.99 => Old description: New description: Looks like a 64-bit issue to me. -- -- Ticket URL: <http://trac.macports.org/ticket/21138#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21138: strigi fails to build 64-bit -----------------------------+---------------------------------------------- Reporter: andrea@… | Owner: clubjuggler@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: LP64 | Port: strigi -----------------------------+---------------------------------------------- Comment(by mkr@…): The problem is in strigi itself. I tried to compile it by hand and found that some variables have wrong types. You have to make two changes, to compile it successfully: src/daemon/dbus/dbuscpp/dbusmessagereader.cpp: Line 66[[BR]] change: DBusMessageReader::operator>>(int64_t& s) {[[BR]] into: DBusMessageReader::operator>>(dbus_int64_t& s) { build/src/daemon/dbus/dbusclientinterface.cpp: Line 148[[BR]] change: uint64_t mtime;[[BR]] into: dbus_uint64_t mtime; The second file is generated during compilation. So the workaround is:[[BR]] Do "sudo port install strigi", wait until it breaks and change the first file:[[BR]] cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_strigi/work/strigi-0.6.3/[[BR]] edit src/daemon/dbus/dbuscpp/dbusmessagereader.cpp Then "sudo port install strigi" again, wait until it breaks again and change the second file:[[BR]] edit src/daemon/dbus/dbusclientinterface.cpp[[BR]] (in MacPorts it's built in the src directory, so no "build/" in front of the path) Then "sudo port install strigi" again, and it should compile successfully. I'll see if I can communicate this directly to the strigi people... -- Ticket URL: <http://trac.macports.org/ticket/21138#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21138: strigi fails to build 64-bit -----------------------------+---------------------------------------------- Reporter: andrea@… | Owner: clubjuggler@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: LP64 | Port: strigi -----------------------------+---------------------------------------------- Comment(by ruud@…): Replying to [comment:7 mkr@…]:
The problem is in strigi itself. I tried to compile it by hand and found that some variables have wrong types.
You have to make two changes, to compile it successfully: Fixes it for me, thanks.
-- Ticket URL: <http://trac.macports.org/ticket/21138#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21138: strigi fails to build 64-bit -----------------------------+---------------------------------------------- Reporter: andrea@… | Owner: clubjuggler@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: LP64 | Port: strigi -----------------------------+---------------------------------------------- Comment(by macsforever2000@…): I'm not quite able to make the 2nd patch work in the Portfile. I'm going to attach my attempt so far. -- Ticket URL: <http://trac.macports.org/ticket/21138#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21138: strigi fails to build 64-bit -----------------------------+---------------------------------------------- Reporter: andrea@… | Owner: clubjuggler@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: LP64 | Port: strigi -----------------------------+---------------------------------------------- Comment(by payam.minoofar@…): As of today, I can't get strigi to build with any of the above prescriptions. I have attached the output that port reported as strigi.txt -- Ticket URL: <http://trac.macports.org/ticket/21138#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21138: strigi fails to build 64-bit -----------------------------+---------------------------------------------- Reporter: andrea@… | Owner: clubjuggler@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: LP64 | Port: strigi -----------------------------+---------------------------------------------- Comment(by florian.feldhaus@…): Same for me. The two fixes solved the first problems, but Strigi didn't finnish building. I figured out, that it was building i386 and x86_64 binaries, even I didn't have the universal option set. The following worked for me: sudo port clean strigi sudo port install strigi -universal You will run into the problems mentioned above. If the patches don't work, apply the changes by hand! -- Ticket URL: <http://trac.macports.org/ticket/21138#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21138: strigi fails to build 64-bit -----------------------------+---------------------------------------------- Reporter: andrea@… | Owner: clubjuggler@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: LP64 | Port: strigi -----------------------------+---------------------------------------------- Comment(by macports@…): Workaround worked for me (using the mentioned patches and -universal option) -- Ticket URL: <http://trac.macports.org/ticket/21138#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21138: strigi fails to build 64-bit -----------------------------+---------------------------------------------- Reporter: andrea@… | Owner: clubjuggler@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: LP64 | Port: strigi -----------------------------+---------------------------------------------- Comment(by zuxez@…): Hi. I came up with [http://repo.or.cz/w/heikos-i-prolly-break-your-prefix- overlay.git?a=blob;f=app-misc/strigi/files/strigi-0.7.0-dbus- types.patch;h=f506b108ee6ef976de6a3ee4aefa0382ef66de64;hb=6683e9ca582697fc8107a9866bd50b82c1d8f96f this patch] to fix the issue for Gentoo/Prefix. The problem is that strigi seems to have some internal data type problems, which in conjunction with the auto-generation of the files just heads for serious trouble. Anyway, you can't make the types use dbus_-tyles because the interface src/daemon/clientinterface.h is used for makecode.pl which contains no dbus-stuff at all and defines "virtual void indexFile(const std::string& path, uint64_t mtime, const std::vector<char>& content)" which imho is the "uint64_t mtime" that fails in the generated src/daemon/dbus/dbusclientinterface.cpp. So the nearest workaround is to switch from the dbus_-types in dbusmessagereader.cpp to the standard defines. This patch allows for fully automatic building (at least with Gentoo/Prefix). Maybe it's to some help for you :-) Kind regards, Heiko -- Ticket URL: <http://trac.macports.org/ticket/21138#comment:18> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21138: strigi fails to build 64-bit ------------------------------+--------------------------------------------- Reporter: andrea@… | Owner: clubjuggler@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: LP64 Port: strigi | ------------------------------+--------------------------------------------- Changes (by snc@…): * status: new => closed * resolution: => fixed Comment: Committed in r58800. -- Ticket URL: <http://trac.macports.org/ticket/21138#comment:23> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts