Skip to Content.
Sympa Menu

freetds - Re: [freetds] Installing freetds-1.1.20 on HPUX 11.31

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: todd thompson <toddthomp AT hotmail.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Installing freetds-1.1.20 on HPUX 11.31
  • Date: Tue, 28 Jul 2020 23:29:54 +0000

Hi Frediano,

Thanks for your last response. I wanted to let you know what finally allowed
us to get a successful make was typing the following settings before
executing the make command:

env CC=cc CFLAGS="+DD32 -mt -AC99 +O2 -I/usr/local/include"
LDFLAGS="-L/usr/local/lib/hpux32" ./configure --prefix=/opt/crvsdi/freetds
--with-tdsver=auto --with-libiconv-prefix=/usr/local/lib/hpux32

Thanks,
Todd

________________________________
From: FreeTDS <freetds-bounces+toddthomp=hotmail.com AT lists.ibiblio.org> on
behalf of Frediano Ziglio <freddy77 AT gmail.com>
Sent: Thursday, May 7, 2020 8:49 AM
To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
Subject: Re: [freetds] Installing freetds-1.1.20 on HPUX 11.31

Hi,
se below.

Frediano

Il giorno mer 6 mag 2020 alle ore 19:49 todd thompson
<toddthomp AT hotmail.com> ha scritto:
>
> Hi All,
>
> We used this configure statement: ./configure --prefix=/opt/ictest/freetds
> --with-tdsver=auto
> And we received the following error during the make:
>
>
> ----------------------------------------------------------------------------
>
> opt/ictest/freetds/freetds-1.1.20
>
> s11u013c:freetds/freetds-1.1.20 $ make
>
> No suffix list.
>
> Making all in include
>
> No suffix list.
>
> make all-recursive
>
> No suffix list.
>
> Making all in freetds
>
> No suffix list.
>
> echo '#define FREETDS_SYSCONFDIR "/opt/ictest/freetds/etc"'
> >sysconfdir.h
>
> No suffix list.
>
> Making all in src
>
> No suffix list.
>
> Making all in utils
>
> Making all in .
>
> CC md4.lo
>
> In file included from md4.c:42:
>
> ../../include/tds_sysdep_public.h:62: error: conflicting types for
> 'intptr_t'
>
> /usr/include/sys/_inttypes.h:114: error: previous declaration of 'intptr_t'
> was here
>
> ../../include/tds_sysdep_public.h:63: error: conflicting types for
> 'uintptr_t'
>
> /usr/include/sys/_inttypes.h:115: error: previous declaration of
> 'uintptr_t' was here
>

searching for this issue, try to change in include/tds_sysdep_public.h from

#elif defined(__sun) && defined(__SVR4)

to

#elif (defined(__sun) && defined(__SVR4)) || defined (__HP_cc)

> *** Error exit code 1
>
>
>
> Stop.
>
> *** Error exit code 1
>
>
>
> Stop.
>
> *** Error exit code 1
>
>
>
> Stop.
>
> *** Error exit code 1
>
>
>
> Stop.
>
> ------------------------------------------------------------------------------
>
> I found this explanation on Google:
>
>
> The package you are trying to build (like almost every package you'll
> find) is written in ANSI C. The bundled HP compiler handles only K&R C;
> you need to either purchase the ANSI C compiler for your HP machine, or
> build gcc and its dependencies first.
>

It could happen. Honestly I found strange that cpp (the preprocessor,
at least the
classic executable name for it in Unix) does not have an option for this.

But try with the above patch and let me know.

> If this is accurate, we more than likely won't be able to purchase the ANSI
> C compiler. Do you know how to "build gcc and it's dependencies"?
>

I did once, it takes some times but worked. But it was many years ago,
I would just
search "how to compile gcc under hp-ux". I remember there was also an
open source
repository of compiled programs for hp-ux.
>From a quick search I found
http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-4.2.3/
https://community.hpe.com/t5/languages-and-scripting/how-to-download-gcc/td-p/6899991

> Todd
>
> ________________________________
> From: FreeTDS <freetds-bounces+toddthomp=hotmail.com AT lists.ibiblio.org> on
> behalf of Frediano Ziglio <freddy77 AT gmail.com>
> Sent: Monday, April 27, 2020 10:11 AM
> To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
> Subject: Re: [freetds] Installing freetds-1.1.20 on HPUX 11.31
>
> Il giorno dom 26 apr 2020 alle ore 20:24 todd thompson
> <toddthomp AT hotmail.com> ha scritto:
> >
> > Hi All,
> >
> > The articles I've found in google searches keep pointing to this site
> > (http://www.freetds.org/userguide/) but haven't been able to find
> > something specific for HPUX 11.31 or just HPUX. I've installed freetds on
> > RHEL 6.10 but I've read a couple articles saying the configure statement
> > (i.e. ./configure
> > --prefix=/opt/cloudhost/apache/www/cgi-bin/webutils/freetds
> > with-tdsver=auto) is different so I'm mainly looking for the configure
> > statement because I think the make and make install commands are the same.
> >
> > Thanks ahead of time.
> >
> > Todd
>
> Hi,
> there's nothing special to be done for HP-UX, you should be able to
> use the standard configure/make.
> Somebody reported an issue with the standard preprocessor which is not
> C compatible (neither C89 nor C99), if this is the case use another
> preprocessor/compiler (like gcc).
> For any issue you can report here.
> In the past I had access to HP-UX machine but not anymore (it was
> about 8 years ago).
>
> Regards,
> Frediano
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> https://lists.ibiblio.org/mailman/listinfo/freetds
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> https://lists.ibiblio.org/mailman/listinfo/freetds
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
https://lists.ibiblio.org/mailman/listinfo/freetds



  • Re: [freetds] Installing freetds-1.1.20 on HPUX 11.31, todd thompson, 07/29/2020

Archive powered by MHonArc 2.6.24.

Top of Page