cancel
Showing results for 
Search instead for 
Did you mean: 

mutt on HPUX 10.20

Mr GUENIER
Advisor

mutt on HPUX 10.20

Hello,

 

My configuration : HP9000 D390 with HPUX 10.20

 

I have installed gcc version 2.95.2. I try to compile mutt version 1.2.5 from source.

I get the following message :  error 1052: Directive name not recognized.

I have searched on web. It seems to be a problem with the "linker" program used with gcc.

 

Can someone help me resolve this issue ??

 

Thanks.

 

Laurent.

 

 

19 REPLIES
Patrick Wallek
Honored Contributor

Re: mutt on HPUX 10.20

Did you get all of the dependencies required for MUTT?

 

According to http://hpux.connect.org.uk/hppd/hpux/Networking/Mail/mutt-1.5.21/ the build time dependencies for MUTT are:  gettext, libiconv, libidn, make and ncurses.

 

 

 

Mr GUENIER
Advisor

Re: mutt on HP-UX 10.20

Hello Dennis,

 

I am not a specialist for compiling process on hpux.

 

Can I install the package binutils-2.9.1-1-10.20.sd with the version of gcc I have installed gcc-2.95.2-sd-10.20.depot ?

After I will be able to compile mutt ?

Could you help me.

 

Thanks.

 

Laurent.

 

 

 

 

Dennis Handly
Acclaimed Contributor

Re: mutt on HP-UX 10.20

>Can I install the package binutils-2.9.1-1-10.20.sd?

 

I would suggest you try.  I don't know if the version numbering is suppose to be consistent between the two?

Mr GUENIER
Advisor

Re: mutt on HP-UX 10.20

Hello Denis,

 

I have installed slang and binutils.

I launch this command :    ./configure --prefix=/opt/mutt-1.2.5 --with-slang=/usr

 

I have attached the config.log.


Could you help me ?

 

 

Thanks.

 

Laurent.

 

 

Dennis Handly
Acclaimed Contributor

Re: mutt on HP-UX 10.20

>I have attached the config.log.

 

It is useless to look at this file unless you have a particular error in question.

Is your initial assembler error gone?

Mr GUENIER
Advisor

Re: mutt on HP-UX 10.20

Yes, I have created a link in /usr/ccs/bin for as pointed to /usr/local/bin/as (binutil version).

When I launche "as -v" I got :

 

GNU assembler version 2.9.1 (hppa1.1-hp-hpux10.20), using BFD version 2.9.1

So I think it is ok for assembler issue.

 

 

Dennis Handly
Acclaimed Contributor

Re: mutt on HP-UX 10.20

>I have created a link in /usr/ccs/bin for as pointed to /usr/local/bin/as (binutil version).

 

Ack!  You should NOT be replacing HP's as(1) by a foreign devil version.  Just change your PATH so the one in /usr/local/bin/ is used.

Mr GUENIER
Advisor

Re: mutt on HP-UX 10.20

how can I do that because /usr/local/bin is in PATH !!

 

 

Dennis Handly
Acclaimed Contributor

Re: mutt on HP-UX 10.20

>how can I do that because /usr/local/bin is in PATH.

 

Is it before both /usr/ccs/bin and /usr/bin?

Mr GUENIER
Advisor

Re: mutt on HP-UX 10.20

echo $PATH

 

/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/pd/bin:/
usr/bin/X11:/usr/contrib/bin/X11:/opt/upgrade/bin:/opt/hparray/bin:/opt/resmon/b
in:/opt/pred/bin:/opt/hpnp//bin:/opt/ignite/bin:/opt/perf/bin:/opt/OV/bin/OpC:/o
pt/perl5/bin:/opt/lynx/bin:/opt/hpnpl//bin:/opt/gcc/bin:/usr/local/bin/:/sbin:/u
sr/local/bin:/opt/openssh/bin:/usr/local/mysql/bin:/var/dlc73e/bin

after.

Dennis Handly
Acclaimed Contributor

Re: mutt on HP-UX 10.20

>/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin: ...

 

So before you attempt to build mutt you should manually change PATH to:

PATH=/usr/local/bin:$PATH

Mr GUENIER
Advisor

Re: mutt on HP-UX 10.20

When I change PATH with your information and reput the original as program in /usr/ccs/bin, I got this with configure command :

 

/disk12/mutt-1.2.5#./configure --prefix=/opt/mutt-1.2.5 --with-slang=/usr
creating cache ./config.cache
checking for a BSD compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking host system type... hppa2.0-hp-hpux10.20
checking for prefix... /opt/mutt-1.2.5
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot creat
e executables.

Dennis Handly
Acclaimed Contributor

Re: mutt on HP-UX 10.20

>configure: error: installation or configuration problem: C compiler cannot create executables.

 

Do you have a config.log for that?

Mr GUENIER
Advisor

Re: mutt on HP-UX 10.20

yes.

 

 

Dennis Handly
Acclaimed Contributor

Re: mutt on HP-UX 10.20

>configure:1013: gcc -o conftest    conftest.c  1>&5
>as: "/var/tmp/ccUYU7md.s", line 16: error 1052: Directive name not recognized - NSUBSPA

Ok, it looks like you are stuck with a broken gcc that wants to use /usr/ccs/bin/as.  I suppose there may be a gcc option that tells you the path to as(1)?

 

Otherwise use your kludge put the gas version there.

Mr GUENIER
Advisor

Re: mutt on HP-UX 10.20

Can I replace the original "as" by the gnu "as" or create a link to it ?? What is the best solution ?

 

 I think the path of "as" is "hard coded" in my gnu version (/usr/ccs/bin).

Dennis Handly
Acclaimed Contributor

Re: mutt on HP-UX 10.20

>Can I replace the original "as" by the gnu "as" or create a link to it?

I would suggest you rename the original as(1) and then create a symlink to the Gnu version.  (You will get swverify errors after you do this.)

 

>I think the path of "as" is "hard coded"

 

It looks that way, if you have changed PATH properly and it still failed.

H.Merijn Brand (procura
Honored Contributor

Re: mutt on HP-UX 10.20

You could also try gcc-3.4.6 or gcc-4.1.1 from my site that has a lot of (more recent) open-source depots for HP-UX 10.20

Note that gcc-4 was not able to producre a running perl5 on HP-UX

Enjoy, Have FUN! H.Merijn