Hello,

I've tried once to use GCC on hpux superdome, and this turn me crazy.
What I've understand (If I well remember, it was about 3 years ago) is
that G++ and HP-UX linker does not fill well together for using dynamic
library ! Perhaps this has been fix yet (don't know).

I've then compiled MICO with --disable-shared to use only static library
(because at the time, dynamic library compiled with G++ on HP-UX does
not have any 'init' routine inside, and then static object was not
initialize when dynamic library was loaded).

When configuring mico, I've done something like this:

CXX=<path to GNU c++ compiler> ./configure --disable-shared
--disable-thread etc, etc and finally suceed !

But the big mess is to compile G++ on HP-UX, not MICO (at the time, I've
found some binary package for HP-UX of G++ but they didn't work), but as
I've said, perhaps this has been fixed now.

Regards

On Mon, 2007-04-02 at 09:03 -0300, Joaquim Oliveira wrote:
> Hi all,
> 
> I'm trying to build MICO-2.3.11 in HP-UX 11.11, using GCC, and found the 
> following problem during ./configure:
> 
> checking for c++... c++
> checking whether the C++ compiler (c++  ) works... no
> configure: error: installation or configuration problem: C++ compiler 
> cannot create executables.
> 
> I saw in config.log that this error occurs because configure is passing 
> an invalid argument to ld command:
> 
> configure:1641: checking whether the C++ compiler (c++  ) works
> configure:1657: c++ -o conftest    conftest.C  1>&5
> /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file 
> (/var/tmp//cc2owOdc.o) was detected. The linked output may not run on a 
> PA 1.x system.
> /usr/ccs/bin/ld: Unrecognized argument: +init
> /usr/ccs/bin/ld: Usage:  /usr/ccs/bin/ld [options] [flags] files
> collect2: ld returned 1 exit status
> configure: failed program was:
> 
> #line 1652 "configure"
> #include "confdefs.h"
> 
> The /usr/ccs dir contains the HP CC embedded compiler and also the ld 
> command. I checked for another ld executable, but there's no one. The 
> following packages were installed in the system:
> 
> -bash-3.2$ ls
> Ignite-UX-11-11_C.7.1.93_HP-UX_B.11.00_32+64.depot  
> make-3.81-hppa-11.11.depot
> bash-3.2-hppa-11.11.depot                           
> ncurses-5.5-hppa-11.11.depot
> core                                                postgresql
> gcc-4.1.1-hppa-11.11.depot                          
> readline-5.2-hppa-11.11.depot
> gettext-0.16.1-hppa-11.11.depot                     
> termcap-1.3.1-hppa-11.11.depot
> libgcc-4.1.1-hppa-11.11.depot                       teste
> libiconv-1.11-hppa-11.11.depot                      
> zlib-1.2.3-hppa-11.11.depot
> 
> Any tips about how to make this work?
> 
> Thanks in advance
> -- 

_______________________________________________
Mico-devel mailing list
Mico-devel@mico.org
http://www.mico.org/mailman/listinfo/mico-devel

Reply via email to