Opened 13 years ago
Closed 7 years ago
#34412 closed defect (fixed)
apt will not compile at the end
Reported by: | amadeus24 | Owned by: | landonf (Landon Fuller) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.4 |
Keywords: | Cc: | jaigopi_govardhan@… | |
Port: | apt |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
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
Attachments (2)
Change History (6)
Changed 13 years ago by amadeus24
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Keywords: | apt will not install removed |
Milestone: | MacPorts 2.1.0 |
Owner: | changed from macports-tickets@… to landonf@… |
comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | jaigopi_govardhan@… added |
---|
Has duplicate #36666.
comment:3 Changed 12 years ago by cooljeanius (Eric Gallager)
This might possibly be because the apt
that MacPorts ships is outdated, see #13425 for more info
comment:4 Changed 7 years ago by raimue (Rainer Müller)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Please "sudo port clean apt", then try again, then attach the new main.log to this ticket.