[MacPorts] #34412: apt will not compile at the end

MacPorts noreply at macports.org
Fri May 11 07:46:43 PDT 2012


#34412: apt will not compile at the end
----------------------------------+-----------------------------------------
 Reporter:  ag@…                  |       Owner:  macports-tickets@…                   
     Type:  defect                |      Status:  new                                  
 Priority:  Normal                |   Milestone:  MacPorts 2.1.0                       
Component:  ports                 |     Version:  2.0.4                                
 Keywords:  apt will not install  |        Port:  apt                                  
----------------------------------+-----------------------------------------
 I tried today to install apt and get the following message (last lines):

 :info:build Compiling depcache.cc to
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_apt/apt/work/apt-0.5.27/build/obj
 /apt-pkg/depcache.opic
 :info:build contrib/hashes.cc: In member function ‘bool Hashes::AddFD(int,
 long unsigned int)’:
 :info:build contrib/hashes.cc:33: error: expected primary-expression
 before ‘?’ token
 :info:build contrib/hashes.cc:33: error: expected `:' before ‘)’ token
 :info:build contrib/hashes.cc:33: error: expected primary-expression
 before ‘)’ token
 :info:build contrib/hashes.cc:34: error: expected primary-expression
 before ‘?’ token
 :info:build contrib/hashes.cc:34: error: expected `:' before ‘)’ token
 :info:build contrib/hashes.cc:34: error: expected primary-expression
 before ‘)’ token
 :info:build gnumake[2]: ***
 [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_apt/apt/work/apt-0.5.27/build/obj
 /apt-pkg/hashes.opic] Error 1
 :info:build gnumake[2]: *** Waiting for unfinished jobs....
 :info:build contrib/md5.cc: In member function ‘bool
 MD5Summation::AddFD(int, long unsigned int)’:
 :info:build contrib/md5.cc:302: error: expected primary-expression before
 ‘?’ token
 :info:build contrib/md5.cc:302: error: expected `:' before ‘)’ token
 :info:build contrib/md5.cc:302: error: expected primary-expression before
 ‘)’ token
 :info:build contrib/md5.cc:303: error: expected primary-expression before
 ‘?’ token
 :info:build contrib/md5.cc:303: error: expected `:' before ‘)’ token
 :info:build contrib/md5.cc:303: error: expected primary-expression before
 ‘)’ token
 :info:build gnumake[2]: ***
 [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_apt/apt/work/apt-0.5.27/build/obj
 /apt-pkg/md5.opic] Error 1
 :info:build contrib/sha1.cc: In member function ‘bool
 SHA1Summation::AddFD(int, long unsigned int)’:
 :info:build contrib/sha1.cc:348: error: expected primary-expression before
 ‘?’ token
 :info:build contrib/sha1.cc:348: error: expected `:' before ‘)’ token
 :info:build contrib/sha1.cc:348: error: expected primary-expression before
 ‘)’ token
 :info:build contrib/sha1.cc:349: error: expected primary-expression before
 ‘?’ token
 :info:build contrib/sha1.cc:349: error: expected `:' before ‘)’ token
 :info:build contrib/sha1.cc:349: error: expected primary-expression before
 ‘)’ token
 :info:build gnumake[2]: ***
 [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_apt/apt/work/apt-0.5.27/build/obj
 /apt-pkg/sha1.opic] Error 1
 :info:build pkgcache.cc:156: error: redefinition of ‘long unsigned int
 pkgCache::sHash(std::string) const’
 :info:build /opt/local/include/apt-pkg/pkgcache.h:113: error: ‘long
 unsigned int pkgCache::sHash(std::string) const’ previously defined here
 :info:build pkgcache.cc:164: error: redefinition of ‘long unsigned int
 pkgCache::sHash(const char*) const’
 :info:build /opt/local/include/apt-pkg/pkgcache.h:317: error: ‘long
 unsigned int pkgCache::sHash(const char*) const’ previously defined here
 :info:build pkgcache.cc:285: error: redefinition of ‘bool
 pkgCache::DepIterator::IsCritical()’
 :info:build /opt/local/include/apt-pkg/cacheiterators.h:193: error: ‘bool
 pkgCache::DepIterator::IsCritical()’ previously defined here
 :info:build gnumake[2]: ***
 [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_apt/apt/work/apt-0.5.27/build/obj
 /apt-pkg/pkgcache.opic] Error 1
 :info:build gnumake[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_apt/apt/work/apt-0.5.27
 /apt-pkg'
 :info:build gnumake[1]: *** [all] Error 2
 :info:build gnumake[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_apt/apt/work/apt-0.5.27'
 :info:build gnumake: *** [all] Error 2
 :info:build gnumake: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_apt/apt/work/apt-0.5.27/build'
 :info:build shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_apt/apt/work/apt-0.5.27/build"
 && /usr/bin/gnumake -j4 -w all " returned error 2
 :error:build Target org.macports.build returned: shell command failed (see
 log for details)
 :debug:build Backtrace: shell command failed (see log for details)
     while executing
 "command_exec build"
     (procedure "portbuild::build_main" line 8)
     invoked from within
 "$procedure $targetname"
 :info:build Warning: the following items did not execute (for apt):
 org.macports.activate org.macports.build org.macports.destroot
 org.macports.install
 :notice:build Log for apt is at:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_apt/apt/main.log

-- 
Ticket URL: <https://trac.macports.org/ticket/34412>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list