Subject: Re: Problem building openssh-3.7.1.2
To: Rodrigo Fernandez-Vizarra <Rodrigo.Fdz-Vizarra@infonegocio.com>
From: Rodrigo Fernandez-Vizarra <Rodrigo.Fdz-Vizarra@infonegocio.com>
List: port-cobalt
Date: 10/04/2003 01:42:33
Sure, it's a optimizer gcc bug
This is the workaround:
go to /usr/pkgsrc/security/openssh/work/openssh-3.7.1p2 and type (better
copy&paste)
# cc -O0 -I/usr/pkg/include -Wall -Wpointer-arith -Wno-uninitialized -I.
-I. -I/usr/include -I/usr/include -I/usr/pkg/include
-DSSHDIR=\"/usr/pkg/etc/ssh\" -D_PATH_SSH_PROGRAM=\"/usr/pkg/bin/ssh\"
-D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/X11R6/bin/ssh-askpass\"
-D_PATH_SFTP_SERVER=\"/usr/pkg/libexec/sftp-server\"
-D_PATH_SSH_KEY_SIGN=\"/usr/pkg/libexec/ssh-keysign\"
-D_PATH_SSH_PIDDIR=\"/var/run\"
-D_PATH_PRIVSEP_CHROOT_DIR=\"/var/chroot/sshd\"
-DSSH_RAND_HELPER=\"/usr/pkg/libexec/ssh-rand-helper\" -DHAVE_CONFIG_H
-c channels.c
I changed the optimization option to 0, and it compiled... so it looks
like a gcc bug. Anyone knows how to file a bug for gcc?
when channels.c is compiled continue with your usual make install
clean... didn't check if the final binaries do work.!!
Regards,
Rodrigo
Rodrigo Fernandez-Vizarra wrote:
> Same error... did we trigger a gcc bug?
>
> Rodrigo
>
> Byron Servies wrote:
>
>> Hi,
>>
>> I updated my pkgsrc this week to update my sshd, but when I
>> try to compile I get the error below. Has anybody else tried
>> this and found a workaround?
>>
>> Thanks,
>>
>> Byron
>>
>> testqube# make
>> ===> Checking for vulnerabilities in openssh-3.7.1.2
>> ===> Building for openssh-3.7.1.2
>> if test ! -z ""; then /usr/pkg/bin/perl ./fixprogs ssh_prng_cmds ; fi
>> (cd openbsd-compat && make)
>> cc -O2 -I/usr/pkg/include -Wall -Wpointer-arith -Wno-uninitialized
>> -I. -I. -I/usr/include -I/usr/include -I/usr/pkg/include
>> -DSSHDIR=\"/usr/pkg/etc/ssh\"
>> -D_PATH_SSH_PROGRAM=\"/usr/pkg/bin/ssh\"
>> -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/X11R6/bin/ssh-askpass\"
>> -D_PATH_SFTP_SERVER=\"/usr/pkg/libexec/sftp-server\"
>> -D_PATH_SSH_KEY_SIGN=\"/usr/pkg/libexec/ssh-keysign\"
>> -D_PATH_SSH_PIDDIR=\"/var/run\"
>> -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/chroot/sshd\"
>> -DSSH_RAND_HELPER=\"/usr/pkg/libexec/ssh-rand-helper\"
>> -DHAVE_CONFIG_H -c channels.c
>> /var/tmp/ccVP2euc.s: Assembler messages:
>> /var/tmp/ccVP2euc.s:3634: Error: illegal operands `sw'
>> *** Error code 1
>>
>>
>>
>>
>>
>
>
>