Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Generate host keys - OSS Tandem

168 views
Skip to first unread message

Alex

unread,
Apr 12, 2011, 10:42:22 PM4/12/11
to
"Prngd" and "Openssl" packages installed.

Received the error while generating host keys:

> ssh-keygen -t rsa1 -f /usr/local/etc/ssh_host_key -N ""

*** RLD ERROR ***: DLL File Format Error: File ssh is a program;a
library was expected

Has anyone resolved this issue? Appreciate your advice.

Joachim Schmitz

unread,
Apr 13, 2011, 12:05:06 PM4/13/11
to

does running ssh give a 'better' error message?

Note that that there are 2 different packages of openssl, one starts with
oss_, the other does not. You can't use the oss_ one with openssh ...

Bye, Jojo

Alex

unread,
Apr 14, 2011, 6:44:39 AM4/14/11
to
On Apr 13, 12:05 pm, "Joachim Schmitz" <nospam.j...@schmitz-


Does openssh and its prerequisite openssl need to be compiled after
"unzipping" on OSS side? If yes, how you do it?

Appreciate your response.

Joachim Schmitz

unread,
Apr 14, 2011, 8:32:08 AM4/14/11
to

No need to compile it. Unless you only download the src archives

> Appreciate your response.

Bye, Jojo

Alex

unread,
Apr 14, 2011, 9:41:35 PM4/14/11
to
On Apr 14, 8:32 am, "Joachim Schmitz" <nospam.j...@schmitz-digital.de>
wrote:


I installed following packages in OSS: openssl-0.9.7g, prngd-0.9.27
and openssh-3.7.1p2. These are all from ITUG library.
My sysadmin confirmed that installation is done as per ITUG
instructions.

After executing >> ssh-keygen -t rsa1 -f /usr/local/etc/ssh_host_key -
N ""
two errors get generated:


*** RLD ERROR ***: DLL File Format Error: File ssh is a program;a
library was expected

and
/bin/-sh:ssh-keygen: invalid cpu specified to tdm_execve()

How can I control specification of cpu when executing 'ssh-keygen -t
rsa1 -f /usr/local/etc/ssh_host_key -N "" '?

Appreciate your response and Thank you.

Alex


Joachim Schmitz

unread,
Apr 15, 2011, 3:01:54 AM4/15/11
to

I don't understand this, doesn't happen here.

I've asked erarlier: was the openssl package the one with oss_ in its name?
If so take the other one.
I've also asked earlier: does running ssh itself give a different (and
better?) error message?

Is _RLD_LIB_PATH (or whatever it is called) set?
Is this TNS/E or TNS/R?

> and
> /bin/-sh:ssh-keygen: invalid cpu specified to tdm_execve()

I'm pretty sure this is a wrong error message. sh would start it's children
on the same CPU it is running.

> How can I control specification of cpu when executing 'ssh-keygen -t
> rsa1 -f /usr/local/etc/ssh_host_key -N "" '?

If you want a different one, use the run command, e.g.:

run -cpu=3 ssh-keygen -t rsa1 -f /usr/local/etc/ssh_host_key -N ""

> Appreciate your response and Thank you.
>
> Alex

I'll be out for a week now...

Bye, Jojo

Alex

unread,
Apr 26, 2011, 10:29:39 PM4/26/11
to
On Apr 15, 3:01 am, "Joachim Schmitz" <nospam.j...@schmitz-digital.de>

The other thread is hard to follow and I have to post my question
here.
Could you please show me the listing of your /G/SYSTEM/ZDLL
directory? It is empty on our G06.32 System. Just trying to find the
root
of our problem.
Thanks


Keith Dick

unread,
Apr 27, 2011, 2:44:53 AM4/27/11
to

Jojo said he would be gone for two or three weeks, so you probably won't see an answer from him.

In case you didn't see it in the other thread, I posted that I thought I was misled by the error message that mentioned /G/SYSTEM/ZDLL. I now imagine that that path was just the last location it searched, so when it wrote the error message, it used it to form the full file name. You copied into /usr/local/lib, I think, so that's where the ssh file you created will be, and FUP can't do anything about a file code for an OSS file.

Also, let me copy something else from that post of mine:

So maybe creating your own DLL is a better approach. The examples in the DLL Programmer's Guide are all for Guardian, and I don't know whether making a DLL from Guardian will make one that is acceptable to be loaded with an OSS program. I found this:

c89 dllx.c -o dllx.so -Wshared

as an example of the OSS command to create a DLL. Since copying an existing DLL file didn't seem to work very well, perhaps you should do the above compile in /usr/local/lib, or at least specify that as the path in the -o filename. (And don't add .so to the end of the name, make it just ssh, since that is what seems to be in the library list in the object file.)

Joachim Schmitz

unread,
Apr 28, 2011, 5:30:23 AM4/28/11
to

Due to unneeded full qoutes...

> Could you please show me the listing of your /G/SYSTEM/ZDLL
> directory? It is empty on our G06.32 System. Just trying to find the

It is empty here too. They do exist on in TNS/E systems only, I believe. And
there I think they follow a similar schmema as $SYSTEM.SYSTEM and
$SYSTEM.SYSnn, i.e. first look in $SYSTEM.ZDLL then in $SYSTEM.ZDLLnnnn, but
I'm not too sure about this.

Bye, Jojo

Joachim Schmitz

unread,
Apr 28, 2011, 5:44:57 AM4/28/11
to
Keith Dick wrote:
<snip>

> Jojo said he would be gone for two or three weeks, so you probably

Just one ;-)

Bye, Jojo

Alex

unread,
Apr 28, 2011, 10:04:08 AM4/28/11
to
On Apr 28, 5:44 am, "Joachim Schmitz" <nospam.j...@schmitz-digital.de>
wrote:

I copied libssl.so in /usr/local/lib and named it ssh.
At run time Ssh-keygen finds it as a library but of course complains
about 'Unresolved Text Symbol'.
This tells me that ssh library is required but how to rebuild it?
I was planing to use 'make' to rebuild ssh library. This freeware
product does not even have anything about it (how to do it).

/usr/local/bin/temp: ssh-keygen
0001:Loaded Library '/usr/local/bin/temp/ssh-keygen',
Segment base address = 0x70000000,
Rebase amount = 0x00000000

0002:Loaded Library 'ZRLDSRL',
Segment base address = 0x765c0000,
Rebase amount = 0x00000000

0003:Loaded Library '/usr/local/lib/ssh',
Segment base address = 0x60000000,
Rebase amount = 0x00000000

0004:Loaded Library '/usr/local/lib/libcrypto.so',
Segment base address = 0x67e58000,
Rebase amount = 0x07e58000

0005:Loaded Library 'zutilsrl',
Segment base address = 0x76c00000,
Rebase amount = 0x00000000

0006:Loaded Library 'zosscsrl',
Segment base address = 0x76660000,
Rebase amount = 0x00000000

0007:Loaded Library 'zcresrl',
Segment base address = 0x76600000,
Rebase amount = 0x00000000

0008:Loaded Library 'zcrtlsrl',
Segment base address = 0x76c20000,
Rebase amount = 0x00000000

0009:Loaded Library 'zossksrl',
Segment base address = 0x76d40000,
Rebase amount = 0x00000000

0010:Loaded Library 'zsecsrl',
Segment base address = 0x76640000,
Rebase amount = 0x00000000

0011:Loaded Library 'zinetsrl',
Segment base address = 0x76ce0000,
Rebase amount = 0x00000000

0012:Loaded Library 'zossfsrl',
Segment base address = 0x76a40000,
Rebase amount = 0x00000000

0013:Loaded Library 'zossesrl',
Segment base address = 0x76e00000,
Rebase amount = 0x00000000

0014:Loaded Library 'zstfnsrl',
Segment base address = 0x77040000,
Rebase amount = 0x00000000

0015:Loaded Library 'zicnvsrl',
Segment base address = 0x76b40000,
Rebase amount = 0x00000000

0016:Loaded Library 'zi18nsrl',
Segment base address = 0x76a60000,
Rebase amount = 0x00000000

*** RLD ERROR ***: Unresolved Text Symbol gen_candidates in file /usr/
local/bin/
temp/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol
rsa_generate_additional_parameters in
file /usr/local/bin/temp/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol key_sign in file /usr/local/
bin/temp/s
sh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol key_verify in file /usr/
local/bin/temp
/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol xstrdup in file /usr/local/
bin/temp/ss
h-keygen.
*** RLD ERROR ***: Unresolved Text Symbol xfree in file /usr/local/bin/
temp/ssh-
keygen.
*** RLD ERROR ***: Unresolved Text Symbol uudecode in file /usr/local/
bin/temp/s
sh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol key_from_blob in file /usr/
local/bin/t
emp/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol key_size in file /usr/local/
bin/temp/s
sh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol key_type in file /usr/local/
bin/temp/s
sh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol key_write in file /usr/local/
bin/temp/
ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol dump_base64 in file /usr/
local/bin/tem
p/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol buffer_get_int in file /usr/
local/bin/
temp/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol buffer_len in file /usr/
local/bin/temp
/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol key_fingerprint in file /usr/
local/bin
/temp/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol fatal in file /usr/local/bin/
temp/ssh-
keygen.
*** RLD ERROR ***: Unresolved Text Symbol buffer_consume in file /usr/
local/bin/
temp/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol buffer_init in file /usr/
local/bin/tem
p/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol buffer_append in file /usr/
local/bin/t
emp/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol error in file /usr/local/bin/
temp/ssh-
keygen.
*** RLD ERROR ***: Unresolved Text Symbol buffer_free in file /usr/
local/bin/tem
p/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol key_new in file /usr/local/
bin/temp/ss
h-keygen.
*** RLD ERROR ***: Unresolved Text Symbol buffer_get_string in file /
usr/local/b
in/temp/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol debug in file /usr/local/bin/
temp/ssh-
keygen.
*** RLD ERROR ***: Unresolved Text Symbol key_read in file /usr/local/
bin/temp/s
sh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol key_new_private in file /usr/
local/bin
/temp/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol buffer_get_char in file /usr/
local/bin
/temp/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol key_save_private in file /
usr/local/bi
n/temp/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol key_generate in file /usr/
local/bin/te
mp/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol key_from_private in file /
usr/local/bi
n/temp/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol key_to_blob in file /usr/
local/bin/tem
p/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol read_passphrase in file /usr/
local/bin
/temp/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol key_free in file /usr/local/
bin/temp/s
sh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol buffer_ptr in file /usr/
local/bin/temp
/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol log_init in file /usr/local/
bin/temp/s
sh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol init_rng in file /usr/local/
bin/temp/s
sh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol seed_rng in file /usr/local/
bin/temp/s
sh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol prime_test in file /usr/
local/bin/temp
/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol key_load_private in file /
usr/local/bi
n/temp/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol key_load_public in file /usr/
local/bin
/temp/ssh-keygen.
*** RLD ERROR ***: Unresolved Text Symbol key_type_from_name in file /
usr/local/
bin/temp/ssh-keygen.
/bin/-sh: ssh-keygen: tdm_execve(): failed with unexpected error
pr_errno=(4022) pr_TPCerror=(74) pr_TPCdetail=(0)

Joachim Schmitz

unread,
Apr 28, 2011, 10:47:12 AM4/28/11
to
Alex wrote:
> On Apr 28, 5:44 am, "Joachim Schmitz" <nospam.j...@schmitz-digital.de>
> wrote:
>> Keith Dick wrote:
>>
>> <snip>
>>
>>> Jojo said he would be gone for two or three weeks, so you probably
>>
>> Just one ;-)
>>
>> Bye, Jojo
>
> I copied libssl.so in /usr/local/lib and named it ssh.
> At run time Ssh-keygen finds it as a library but of course complains
> about 'Unresolved Text Symbol'.
> This tells me that ssh library is required but how to rebuild it?
> I was planing to use 'make' to rebuild ssh library.

There is no ssh library, so nothing to make.

> This freeware
> product does not even have anything about it (how to do it).

? It comes with a configure script which would build a Makefile.
Get yourself the latest floss packages it has a short HowTo.

>/usr/local/bin/temp: ssh-keygen
>0001:Loaded Library '/usr/local/bin/temp/ssh-keygen',
> Segment base address = 0x70000000,
> Rebase amount = 0x00000000

<snip>


> *** RLD ERROR ***: Unresolved Text Symbol gen_candidates in file /usr/
> local/bin/temp/ssh-keygen.

Why /usr/local/bin/temp/ssh-keygen rather than /usr/local/bin/ssh-keygen??

> *** RLD ERROR ***: Unresolved Text Symbol
> rsa_generate_additional_parameters in
> file /usr/local/bin/temp/ssh-keygen.
> *** RLD ERROR ***: Unresolved Text Symbol key_sign in file /usr/local/
> bin/temp/s
> sh-keygen.
> *** RLD ERROR ***: Unresolved Text Symbol key_verify in file /usr/
> local/bin/temp
> /ssh-keygen.
> *** RLD ERROR ***: Unresolved Text Symbol xstrdup in file /usr/local/
> bin/temp/ss
> h-keygen.
> *** RLD ERROR ***: Unresolved Text Symbol xfree in file
> /usr/local/bin/ temp/ssh-
> keygen.

<snip>


> *** RLD ERROR ***: Unresolved Text Symbol key_load_private in file /
> usr/local/bi
> n/temp/ssh-keygen.
> *** RLD ERROR ***: Unresolved Text Symbol key_load_public in file
> /usr/ local/bin
> /temp/ssh-keygen.
> *** RLD ERROR ***: Unresolved Text Symbol key_type_from_name in file /
> usr/local/
> bin/temp/ssh-keygen.

All these Symbols are inside ssh-keygen, as far as I can see. No need for
any DLL.

> /bin/-sh: ssh-keygen: tdm_execve(): failed with unexpected error
> pr_errno=(4022) pr_TPCerror=(74) pr_TPCdetail=(0)

Need to look up this error 4022/74 in Guardian Procedure calls manual, for
PROCESS_SPAWN

Bye, Jojo


Joachim Schmitz

unread,
Apr 28, 2011, 10:52:51 AM4/28/11
to
Joachim Schmitz wrote:
> Alex wrote:
<snip>

>> /bin/-sh: ssh-keygen: tdm_execve(): failed with unexpected error
>> pr_errno=(4022) pr_TPCerror=(74) pr_TPCdetail=(0)
>
> Need to look up this error 4022/74 in Guardian Procedure calls
> manual, for PROCESS_SPAWN

Found it:

The Process contained an unresolved reference to a function and so was not
created...

Doesn't help a lot does it?

Bye, Jojo

Keith Dick

unread,
Apr 28, 2011, 11:14:11 AM4/28/11
to

Okay, we have learned something: That ssh in the library list seems really to be necessary, not that it was accidently included.

So I looked for the first undefined: gen_candidates. It appears in moduli.c. In the makefile template, moduli.o appears in a list of things for LIBSSH_OBJS. LIBSSH_OBJS seems to be what goes into making libssh.a. libssh.a appears on the line for most of the runnable files in the makefile template, including that for ssh-keygen.

I think this means that gen_candidates, and I'm assuming all the others not defined, were supposed to be statically linked into ssh-keygen. The -lssh in the make lines for ssh-keygen and the others looks wrong, since there is no file ssh except for the runnable program ssh, which should not be mentioned as a library. I recall something about the linker adding "lib" to the front of names mentioned in -l, so that could be intended to get something named libssh or libssh.so, but except for the libssh.a, we don't have files with names like that in the makefile, and you don't see files of those names on your system (except for the runnable ssh).

It sure looks to me that the version you downloaded was built incorrectly. I don't know whether Jojo's system has an older version or one that was built locally, but it sure does not seem to be the same as what you have. I don't see an older version on the itug page for you to download and try, so you can't even try that.

But remember, I know very little about this stuff and have no actual experience with it. I could be way off base.

The only two things I think you could try to do is download the source from the itug page and try to rebuild it yourself, or go to the openssh.org web site and look at their build and install instructions to see whether that gives you any clues. I think the former would be more productive, but not easy.

Joachim Schmitz

unread,
Apr 28, 2011, 11:40:11 AM4/28/11
to
Keith Dick wrote:
> Alex wrote:
>> On Apr 28, 5:44 am, "Joachim Schmitz"
<snip>

> So I looked for the first undefined: gen_candidates. It appears in
> moduli.c. In the makefile template, moduli.o appears in a list of
> things for LIBSSH_OBJS. LIBSSH_OBJS seems to be what goes into
> making libssh.a. libssh.a appears on the line for most of the
> runnable files in the makefile template, including that for
> ssh-keygen.
> I think this means that gen_candidates, and I'm assuming all the
> others not defined, were supposed to be statically linked into
> ssh-keygen. The -lssh in the make lines for ssh-keygen and the
> others looks wrong, since there is no file ssh except for the
> runnable program ssh, which should not be mentioned as a library. I
> recall something about the linker adding "lib" to the front of names
> mentioned in -l, so that could be intended to get something named
> libssh or libssh.so, but except for the libssh.a, we don't have files
> with names like that in the makefile, and you don't see files of
> those names on your system (except for the runnable ssh).

running 'nm' against ssh-keygen also shows that symbol to be in it, not just
referenced.

> It sure looks to me that the version you downloaded was built
> incorrectly. I don't know whether Jojo's system has an older version
> or one that was built locally, but it sure does not seem to be the
> same as what you have. I don't see an older version on the itug page
> for you to download and try, so you can't even try that.


I don't know about an older or newer version and I haven't built it myself.
So I'm pretty sure I'm successfully using the same version that Alex has a
problem with.
My ssh-keygen has a binder timestamp of 01JUN2007 21:52:18 (as shown by
vproc) and a size of 2160832 bytes (as shown by 'ls -l').

Which also means that I still have no idea what goes wrong here...

Bye, Jojo

Keith Dick

unread,
Apr 28, 2011, 12:08:45 PM4/28/11
to

The size of the ssh-keygen file I downloaded a few days ago is 203,872, and the timestamp from the tar file is Nov 7, 2007. I think you have an earlier version than is present in the itug library right now. (I can't do a VPROC or any NSK or OSS operations, since all I have is a Windows PC.)

Alex

unread,
Apr 28, 2011, 1:44:09 PM4/28/11
to
> The size of the ssh-keygen file I downloaded a few days ago is 203,872, and the timestamp from the tar file is Nov 7, 2007.  I think you have an earlier version than is present in the itug library right now.  (I can't do a VPROC or any NSK or OSS operations, since all I have is a Windows PC.)- Hide quoted text -
>
> - Show quoted text -

VPROC in my G06.32 system shows GMT Binder timestamp: 06NOV2007
23:57:40
Ssh-keygen filesize is 203872.

Joachim Schmitz

unread,
Apr 28, 2011, 2:48:36 PM4/28/11
to

Ahh! Finally a hint!
I'll look into this...

Nye, Jojo

Alex

unread,
Apr 28, 2011, 3:55:22 PM4/28/11
to
On Apr 28, 2:48 pm, "Joachim Schmitz" <nospam.j...@schmitz-digital.de>
> Nye, Jojo- Hide quoted text -

>
> - Show quoted text -

I changed in Makefile.in for openssh all the references from lssh to
llibssh.
ssh$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHOBJS)
$(LD) -o $@ $(SSHOBJS) $(LDFLAGS) -llibssh -lopenbsd-compat $(LIBS)

sshd$(EXEEXT): libssh.a $(LIBCOMPAT) $(SSHDOBJS)
$(LD) -o $@ $(SSHDOBJS) $(LDFLAGS) -llibssh -lopenbsd-compat $
(LIBWRAP) $(LIBPAM) $(LIBS)

scp$(EXEEXT): $(LIBCOMPAT) libssh.a scp.o progressmeter.o
$(LD) -o $@ scp.o progressmeter.o $(LDFLAGS) -llibssh -lopenbsd-
compat $(LIBS)

ssh-add$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-add.o
$(LD) -o $@ ssh-add.o $(LDFLAGS) -llibssh -lopenbsd-compat $(LIBS)

ssh-agent$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-agent.o
$(LD) -o $@ ssh-agent.o $(LDFLAGS) -llibssh -lopenbsd-compat $(LIBS)

ssh-keygen$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keygen.o
$(LD) -o $@ ssh-keygen.o $(LDFLAGS) -llibssh -lopenbsd-compat $
(LIBS)

ssh-keysign$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keysign.o
$(LD) -o $@ ssh-keysign.o readconf.o $(LDFLAGS) -llibssh -lopenbsd-
compat $(LIBS)

ssh-keyscan$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keyscan.o
$(LD) -o $@ ssh-keyscan.o $(LDFLAGS) -llibssh -lopenbsd-compat -
llibssh $(LIBS)

sftp-server$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-common.o sftp-
server.o
$(LD) -o $@ sftp-server.o sftp-common.o $(LDFLAGS) -llibssh -lopenbsd-
compat $(LIBS)

sftp$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-client.o sftp-int.o
sftp-common.o sftp-glob.o progressmeter.o
$(LD) -o $@ progressmeter.o sftp.o sftp-client.o sftp-common.o sftp-
int.o sftp-glob.o $(LDFLAGS) -llibssh -lopenbsd-compat $(LIBS)

ssh-rand-helper${EXEEXT}: $(LIBCOMPAT) libssh.a ssh-rand-helper.o
$(LD) -o $@ ssh-rand-helper.o $(LDFLAGS) -llibssh -lopenbsd-compat $
(LIBS)

# test driver for the loginrec code - not built by default
logintest: logintest.o $(LIBCOMPAT) libssh.a loginrec.o
$(LD) -o $@ logintest.o $(LDFLAGS) loginrec.o -lopenbsd-compat -
llibssh $(LIBS)

I'm trying to rebuild ssh, ssh-keygen etc. using source files
available following these instructions:
2. Building / Installation
--------------------------

To install OpenSSH with default options:

./configure
make
make install

This will install the OpenSSH binaries in /usr/local/bin,
configuration files
in /usr/local/etc, the server in /usr/local/sbin, etc.

Have lots of fun:
/usr/local/Floss/openssh-3.7.1p2: ./configure
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable cc found in $PATH
/usr/local/Floss/openssh-3.7.1p2: cc
/bin/-sh: cc: not found
As you can see I do not have cc available on OSS. Have c89 but that's
no help.

Jojo please let me know if you come up with any other ideas.
Thanks
Alex

Keith Dick

unread,
Apr 28, 2011, 4:12:05 PM4/28/11
to

If you are using instructions and configure and makefile that you downloaded from the itug site, then I don't know why configure isn't finding a compiler. If you are using them from somewhere else, like openssh.org, such a copy probably hasn't been made to work on NSK OSS, and I wouldn't be surprised that it doesn't find a suitable compiler.

Joachim Schmitz

unread,
Apr 28, 2011, 4:22:19 PM4/28/11
to

As mentioned earlier: grabthe latest floss package from ITUGLIB (currently
floss-0.9.3)
It comes with a 'cc' script and other goodies, also with a short HowTo which
should give enough hints.

Bye, Jojo

Joachim Schmitz

unread,
Apr 28, 2011, 4:24:10 PM4/28/11
to

Because these instructiona had not been changed from the original.

> If you are using them from somewhere else, like
> openssh.org, such a copy probably hasn't been made to work on NSK
> OSS, and I wouldn't be surprised that it doesn't find a suitable
> compiler.

See my other message, he'd need the floss package.

Bye, Jojo

Alex

unread,
Apr 28, 2011, 4:43:29 PM4/28/11
to
On Apr 28, 4:24 pm, "Joachim Schmitz" <nospam.j...@schmitz-digital.de>
> Bye, Jojo    - Hide quoted text -

>
> - Show quoted text -

I'm getting my admin people to unzip in OSS floss package that I just
downloaded from ITUG library.
Will let you know how it goes.
Best Regards,
Alex

Joachim Schmitz

unread,
Apr 28, 2011, 5:00:58 PM4/28/11
to

You can contact me via email too...

Bye, Jojo

Alex

unread,
Apr 29, 2011, 12:07:49 PM4/29/11
to
On Apr 28, 5:00 pm, "Joachim Schmitz" <nospam.j...@schmitz-digital.de>
> >>>>>>>> shown by vproc) and a size of2160832bytes (as shown by 'ls

I am rebuilding openssh on our G06.32 system. First step ./configure
just finished with no errors. My admin is doing next step, make.
Step 1 took 45 minutes so I have to wait perhaps another 45 for the
second step
and then proceed with step 3, that is make install.
Cheers Alex

Alex

unread,
Apr 29, 2011, 3:08:51 PM4/29/11
to
> Cheers Alex- Hide quoted text -

>
> - Show quoted text -

Lots of errors during make:
/usr/local/Floss/openssh-3.7.1p2: make
echo

if test ! -z ""; then ./fixprogs ssh_prng_cmds ; fi
(cd openbsd-compat && make)
c89 -g -I. -I. -DSSHDIR=\"/usr/local/etc\" -D_PATH_SSH_PROGRAM=\"/
usr/local/bi
n/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass
\" -D_PATH
_SFTP_SERVER=\"/usr/local/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=
\"/usr/loc
al/libexec/ssh-keysign\" -D_PATH_SSH_PIDDIR=\"/usr/local/etc\" -
D_PATH_PRIVSEP
_CHROOT_DIR=\"/var/empty\" -DSSH_RAND_HELPER=\"/usr/local/libexec/ssh-
rand-help
er\" -DHAVE_CONFIG_H -c authfd.c

extern int floss_rcmd(char **ahost, u_short rport, const char
*locuser,
^
"/usr/local/Floss/openssh-3.7.1p2/./floss.h", line 90: error(114):
identifier
"u_short" is undefined

u_short ar_hrd; /* format of hardware address */
^
"/usr/include/net/if_arp.h", line 55: error(114): identifier "u_short"
is
undefined

u_short ar_pro; /* format of protocol address */
^
"/usr/include/net/if_arp.h", line 60: error(114): identifier "u_short"
is
undefined

u_char ar_hln; /* length of hardware address */
^
"/usr/include/net/if_arp.h", line 61: error(114): identifier "u_char"
is
undefined

u_char ar_pln; /* length of protocol address */
^
"/usr/include/net/if_arp.h", line 62: error(114): identifier "u_char"
is
undefined

u_short ar_op; /* one of: */
^
"/usr/include/net/if_arp.h", line 63: error(114): identifier "u_short"
is
undefined

struct old_sockaddr arp_pa; /* protocol address */

Joachim Schmitz

unread,
Apr 29, 2011, 4:16:35 PM4/29/11
to
Alex wrote:
> On Apr 29, 12:07 pm, Alex <zale...@gmail.com> wrote:

<snip>

>> I am rebuilding openssh on our G06.32 system. First step ./configure

Wrong, use
../floss-0.9.3/conf_script_floss_cc --with-privsep-path=/usr/local/var/empty

Did you do a 'make install' in floss-0.9.3?
Then you should be able to run 'make openssh' in /usr/local/Floss

>> just finished with no errors. My admin is doing next step, make.
>> Step 1 took 45 minutes so I have to wait perhaps another 45 for the
>> second step
>> and then proceed with step 3, that is make install.
>> Cheers Alex- Hide quoted text -
>>
>> - Show quoted text -
>
> Lots of errors during make:
> /usr/local/Floss/openssh-3.7.1p2: make
> echo
>
> if test ! -z ""; then ./fixprogs ssh_prng_cmds ; fi
> (cd openbsd-compat && make)
> c89 -g -I. -I. -DSSHDIR=\"/usr/local/etc\" -D_PATH_SSH_PROGRAM=\"/

You're using c89, not cc (which is using c89 under the covers, but with some
special magic ;-)
See above...

This is the result... probably because -Wextensions is not set in the
compiler options.

Bye, Jojo

Alex

unread,
May 2, 2011, 12:42:08 PM5/2/11
to
> Cheers Alex- Hide quoted text -

>
> - Show quoted text -

I receive error with floss package that is currently on ITUG library.

/usr/local/Floss/openssh-3.7.1p2: make
echo

if test ! -z ""; then ./fixprogs ssh_prng_cmds ; fi
(cd openbsd-compat && make)

cc -o sshd sshd.o auth-rhosts.o auth-passwd.o auth-rsa.o auth-rh-
rsa.o sshpty.o
sshlogin.o servconf.o serverloop.o uidswap.o auth.o auth1.o auth2.o
auth-optio
ns.o session.o auth-chall.o auth2-chall.o groupaccess.o auth-skey.o
auth-bsdau
th.o auth2-hostbased.o auth2-kbdint.o auth2-none.o auth2-passwd.o
auth2-pubkey.
o monitor_mm.o monitor.o monitor_wrap.o monitor_fdpass.o kexdhs.o
kexgexs.o a
uth-krb5.o auth2-gss.o gss-serv.o gss-serv-krb5.o loginrec.o auth-
pam.o auth-s
ia.o md5crypt.o -L. -Lopenbsd-compat/ -lssh -lopenbsd-compat -lz -
lcrypto
LD's command line: -allow_duplicate_procs -unres_symbols error -o sshd
-set
systype oss -set highpin on -set highrequestor on /usr/lib/ccppmain.o
-call_shared ./sshd.o ./auth-rhosts.o ./auth-passwd.o ./auth-rsa.o
./auth-rh-rsa.o ./sshpty.o ./sshlogin.o ./servconf.o ./serverloop.o
./uidswap.o ./auth.o ./auth1.o ./auth2.o ./auth-options.o ./session.o
./auth-chall.o ./auth2-chall.o ./groupaccess.o ./auth-skey.o ./auth-
bsdauth.o
./auth2-hostbased.o ./auth2-kbdint.o ./auth2-none.o ./auth2-passwd.o
./auth2-pubkey.o ./monitor_mm.o ./monitor.o ./monitor_wrap.o
./monitor_fdpass.o ./kexdhs.o ./kexgexs.o ./auth-krb5.o ./auth2-gss.o
./gss-serv.o ./gss-serv-krb5.o ./loginrec.o ./auth-pam.o ./auth-sia.o
./md5crypt.o -L. -Lopenbsd-compat/ -l libssh.a -l libopenbsd-compat.a
-l
libz.a -l libcrypto.a -L/usr/local/lib -l floss -l zutilsrl -l
zosscsrl -l
zrldsrl -optional_lib -L /G/system/sys05 -obey /usr/lib/libc.obey
-no_optional_lib
LD WARNING **** [60001]:
**Symbol 'floss_openpty' is not defined.

LD ERROR **** [20175]:
LLSL: Loadfile has 1 undefined symbol(s) when library set
(including
System Library) is used.

LD reported 1 error.
LD reported 12 warnings.

11 LD warnings were suppressed.

I did uncomment lines in floss.h and plan to do ./configure and make
again. Is this a right approach?

Alex

Keith Dick

unread,
May 2, 2011, 1:55:38 PM5/2/11
to

Similar problems came up several times last year. I believe solution was to use the openssl package from itug that does NOT have "oss" in its name.

Joachim Schmitz

unread,
May 2, 2011, 2:44:44 PM5/2/11
to

I don't think so, as then openssh would not find openpty and not work
without. And floss_openpty is in libfloss.a, so it should really find it.
Not sure why it does not,
it might be a matter of link oder, i.e. the order of the libs in the command
line?

Bye, Jojo


0 new messages