Are OpenSSH/John/Samba3 not compiling on Intel? (OpenSSH part #2)

Scott C. Kennedy sck at nogas.org
Mon Mar 5 16:31:03 PST 2007


I had to split this into two emails since the compile output is so long...
----
Okay, before I submit these as bug reports via trac, I wanted to make
sure that I am not the only one with this...

I just got a new MacBookPro and am loving it, but while building a fresh
install of the ports from my old PowerBook, I had these issues with the
OpenSSH and Samba3 package. Plus, when I did an update a week or so ago,
john would not build correctly. So....Has anyone else seen this?

More details:
    10.4.8 Build 8N1430, with all fixes installed.
    MacPorts 1.320 fully updated & sync'ed as of March 4th, 15:00 PST
    Xcode Tools 2.4.1 installed
    X11 1.1.3 installed
    I did not transfer over ANY of my old ports tree, just did a 'port
installed' on the G4 and re-built everything in that list  on the Mac
Book Pro.

Ideas?

Scott
PS> anyone been able to find RPM to install?
==============================================================
1:~/Desktop/darwin port issues sck$ date
Sun Mar  4 13:14:47 PST 2007
1:~/Desktop/darwin port issues sck$ sudo port selfupdate && sudo port
sync && sudo port clean --alll  openssh && sudo port -d install
openshh  sh
DarwinPorts base version 1.320 installed
Downloaded MacPorts base version 1.320
The MacPorts installation is not outdated and so was not updated
selfupdate done!
Portfile changed since last build; discarding previous state.
--->  Cleaning openssh
--->  Fetching openssh
DEBUG: Executing com.apple.fetch (openssh)
--->  openssh-4.5p1.tar.gz doesn't seem to exist in
/opt/local/var/db/dports/distfiles/openssh
--->  Attempting to fetch openssh-4.5p1.tar.gz from
ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable
--->  Verifying checksum(s) for openssh
DEBUG: Executing com.apple.checksum (openssh)
--->  Checksumming openssh-4.5p1.tar.gz
DEBUG: Correct (md5) checksum for openssh-4.5p1.tar.gz
DEBUG: Correct (sha1) checksum for openssh-4.5p1.tar.gz
DEBUG: Correct (rmd160) checksum for openssh-4.5p1.tar.gz
--->  Extracting openssh
DEBUG: Executing com.apple.extract (openssh)
--->  Extracting openssh-4.5p1.tar.gz
DEBUG: setting option extract.args to
/opt/local/var/db/dports/distfiles/openssh/openssh-4.5p1.tar.gz
DEBUG: Assembled command: 'cd
"/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_net_openssh/work"
&& gzip -dc
/opt/local/var/db/dports/distfiles/openssh/openssh-4.5p1.tar.gz |
/usr/bin/gnutar --no-same-owner -xf -'
DEBUG: Executing com.apple.patch (openssh)
--->  Configuring openssh
DEBUG: Executing proc-pre-com.apple.configure-configure-0
DEBUG: Executing com.apple.configure (openssh)
DEBUG: Assembled command: 'cd
"/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_net_openssh/work/openssh-4.5p1"
&& CPPFLAGS="-fno-builtin
-I/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_net_openssh/work/include"
CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 ./configure --prefix=/opt/local
--with-ssl-dir=/opt/local --sysconfdir=/opt/local/etc/ssh
--with-privsep-path=/opt/local/var/empty --with-md5-passwords
--with-pid-dir=/opt/local/var/run --with-tcp-wrappers --with-pam
--disable-suid-ssh --with-random=/dev/urandom
--mandir=/opt/local/share/man --with-zlib=/opt/local'
checking for gcc... /usr/bin/gcc-4.0
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
    [ ... lines deleted ...]
checking if your system defines WTMPX_FILE... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating buildpkg.sh
config.status: creating opensshd.init
config.status: creating openssh.xml
config.status: creating openbsd-compat/Makefile
config.status: creating openbsd-compat/regress/Makefile
config.status: creating scard/Makefile
config.status: creating ssh_prng_cmds
config.status: creating survey.sh
config.status: creating config.h

OpenSSH has been configured with the following options:
                     User binaries: /opt/local/bin
                   System binaries: /opt/local/sbin
               Configuration files: /opt/local/etc/ssh
                   Askpass program: /opt/local/libexec/ssh-askpass
                      Manual pages: /opt/local/share/man/manX
                          PID file: /opt/local/var/run
  Privilege separation chroot path: /opt/local/var/empty
            sshd default user PATH:
/usr/bin:/bin:/usr/sbin:/sbin:/opt/local/bin
                    Manpage format: doc
                       PAM support: yes
                   OSF SIA support: no
                 KerberosV support: no
                   SELinux support: no
                 Smartcard support: no
                     S/KEY support: no
              TCP Wrappers support: yes
              MD5 password support: yes
                   libedit support: no
  Solaris process contract support: no
       IP address in $DISPLAY hack: no
           Translate v4 in v6 hack: no
                  BSD Auth support: no
              Random number source: OpenSSL internal ONLY

              Host: i686-apple-darwin8.8.5
          Compiler: /usr/bin/gcc-4.0
    Compiler flags: -g -O2 -Wall -Wpointer-arith -Wuninitialized
-Wsign-compare -Wno-pointer-sign
Preprocessor flags: -I/opt/local/include -I/opt/local/include
-fno-builtin
-I/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_net_openssh/work/include
      Linker flags: -L/opt/local/lib -L/opt/local/lib
         Libraries: -lwrap -lpam -ldl -lcrypto -lz

PAM is enabled. You may need to install a PAM control file
for sshd, otherwise password authentication may fail.
Example PAM control files can be found in the contrib/
subdirectory

--->  Building openssh with target all
DEBUG: Executing com.apple.build (openssh)
DEBUG: Assembled command: 'cd
"/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_net_openssh/work/openssh-4.5p1"
&& make all'
conffile=`echo sshd_config.out | sed 's/.out$//'`; \
/usr/bin/sed -e
's|/etc/ssh/ssh_prng_cmds|/opt/local/etc/ssh/ssh_prng_cmds|g' -e
's|/etc/ssh/ssh_config|/opt/local/etc/ssh/ssh_config|g' -e
's|/etc/ssh/ssh_known_hosts|/opt/local/etc/ssh/ssh_known_hosts|g' -e
's|/etc/ssh/sshd_config|/opt/local/etc/ssh/sshd_config|g' -e
's|/usr/libexec|/opt/local/libexec|g' -e
's|/etc/shosts.equiv|/opt/local/etc/ssh/shosts.equiv|g' -e
's|/etc/ssh/ssh_host_key|/opt/local/etc/ssh/ssh_host_key|g' -e
's|/etc/ssh/ssh_host_dsa_key|/opt/local/etc/ssh/ssh_host_dsa_key|g' -e
's|/etc/ssh/ssh_host_rsa_key|/opt/local/etc/ssh/ssh_host_rsa_key|g' -e
's|/var/run/sshd.pid|/opt/local/var/run/sshd.pid|g' -e
's|/etc/ssh/moduli|/opt/local/etc/ssh/moduli|g' -e
's|/etc/ssh/sshrc|/opt/local/etc/ssh/sshrc|g' -e
's|/usr/X11R6/bin/xauth|/usr/X11R6/bin/xauth|g' -e
's|/var/empty|/opt/local/var/empty|g' -e
's|/usr/bin:/bin:/usr/sbin:/sbin|/usr/bin:/bin:/usr/sbin:/sbin:/opt/local/bin|g'
./${conffile} > sshd_config.out
conffile=`echo ssh_config.out | sed 's/.out$//'`; \
 [ ... lines deleted ...]
readconf.c: In function 'process_config_line':
readconf.c:328: warning: 'scale' may be used uninitialized in this function
readconf.c:328: warning: 'value' may be used uninitialized in this function
/usr/bin/gcc-4.0 -g -O2 -Wall -Wpointer-arith -Wuninitialized
-Wsign-compare -Wno-pointer-sign  -I. -I. -I/opt/local/include
-I/opt/local/include -fno-builtin
-I/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_net_openssh/work/include
-DSSHDIR=\"/opt/local/etc/ssh\"
-D_PATH_SSH_PROGRAM=\"/opt/local/bin/ssh\"
-D_PATH_SSH_ASKPASS_DEFAULT=\"/opt/local/libexec/ssh-askpass\"
-D_PATH_SFTP_SERVER=\"/opt/local/libexec/sftp-server\"
-D_PATH_SSH_KEY_SIGN=\"/opt/local/libexec/ssh-keysign\"
-D_PATH_SSH_PIDDIR=\"/opt/local/var/run\"
-D_PATH_PRIVSEP_CHROOT_DIR=\"/opt/local/var/empty\"
-DSSH_RAND_HELPER=\"/opt/local/libexec/ssh-rand-helper\" -DHAVE_CONFIG_H
-c clientloop.c
/usr/bin/gcc-4.0 -g -O2 -Wall -Wpointer-arith -Wuninitialized
-Wsign-compare -Wno-pointer-sign  -I. -I. -I/opt/local/include
-I/opt/local/include -fno-builtin
-I/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_net_openssh/work/include
-DSSHDIR=\"/opt/local/etc/ssh\"
-D_PATH_SSH_PROGRAM=\"/opt/local/bin/ssh\"
-D_PATH_SSH_ASKPASS_DEFAULT=\"/opt/local/libexec/ssh-askpass\"
-D_PATH_SFTP_SERVER=\"/opt/local/libexec/sftp-server\"
-D_PATH_SSH_KEY_SIGN=\"/opt/local/libexec/ssh-keysign\"
-D_PATH_SSH_PIDDIR=\"/opt/local/var/run\"
-D_PATH_PRIVSEP_CHROOT_DIR=\"/opt/local/var/empty\"
-DSSH_RAND_HELPER=\"/opt/local/libexec/ssh-rand-helper\" -DHAVE_CONFIG_H
-c sshtty.c
/usr/bin/gcc-4.0 -g -O2 -Wall -Wpointer-arith -Wuninitialized
-Wsign-compare -Wno-pointer-sign  -I. -I. -I/opt/local/include
-I/opt/local/include -fno-builtin
-I/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_net_openssh/work/include
-DSSHDIR=\"/opt/local/etc/ssh\"
-D_PATH_SSH_PROGRAM=\"/opt/local/bin/ssh\"
-D_PATH_SSH_ASKPASS_DEFAULT=\"/opt/local/libexec/ssh-askpass\"
-D_PATH_SFTP_SERVER=\"/opt/local/libexec/sftp-server\"
-D_PATH_SSH_KEY_SIGN=\"/opt/local/libexec/ssh-keysign\"
-D_PATH_SSH_PIDDIR=\"/opt/local/var/run\"
-D_PATH_PRIVSEP_CHROOT_DIR=\"/opt/local/var/empty\"
-DSSH_RAND_HELPER=\"/opt/local/libexec/ssh-rand-helper\" -DHAVE_CONFIG_H
-c sshconnect.c
/usr/bin/gcc-4.0 -g -O2 -Wall -Wpointer-arith -Wuninitialized
-Wsign-compare -Wno-pointer-sign  -I. -I. -I/opt/local/include
-I/opt/local/include -fno-builtin
-I/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_net_openssh/work/include
-DSSHDIR=\"/opt/local/etc/ssh\"
-D_PATH_SSH_PROGRAM=\"/opt/local/bin/ssh\"
-D_PATH_SSH_ASKPASS_DEFAULT=\"/opt/local/libexec/ssh-askpass\"
-D_PATH_SFTP_SERVER=\"/opt/local/libexec/sftp-server\"
-D_PATH_SSH_KEY_SIGN=\"/opt/local/libexec/ssh-keysign\"
-D_PATH_SSH_PIDDIR=\"/opt/local/var/run\"
-D_PATH_PRIVSEP_CHROOT_DIR=\"/opt/local/var/empty\"
-DSSH_RAND_HELPER=\"/opt/local/libexec/ssh-rand-helper\" -DHAVE_CONFIG_H
-c sshconnect1.c
/usr/bin/gcc-4.0 -g -O2 -Wall -Wpointer-arith -Wuninitialized
-Wsign-compare -Wno-pointer-sign  -I. -I. -I/opt/local/include
-I/opt/local/include -fno-builtin
-I/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_net_openssh/work/include
-DSSHDIR=\"/opt/local/etc/ssh\"
-D_PATH_SSH_PROGRAM=\"/opt/local/bin/ssh\"
-D_PATH_SSH_ASKPASS_DEFAULT=\"/opt/local/libexec/ssh-askpass\"
-D_PATH_SFTP_SERVER=\"/opt/local/libexec/sftp-server\"
-D_PATH_SSH_KEY_SIGN=\"/opt/local/libexec/ssh-keysign\"
-D_PATH_SSH_PIDDIR=\"/opt/local/var/run\"
-D_PATH_PRIVSEP_CHROOT_DIR=\"/opt/local/var/empty\"
-DSSH_RAND_HELPER=\"/opt/local/libexec/ssh-rand-helper\" -DHAVE_CONFIG_H
-c sshconnect2.c
/usr/bin/gcc-4.0 -o ssh ssh.o readconf.o clientloop.o sshtty.o
sshconnect.o sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/
-L/opt/local/lib -L/opt/local/lib  -lssh -lopenbsd-compat -lcrypto -lz
/usr/bin/ld: warning multiple definitions of symbol _ssh_connect
sshconnect.o definition of _ssh_connect in section (__TEXT,__text)
/opt/local/lib/libssh.dylib(client.o) definition of _ssh_connect
/usr/bin/ld: Undefined symbols:
_a2port
_a2tun
_auth_request_forwarding
_buffer_append
_buffer_clear
_buffer_get_char
_buffer_get_int
_buffer_init
_buffer_len
_buffer_ptr
_buffer_put_cstring
_buffer_put_int
_channel_new
_channel_register_confirm
_channel_register_filter
_channel_request_remote_forwarding
_channel_request_start
_channel_send_open
_channel_set_af
_channel_setup_local_fwd_listener
_cipher_number
_ciphers_valid
_cleanhostname
_compat20
_datafellows
_debug
_debug2
_debug3
_error
_fatal
_hpdelim
_init_rng
_key_free
_key_load_private_type
_key_load_public
_log_init
_logit

_mac_valid
_match_pattern
_mm_send_fd
_packet_close
_packet_disconnect
_packet_get_int
_packet_put_cstring
_packet_put_int
_packet_put_string
_packet_remaining
_packet_set_interactive
_packet_start
_packet_start_compression
_packet_write_wait
_percent_expand
_permanently_set_uid
_pwcopy
_sanitise_stdfd
_seed_rng
_set_nonblock
_ssh_agent_present
_ssh_msg_recv
_ssh_msg_send
_tilde_expand_filename
_tty_make_modes
_tun_open
_x11_request_forwarding_with_spoofing
_xcalloc
_xfree
_xstrdup
_convtime
_key_names_valid2
_log_level_number
_proto_spec
_strdelim
_xmalloc
_ask_permission
_atomicio
_buffer_consume
_buffer_get_string
_buffer_put_char
_channel_after_select
_channel_cancel_cleanup
_channel_connect_by_listen_address
_channel_free_all
_channel_input_close
_channel_input_close_confirmation
_channel_input_data
_channel_input_extended_data
_channel_input_ieof
_channel_input_oclose
_channel_input_open_confirmation
_channel_input_open_failure
_channel_input_port_open
_channel_input_window_adjust
_channel_lookup
_channel_not_very_much_buffered_data
_channel_open_message
_channel_output_poll
_channel_prepare_select
_channel_register_cleanup
_channel_request_rforward_cancel
_channel_send_window_changes
_channel_still_open
_channel_stop_listening
_compat13
_deny_input_open
_dispatch_init
_dispatch_protocol_error
_dispatch_run
_dispatch_set
_kex_input_kexinit
_kex_send_kexinit
_max_packet_size
_mm_receive_fd
_packet_get_char
_packet_get_connection_in
_packet_get_connection_out
_packet_get_string
_packet_have_data_to_write
_packet_need_rekeying
_packet_not_very_much_data_to_write
_packet_process_incoming
_packet_put_char
_packet_write_poll
_read_passphrase
_ssh_get_authentication_socket
_unset_nonblock
_x11_connect_display
_x11_input_open
_add_host_to_hostfile
_check_host_in_hostfile
_chop
_compat_datafellows
_enable_compat13
_enable_compat20
_key_equal
_key_fingerprint
_key_new
_key_type
_lookup_key_in_hostfile_by_type
_packet_set_connection
_packet_set_nonblocking
_permanently_drop_suid
_put_host_port
_verify_host_key_dns
_xasprintf
_cipher_mask_ssh1
_cipher_name
_derive_ssh1_session_id
_packet_get_bignum
_packet_put_bignum
_packet_read_expect
_packet_set_encryption_key
_packet_set_protocol_flags
_rsa_private_decrypt
_rsa_public_encrypt
_ssh_close_authentication_connection
_ssh_decrypt_challenge
_ssh_get_authentication_connection
_ssh_get_first_identity
_ssh_get_next_identity
_buffer_put_string
_compat_cipher_proposal
_dispatch_range
_get_local_name
_kex_setup
_kexdh_client
_kexgex_client
_key_from_blob
_key_sign
_key_ssh_name
_key_to_blob
_key_type_from_name
_match_list
_packet_add_padding
_packet_put_raw
_packet_set_rekey_limit
_ssh_agent_sign
collect2: ld returned 1 exit status
make: *** [ssh] Error 1
Error: Target com.apple.build returned: shell command "cd
"/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_net_openssh/work/openssh-4.5p1"
&& make all" returned error 2
Command output: _packet_put_bignum
_packet_read_expect
_packet_set_encryption_key
_packet_set_protocol_flags
_rsa_private_decrypt
_rsa_public_encrypt
_ssh_close_authentication_connection
_ssh_decrypt_challenge
_ssh_get_authentication_connection
_ssh_get_first_identity
_ssh_get_next_identity
_buffer_put_string
_compat_cipher_proposal
_dispatch_range
_get_local_name
_kex_setup
_kexdh_client
_kexgex_client
_key_from_blob
_key_sign
_key_ssh_name
_key_to_blob
_key_type_from_name
_match_list
_packet_add_padding
_packet_put_raw
_packet_set_rekey_limit
_ssh_agent_sign
collect2: ld returned 1 exit status
make: *** [ssh] Error 1

Warning: the following items did not execute (for openssh):
com.apple.activate com.apple.build com.apple.destroot com.apple.install
Error: Status 1 encountered during processing.



More information about the macports-users mailing list