[MacPorts] #31784: reft Ticket 31763: undefined symbols _ssh_say
MacPorts
noreply at macports.org
Wed Oct 26 01:53:12 PDT 2011
#31784: reft Ticket 31763: undefined symbols _ssh_say
--------------------------------+-------------------------------------------
Reporter: navaho1@… | Owner: macports-tickets@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Resolution: invalid | Keywords:
Port: libssh01 |
--------------------------------+-------------------------------------------
Changes (by ryandesign@…):
* cc: ryandesign@… (added)
* status: new => closed
* resolution: => invalid
Old description:
> Sorry,
> also with new revision doesn't work:
>
> MacBook-Guido-2:~ guidov$ sudo port install libssh01 revision r37351 -v
> -d
> ---> Computing dependencies for libssh01
> ---> Building libssh01
> Error: Target org.macports.build returned: shell command failed (see log
> for details)
> Log for libssh01 is at:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libssh01/libssh01/main.log
> Error: Status 1 encountered during processing.
> To report a bug, see <http://guide.macports.org/#project.tickets>
> MacBook-Guido-2:~ guidov$ cat
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libssh01/libssh01/main.log
> version:1
> :debug:main epoch: in tree: 1 installed: 1
> :debug:main openssl 1.0.0e_1 exists in the ports tree
> :debug:main openssl 1.0.0e_1 is the latest installed
> :debug:main openssl 1.0.0e_1 is active
> :debug:main Merging existing variants '' into variants
> :debug:main new fully merged portvariants:
> :debug:main Changing to port directory:
> /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/openssl
> :debug:main OS darwin/11.2.0 (Mac OS X 10.7) arch i386
> :debug:main org.macports.load registered provides 'load', a pre-existing
> procedure. Target override will not be provided
> :debug:main org.macports.unload registered provides 'unload', a pre-
> existing procedure. Target override will not be provided
> :debug:main org.macports.distfiles registered provides 'distfiles', a
> pre-existing procedure. Target override will not be provided
> :debug:main Using group file
> /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
> :debug:main Reading variant descriptions from
> /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
> :debug:main universal variant already exists, so not adding the default
> one
> :debug:main No need to upgrade! openssl 1.0.0e_1 >= openssl 1.0.0e_1
> :debug:main epoch: in tree: 0 installed: 0
> :debug:main zlib 1.2.5_0 exists in the ports tree
> :debug:main zlib 1.2.5_0 is the latest installed
> :debug:main zlib 1.2.5_0 is active
> :debug:main Merging existing variants '' into variants
> :debug:main new fully merged portvariants:
> :debug:main Changing to port directory:
> /opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
> :debug:main OS darwin/11.2.0 (Mac OS X 10.7) arch i386
> :debug:main org.macports.load registered provides 'load', a pre-existing
> procedure. Target override will not be provided
> :debug:main org.macports.unload registered provides 'unload', a pre-
> existing procedure. Target override will not be provided
> :debug:main org.macports.distfiles registered provides 'distfiles', a
> pre-existing procedure. Target override will not be provided
> :debug:main Using group file
> /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/xcodeversion-1.0.tcl
> :debug:main adding the default universal variant
> :debug:main Reading variant descriptions from
> /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
> :debug:main No need to upgrade! zlib 1.2.5_0 >= zlib 1.2.5_0
> :msg:main ---> Computing dependencies for libssh01:info:main
> .:debug:main Searching for dependency: openssl
> :debug:main Found Dependency: receipt exists for openssl
> :debug:main Searching for dependency: zlib
> :debug:main Found Dependency: receipt exists for zlib
> :msg:main
> :debug:main Executing org.macports.main (libssh01)
> :debug:main changing euid/egid - current euid: 0 - current egid: 0
> :debug:main egid changed to: 501
> :debug:main euid changed to: 502
> :debug:main Skipping completed org.macports.archivefetch (libssh01)
> :debug:main Privilege de-escalation not attempted as not running as root.
> :debug:main Skipping completed org.macports.fetch (libssh01)
> :debug:main Privilege de-escalation not attempted as not running as root.
> :debug:main Skipping completed org.macports.checksum (libssh01)
> :debug:main Privilege de-escalation not attempted as not running as root.
> :debug:main Skipping completed org.macports.extract (libssh01)
> :debug:main Privilege de-escalation not attempted as not running as root.
> :debug:main Skipping completed org.macports.patch (libssh01)
> :debug:main Privilege de-escalation not attempted as not running as root.
> :debug:main Skipping completed org.macports.configure (libssh01)
> :debug:main Privilege de-escalation not attempted as not running as root.
> :debug:build build phase started at Wed Oct 26 09:27:25 CEST 2011
> :notice:build ---> Building libssh01
> :debug:build Executing org.macports.build (libssh01)
> :debug:build Environment: CPATH='/opt/local/include'
> CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libssh01/libssh01/work/.CC_PRINT_OPTIONS'
> LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES'
> MACOSX_DEPLOYMENT_TARGET='10.7'
> :debug:build Assembled command: 'cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libssh01/libssh01/work/libssh-0.11"
> && /usr/bin/make -j2 -w all'
> :debug:build Executing command line: cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libssh01/libssh01/work/libssh-0.11"
> && /usr/bin/make -j2 -w all
> :info:build make: Entering directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libssh01/libssh01/work/libssh-0.11'
> :info:build make[1]: Entering directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libssh01/libssh01/work/libssh-0.11/libssh'
> :info:build /Developer/usr/bin/clang -o libssh.dylib -dynamiclib -prebind
> -seg1addr 0x3a000000 -install_name "/opt/local/lib/libssh01/libssh.dylib"
> -headerpad_max_install_names -current_version 0.1 client.o packet.o dh.o
> crypt.o connect.o error.o buffer.o string.o kex.o channels.o options.o
> keys.o auth.o base64.o keyfiles.o misc.o gzip.o wrapper.o sftp.o server.o
> -lresolv -lz -lcrypto -L/opt/local/lib -arch x86_64
> :info:build make[1]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libssh01/libssh01/work/libssh-0.11/libssh'
> :info:build /Developer/usr/bin/clang -o samplessh sample.o
> -L/opt/local/lib -arch x86_64 -lssh -Llibssh/
> :info:build Undefined symbols for architecture x86_64:
> :info:build "_ssh_say", referenced from:
> :info:build _select_loop in sample.o
> :info:build _do_sftp in sample.o
> :info:build _main in sample.o
> :info:build "_sftp_dir_close", referenced from:
> :info:build _do_sftp in sample.o
> :info:build "_sftp_file_close", referenced from:
> :info:build _do_sftp in sample.o
> :info:build "_ssh_getopt", referenced from:
> :info:build _main in sample.o
> :info:build "_options_set_username", referenced from:
> :info:build _main in sample.o
> :info:build "_options_set_host", referenced from:
> :info:build _main in sample.o
> :info:build ld: symbol(s) not found for architecture x86_64
> :info:build clang: error: linker command failed with exit code 1 (use -v
> to see invocation)
> :info:build make: *** [all] Error 1
> :info:build make: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libssh01/libssh01/work/libssh-0.11'
> :info:build shell command " cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libssh01/libssh01/work/libssh-0.11"
> && /usr/bin/make -j2 -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 libssh01):
> org.macports.activate org.macports.build org.macports.destroot
> org.macports.install
> :notice:build Log for libssh01 is at:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libssh01/libssh01/main.log
New description:
Sorry,
also with new revision doesn't work:
{{{
MacBook-Guido-2:~ guidov$ sudo port install libssh01 revision r37351 -v -d
---> Computing dependencies for libssh01
---> Building libssh01
Error: Target org.macports.build returned: shell command failed (see log
for details)
Log for libssh01 is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libssh01/libssh01/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
MacBook-Guido-2:~ guidov$ cat
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libssh01/libssh01/main.log
version:1
:debug:main epoch: in tree: 1 installed: 1
:debug:main openssl 1.0.0e_1 exists in the ports tree
:debug:main openssl 1.0.0e_1 is the latest installed
:debug:main openssl 1.0.0e_1 is active
:debug:main Merging existing variants '' into variants
:debug:main new fully merged portvariants:
:debug:main Changing to port directory:
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/openssl
:debug:main OS darwin/11.2.0 (Mac OS X 10.7) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing
procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-
existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-
existing procedure. Target override will not be provided
:debug:main Using group file
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
:debug:main Reading variant descriptions from
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main universal variant already exists, so not adding the default
one
:debug:main No need to upgrade! openssl 1.0.0e_1 >= openssl 1.0.0e_1
:debug:main epoch: in tree: 0 installed: 0
:debug:main zlib 1.2.5_0 exists in the ports tree
:debug:main zlib 1.2.5_0 is the latest installed
:debug:main zlib 1.2.5_0 is active
:debug:main Merging existing variants '' into variants
:debug:main new fully merged portvariants:
:debug:main Changing to port directory:
/opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
:debug:main OS darwin/11.2.0 (Mac OS X 10.7) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing
procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-
existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-
existing procedure. Target override will not be provided
:debug:main Using group file
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/xcodeversion-1.0.tcl
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main No need to upgrade! zlib 1.2.5_0 >= zlib 1.2.5_0
:msg:main ---> Computing dependencies for libssh01:info:main .:debug:main
Searching for dependency: openssl
:debug:main Found Dependency: receipt exists for openssl
:debug:main Searching for dependency: zlib
:debug:main Found Dependency: receipt exists for zlib
:msg:main
:debug:main Executing org.macports.main (libssh01)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 502
:debug:main Skipping completed org.macports.archivefetch (libssh01)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (libssh01)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (libssh01)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (libssh01)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (libssh01)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.configure (libssh01)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Wed Oct 26 09:27:25 CEST 2011
:notice:build ---> Building libssh01
:debug:build Executing org.macports.build (libssh01)
:debug:build Environment: CPATH='/opt/local/include'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libssh01/libssh01/work/.CC_PRINT_OPTIONS'
LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES'
MACOSX_DEPLOYMENT_TARGET='10.7'
:debug:build Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libssh01/libssh01/work/libssh-0.11"
&& /usr/bin/make -j2 -w all'
:debug:build Executing command line: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libssh01/libssh01/work/libssh-0.11"
&& /usr/bin/make -j2 -w all
:info:build make: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libssh01/libssh01/work/libssh-0.11'
:info:build make[1]: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libssh01/libssh01/work/libssh-0.11/libssh'
:info:build /Developer/usr/bin/clang -o libssh.dylib -dynamiclib -prebind
-seg1addr 0x3a000000 -install_name "/opt/local/lib/libssh01/libssh.dylib"
-headerpad_max_install_names -current_version 0.1 client.o packet.o dh.o
crypt.o connect.o error.o buffer.o string.o kex.o channels.o options.o
keys.o auth.o base64.o keyfiles.o misc.o gzip.o wrapper.o sftp.o server.o
-lresolv -lz -lcrypto -L/opt/local/lib -arch x86_64
:info:build make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libssh01/libssh01/work/libssh-0.11/libssh'
:info:build /Developer/usr/bin/clang -o samplessh sample.o
-L/opt/local/lib -arch x86_64 -lssh -Llibssh/
:info:build Undefined symbols for architecture x86_64:
:info:build "_ssh_say", referenced from:
:info:build _select_loop in sample.o
:info:build _do_sftp in sample.o
:info:build _main in sample.o
:info:build "_sftp_dir_close", referenced from:
:info:build _do_sftp in sample.o
:info:build "_sftp_file_close", referenced from:
:info:build _do_sftp in sample.o
:info:build "_ssh_getopt", referenced from:
:info:build _main in sample.o
:info:build "_options_set_username", referenced from:
:info:build _main in sample.o
:info:build "_options_set_host", referenced from:
:info:build _main in sample.o
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v
to see invocation)
:info:build make: *** [all] Error 1
:info:build make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libssh01/libssh01/work/libssh-0.11'
:info:build shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libssh01/libssh01/work/libssh-0.11"
&& /usr/bin/make -j2 -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 libssh01):
org.macports.activate org.macports.build org.macports.destroot
org.macports.install
:notice:build Log for libssh01 is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libssh01/libssh01/main.log
}}}
--
Comment:
>
{{{
MacBook-Guido-2:~ guidov$ sudo port install libssh01 revision r37351 -v -d
}}}
This is not valid syntax. The `port` command does not accept arguments
like "`revision r37351`". Also, single-letter flags like `-v` and `-d`
have no effect unless placed immediately after the `port` command, i.e.
`sudo port -d install`. Also, `-d` implies `-v`.
>
{{{
---> Computing dependencies for libssh01
---> Building libssh01
}}}
The fact that it went straight to Building, skipping the Fetching,
Extracting, Patching and Configuring phases, shows it was not a clean
build. Clean, selfupdate, and try again.
{{{
sudo port clean libssh01
sudo port selfupdate
sudo port install libssh01
}}}
--
Ticket URL: <https://trac.macports.org/ticket/31784#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list