Opened 14 years ago

Closed 14 years ago

#26797 closed defect (duplicate)

curl: curl-config differs

Reported by: keith.crist@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: christian.groon@…
Port: curl

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Install of htop failed on MacBook Pro 2.5 GHz Intel core 2 Duo OS X 10.5.8

Error: Target org.macports.destroot returned: /opt/local/bin/curl-config differs in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/work/destroot-powerpc and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/work/destroot-intel and cannot be merged
Log for curl is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/main.log
Error: The following dependencies failed to build: git-core curl p5-error rsync popt
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

:debug:destroot Backtrace: error copying "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/work/destroot-ppc//Applications" to "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/work/destroot-powerpc/Applications": file already exists

Attachments (2)

curl-config-Intel (4.7 KB) - added by keith.crist@… 14 years ago.
curl-config-PowerPC (4.7 KB) - added by keith.crist@… 14 years ago.

Download all attachments as: .zip

Change History (12)

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

Description: modified (diff)
Keywords: curl-ca-bundle removed
Owner: changed from macports-tickets@… to ryandesign@…
Port: curl added; htop removed
Summary: curl-ca-bundle dependency fails to install for htopcurl: curl-config differs

Looking at the error message, curl, not curl-ca-bundle nor htop, is the port failing to build.

So, the question is why your curl-config differs in those two directories listed. Can you please attach both of the curl-config files so I can compare them?

Based on the limited output you provided, it looks like you using the universal variant. Do you really need to build universal? If not, you can avoid the problem by building for Intel only.

Changed 14 years ago by keith.crist@…

Attachment: curl-config-Intel added

Changed 14 years ago by keith.crist@…

Attachment: curl-config-PowerPC added

comment:2 Changed 14 years ago by keith.crist@…

I do not need to build universal. The two files are attached. The command was Install htop, macports did the rest. I am new to macports, please let me know the command to build Intel only. Thanks, Keith

comment:3 Changed 14 years ago by keith.crist@…

I did edit macports.conf universal_archs i386 x86_64

Then:

Mac88311ELYP4-2:~ kcrist$ sudo port uninstall git-core
Mac88311ELYP4-2:~ kcrist$ sudo port uninstall curl
Mac88311ELYP4-2:~ kcrist$ sudo port uninstall p5-error
Mac88311ELYP4-2:~ kcrist$ sudo port uninstall rsync
Mac88311ELYP4-2:~ kcrist$ sudo port uninstall popt
Mac88311ELYP4-2:~ kcrist$ sudo port uninstall libtool
Mac88311ELYP4-2:~ kcrist$ sudo port install htop +universal
--->  Computing dependencies for htop
--->  Dependencies to be installed: git-core curl libidn gettext expat libiconv gperf ncurses ncursesw openssl zlib p5-error rsync popt libtool
--->  Staging curl into destroot
Error: Target org.macports.destroot returned: error copying "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/work/destroot" to "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/work/destroot-i386/destroot": file already exists
Log for curl is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/main.log
Error: The following dependencies failed to build: git-core curl p5-error rsync popt libtool
Error: Status 1 encountered during processing.

Is it OK to just remove /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/work and start over?

comment:4 in reply to:  3 ; Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to keith.crist@…:

I do not need to build universal. The two files are attached. The command was Install htop, macports did the rest. I am new to macports, please let me know the command to build Intel only.

The files are identical except that the PowerPC version contains "'--host=powerpc-apple-darwin9.8.0' 'host_alias=powerpc-apple-darwin9.8.0'" which makes this report a duplicate of #24001.

The command to build curl for Intel only is:

sudo port clean curl
sudo port install curl

To build universal, you would have had to ask for the universal variant with "sudo port install curl +universal", or have put "+universal" in your variants.conf. MacPorts base also sometimes rebuilds dependencies universal if it believes that will help, but that should really only apply if your build_arch is 64-bit (e.g. x86_64) and you are building a port that requires 32-bit (e.g. i386), and this is only the case by default, so you should not have run into it on Leopard, unless you have changed your build_arch.

Replying to keith.crist@…:

I did edit macports.conf universal_archs i386 x86_64

If you change universal_archs, you pretty much need to manually rebuild any existing ports you've installed universal. Really it's best not to change universal_archs once you've installed any ports.

Is it OK to just remove /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/work and start over?

Yes, and to do so, you would run "sudo port clean curl".

comment:5 in reply to:  4 ; Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to ryandesign@…:

and this is only the case by default

That should read "and this is only the case by default on Snow Leopard"

comment:6 in reply to:  5 ; Changed 14 years ago by keith.crist@…

Replying to ryandesign@…:

Replying to ryandesign@…:

and this is only the case by default

That should read "and this is only the case by default on Snow Leopard"

universal i386 ppc must be the default. After cleaned out the work folder and pkgconfig I tried to reinstall:

Mac88311ELYP4-2:~ kcrist$ sudo port install curl
--->  Computing dependencies for curl
--->  Dependencies to be installed: pkgconfig
--->  Fetching pkgconfig
--->  Verifying checksum(s) for pkgconfig
--->  Extracting pkgconfig
--->  Applying patches to pkgconfig
--->  Configuring pkgconfig
--->  Building pkgconfig
--->  Staging pkgconfig into destroot
--->  Installing pkgconfig @0.25_1+universal
--->  Activating pkgconfig @0.25_1+universal
--->  Cleaning pkgconfig
--->  Fetching curl
--->  Verifying checksum(s) for curl
--->  Extracting curl
--->  Configuring curl
--->  Building curl
--->  Staging curl into destroot
Error: Target org.macports.destroot returned: /opt/local/bin/curl-config differs in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/work/destroot-powerpc and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/work/destroot-intel and cannot be merged
Log for curl is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/main.log
Error: Status 1 encountered during processing.

Anyway all is good, I uninstalled the problem ports and rebuilt with -universal. htop installed without errors.
Thank you for your help and instructions.
Keith

comment:7 in reply to:  6 ; Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed

Replying to keith.crist@…:

universal i386 ppc must be the default.

i386 ppc is the default for universal builds on Leopard and earlier.

It is not the default to build universal; you have to request it by typing "+universal" on the command line or putting it in variants.conf.

Error: Target org.macports.destroot returned: /opt/local/bin/curl-config differs in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/work/destroot-powerpc and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/work/destroot-intel and cannot be merged
Log for curl is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/main.log

If you're building universal for i386 ppc then this is #24001.

comment:8 Changed 14 years ago by christian.groon@…

Cc: christian.groon@… added

Cc Me!

comment:9 in reply to:  7 Changed 14 years ago by christian.groon@…

Resolution: duplicate
Status: closedreopened

After looking over the comments above, I'm still confused as to how to fix the curl-config differs error. Previous ports were building universal as below;

--->  Fetching curl-ca-bundle
--->  Attempting to fetch curl-7.21.2.tar.bz2 from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/curl
--->  Attempting to fetch certdata-1.70.txt from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/curl
--->  Verifying checksum(s) for curl-ca-bundle
--->  Extracting curl-ca-bundle
--->  Applying patches to curl-ca-bundle
--->  Configuring curl-ca-bundle
--->  Building curl-ca-bundle
--->  Staging curl-ca-bundle into destroot
--->  Installing curl-ca-bundle @7.21.2_4
--->  Activating curl-ca-bundle @7.21.2_4
--->  Cleaning curl-ca-bundle
--->  Fetching libidn
--->  Attempting to fetch libidn-1.19.tar.gz from http://mirrors.ibiblio.org/pub/mirrors/gnu/ftp/gnu/libidn
--->  Verifying checksum(s) for libidn
--->  Extracting libidn
--->  Configuring libidn
--->  Building libidn
--->  Staging libidn into destroot
--->  Installing libidn @1.19_0+universal
--->  Activating libidn @1.19_0+universal
--->  Cleaning libidn
--->  Fetching curl
--->  Verifying checksum(s) for curl
--->  Extracting curl
--->  Applying patches to curl
--->  Configuring curl
--->  Building curl
--->  Staging curl into destroot
Error: Target org.macports.destroot returned: /opt/local/bin/curl-config differs in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/work/destroot-powerpc and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/work/destroot-intel and cannot be merged

But then clearly the curl port had the powerpc/intel difference. I then tried to clean the curl port and build just for intel (with and without the "+universal" but got exactly the same error.

christian-groons-macbook:~ LeGrand$ sudo port clean curl
Password:
--->  Cleaning curl
christian-groons-macbook:~ LeGrand$ sudo port install curl +universal
--->  Computing dependencies for curl
--->  Fetching curl
--->  Verifying checksum(s) for curl
--->  Extracting curl
--->  Applying patches to curl
--->  Configuring curl
--->  Building curl
--->  Staging curl into destroot
Error: Target org.macports.destroot returned: /opt/local/bin/curl-config differs in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/work/destroot-powerpc and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/work/destroot-intel and cannot be merged
Log for curl is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/main.log

So how can this difference be resolved? I'm running Mac OS X 10.5.8 (9L30).

comment:10 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: reopenedclosed

This is a duplicate of #24001. To resolve it, I suppose I would have to reinplace out the parts of the config script that shouldn't be there.

Note: See TracTickets for help on using tickets.