[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dbi-dev
Subject:    Follow-up to: DBD::Informix not working on HP-UX/10.20 (works now!)
From:       Graham TerMarsch <gtermars () home ! com>
Date:       1999-01-06 21:40:49
[Download RAW message or body]

    *** From dbi-users -- To unsubscribe, see the end of this message. ***

Well, got some great news.  First, finally managed to get things working. 
Yay!  Second, they're working with DBD::Informix as a _SHARED_ library. 
Wahoo!

Short version is that we ended up pulling out everything related to one of the
multitude of compilers that were installed on the machine, rebuilt Perl from
the ground up (again), and then rebuilt the DBI and DBD::Informix modules as
well.  Note that the information below is provided second-hand; I did not do
the final compilation myself and am working from the notes of the person who
did the installation.

From the notes I was provided from the person who managed to get it to work,
the following changes against the _default_ HP-UX behaviour were made:

- Disabled the standard 'cc' compiler by renaming /usr/ccs/bin/cc to
/usr/ccs/bin/cc.bk and changing the link from /usr/bin/cc to point to
/opt/ansic/bin/cc.  From what I can tell, this compiler is a more recent
version of the HPUX compiler, that's forced to provide ANSI C support (the
default one would complain at times).

Output of '/opt/ansic/bin/cc -V' is as follows:

/usr/ccs/bin/ld: 92453-07 linker linker ld B.10.15 960517
/usr/ccs/bin/ld: Unsatisfied symbols:
   main

- Rebuilt Perl using the '-d' option so that we'd accept all of the default
configuration.  As well, it was made sure that the compiler was forcing ANSI
rules by using the '-Aa' cmd line option.

- DBI and DBD::Informix were then built using the standard 'perl Makefile.PL ;
make ; make test ; make install' commands.

----------------------------------------------------------------------

From what I can see in the minimal use that I've made of this install, it
seems to be working fine.  Connects off to the Informix database just fine,
and we don't have any problems any more with other shared libraries loading.

Output of 'perl -V' follows:

Summary of my perl5 (5.0 patchlevel 4 subversion 4) configuration:
  Platform:
    osname=hpux, osvers=10, archname=PA-RISC1.1
    uname='hp-ux munin b.10.20 a 9000806 951377241 two-user license '
    hint=recommended, useposix=true, d_sigaction=define
    bincompat3=y useperlio=undef d_sfio=undef
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-D_HPUX_SOURCE -Aa -I/usr/local/include'
    ccflags ='-D_HPUX_SOURCE -Aa -I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib/pa1.1 /lib /usr/lib /usr/ccs/lib
    libs=-lnet -lnsl_s -lndbm -ldld -lm -lc -lndir -lcrypt
    libc=/lib/libc.sl, so=sl
    useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-B,deferred '
    cccdlflags='+z', lddlflags='-b -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Built under hpux
  Compiled at Jan  6 1999 08:54:35
  @INC:
    /opt/perl5/lib/PA-RISC1.1/5.00404
    /opt/perl5/lib
    /opt/perl5/lib/site_perl/PA-RISC1.1
    /opt/perl5/lib/site_perl
    .  

-- 
Graham TerMarsch

// -----------------------------------------------------------------
// I want another RE-WRITE on my CEASAR SALAD!!   
// -----------------------------------------------------------------


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dbi
If you are without web access, or if you are having trouble with the web page,
please send mail to dbi-request@fugue.com.   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic