OpenSSH and Redhat 8

Ben Lindstrom mouring at etoh.eviladmin.org
Thu Oct 30 09:26:41 EST 2003


Extract the package and check the

openssh.spec  file for:

# Do we want to disable building of gnome-askpass? (1=yes 0=no)
%define no_gnome_askpass 0


If you don't plan on using gnome you should set that to 1.  and you can do
a rpm -ba openssh.spec on the package.

- Ben

On Wed, 29 Oct 2003, Armsby John-G16665 wrote:

> Jason,
>
> Ran into a little problem.  The compiler is complaining about gnome-ssh-askpass2.c errors.
>
> Problems are listed below.  Absolutely no output to RPMS/i386 directory.
>
> I am not sure what errors here are relevant.  I appologize if the errors are too lengthy.
>
> I did a quick check on my redhat box.  Absolutely no default Gnome software development installed.
>
> Is that the answer?
>
>
>
> John
>
> + make gnome-ssh-askpass2
> cc `pkg-config --cflags gtk+-2.0` \
>         gnome-ssh-askpass2.c -o gnome-ssh-askpass2 \
>         `pkg-config --libs gtk+-2.0`
> Package gtk+-2.0 was not found in the pkg-config search path.
> Perhaps you should add the directory containing `gtk+-2.0.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'gtk+-2.0' found
> Package gtk+-2.0 was not found in the pkg-config search path.
> Perhaps you should add the directory containing `gtk+-2.0.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'gtk+-2.0' found
> gnome-ssh-askpass2.c:56:21: gtk/gtk.h: No such file or directory
> gnome-ssh-askpass2.c:57:22: gdk/gdkx.h: No such file or directory
> gnome-ssh-askpass2.c: In function `report_failed_grab':
> gnome-ssh-askpass2.c:62: `GtkWidget' undeclared (first use in this function)
> gnome-ssh-askpass2.c:62: (Each undeclared identifier is reported only once
> gnome-ssh-askpass2.c:62: for each function it appears in.)
> gnome-ssh-askpass2.c:62: `err' undeclared (first use in this function)
> gnome-ssh-askpass2.c:65: `GTK_MESSAGE_ERROR' undeclared (first use in this function)
> gnome-ssh-askpass2.c:66: `GTK_BUTTONS_CLOSE' undeclared (first use in this function)
> gnome-ssh-askpass2.c:70: `GTK_WIN_POS_CENTER' undeclared (first use in this function)
> gnome-ssh-askpass2.c:71: invalid type argument of `->'
> gnome-ssh-askpass2.c:72: `TRUE' undeclared (first use in this function)
> gnome-ssh-askpass2.c: At top level:
> gnome-ssh-askpass2.c:80: parse error before '*' token
> gnome-ssh-askpass2.c: In function `ok_dialog':
> gnome-ssh-askpass2.c:82: `dialog' undeclared (first use in this function)
> gnome-ssh-askpass2.c:83: `GTK_RESPONSE_OK' undeclared (first use in this function)
> gnome-ssh-askpass2.c: In function `passphrase_dialog':
> gnome-ssh-askpass2.c:92: `GtkWidget' undeclared (first use in this function)
> gnome-ssh-askpass2.c:92: `dialog' undeclared (first use in this function)
> gnome-ssh-askpass2.c:92: `entry' undeclared (first use in this function)
> gnome-ssh-askpass2.c:93: `GdkGrabStatus' undeclared (first use in this function)
> gnome-ssh-askpass2.c:93: parse error before "status"
> gnome-ssh-askpass2.c:100: `GTK_MESSAGE_QUESTION' undeclared (first use in this function)
> gnome-ssh-askpass2.c:101: `GTK_BUTTONS_OK_CANCEL' undeclared (first use in this function)
> gnome-ssh-askpass2.c:106: invalid type argument of `->'
> gnome-ssh-askpass2.c:106: `FALSE' undeclared (first use in this function)
> gnome-ssh-askpass2.c:113: `GTK_WIN_POS_CENTER' undeclared (first use in this function)
> gnome-ssh-askpass2.c:114: invalid type argument of `->'
> gnome-ssh-askpass2.c:115: `TRUE' undeclared (first use in this function)
> gnome-ssh-askpass2.c:118: `GTK_RESPONSE_OK' undeclared (first use in this function)
> gnome-ssh-askpass2.c:126: `status' undeclared (first use in this function)
> gnome-ssh-askpass2.c:127: invalid type argument of `->'
> gnome-ssh-askpass2.c:128: `GDK_CURRENT_TIME' undeclared (first use in this function)
> gnome-ssh-askpass2.c:129: `GDK_GRAB_SUCCESS' undeclared (first use in this function)
> gnome-ssh-askpass2.c:139: invalid type argument of `->'
> gnome-ssh-askpass2.c:157: warning: passing arg 1 of `XUngrabServer' makes pointer from integer without a cast
> gnome-ssh-askpass2.c:164: warning: assignment makes pointer from integer without a cast
> gnome-ssh-askpass2.c:167: warning: assignment makes pointer from integer without a cast
> gnome-ssh-askpass2.c:193: warning: passing arg 1 of `XUngrabServer' makes pointer from integer without a cast
> gnome-ssh-askpass2.c: In function `main':
> gnome-ssh-askpass2.c:210: warning: assignment makes pointer from integer without a cast
> gnome-ssh-askpass2.c:212: warning: assignment makes pointer from integer without a cast
> make: *** [gnome-ssh-askpass2] Error 1
> error: Bad exit status from /var/tmp/rpm-tmp.39289 (%build)
>
>
> RPM build errors:
>     user djm does not exist - using root
>     group djm does not exist - using root
>     user djm does not exist - using root
>     group djm does not exist - using root
>     user djm does not exist - using root
>     group djm does not exist - using root
>     Bad exit status from /var/tmp/rpm-tmp.39289 (%build)
> [root at xena2 src]#
>
>
> -----Original Message-----
> From: Jason McCormick [mailto:jason at devrandom.org]
> Sent: Wednesday, October 29, 2003 1:54 PM
> To: Armsby John-G16665
> Cc: openssh-unix-dev at mindrot.org
> Subject: Re: OpenSSH and Redhat 8
>
>
> John,
>
>   The following steps should work for you (or anyone buildling on a
> RedHat box):
>
> 1) Get the official OpenSSH source RPM from
> ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/rpm/SRPMS/openssh-3.7.1p2-1.src.rpm
>
> 2) Do 'rpmbuild --rebuild ./openssh-3.7.1p2-1.src.rpm' from where you
> saved the file.
>
> 3) This should create the following files in /usr/src/redhat/RPMS/i386:
> 	openssh-server-3.7.1p2-1.i386.rpm
> 	openssh-clients-3.7.1p2-1.i386.rpm
> 	openssh-askpass-gnome-3.7.1p2-1.i386.rpm
> 	openssh-askpass-3.7.1p2-1.i386.rpm
> 	openssh-3.7.1p2-1.i386.rpm
>
> 4) Invoke 'rpm -Uvh openssh-*.rpm' to install them.
>
> 5) Assuming you're using a standard RedHat setup, make sure you edit
> /etc/ssh/sshd_config to change 'UsePAM' to yes so OpenSSH will look at
> PAM for user authentication.  Note this is a change in behavior from
> previous OpenSSH installs where PAM was enabled by default.
>
> 6) Restart - '/etc/init.d/openssh restart'
>
> That should be all you need with Redhat 8.0.  Let me know if you run
> into more problems.  I've CCed this to the mailing list for future
> reference for all.
>
> --
> Jason McCormick
> jason at devrandom.org
> GPG Key: http://www.devrandom.org/gpgkey.php
> GPG Fingerprint: 66C5 2B15 3E34 2B5E 5321 6147 303A DCE6 0A74 A19C
>
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at mindrot.org
> http://www.mindrot.org/mailman/listinfo/openssh-unix-dev
>




More information about the openssh-unix-dev mailing list