Solaris 10 gcc 3.4.6 perl compile error HELP!



I am tring to compile Perl 5.8.8 on a Solaris 10 box with gcc 3.4.6
and am getting this error. I am at a total loss, So if someone could
point me to a resource or in the right direction that would be
GREAT!!!!!

thanks
-mancat



Checking your choice of C compiler and flags for coherency...
I've tried to compile and run the following simple program:

#include <stdio.h>
int main() { printf("Ok\n"); return(0); }

I used the command:

gcc -o try -O -fno-strict-aliasing -pipe -Wdeclaration-after-
statement -I/usr/local/include -L/usr/local/lib try.c -lsocket -lnsl -
lgdbm -ldb -ldl -lm -lc
./try

and I got the following output:

ld: fatal: library -ldb: not found
ld: fatal: File processing errors. No output written to try
collect2: ld returned 1 exit status
I can't compile the test program.
(The supplied flags or libraries might be incorrect.)

.



Relevant Pages

  • Re: configure problem
    ... > I can't compile the test program. ... > (The supplied flags or libraries might be incorrect.) ... alter the various db libraries in such a way that it takes something short ...
    (comp.lang.perl.misc)
  • Re: glib20
    ... *** Could not run GLIB test program, ... *** The test program failed to compile or link. ... *** exact error that occured. ... *** Could not run ORBIT test program, ...
    (freebsd-questions)
  • Re: Solaris 10 gcc 3.4.6 perl compile error HELP!
    ... point me to a resource or in the right direction that would be ... I can't compile the test program. ... (The supplied flags or libraries might be incorrect.) ...
    (comp.lang.perl.misc)
  • How do I Compile from command line instead of inside Visual C++ 2005?
    ... Now my question is can I compile from the command line? ... I tried going to the directory where my test program "testsdk.cpp" ... Windows NT 5.0 and Windows 98 features. ... For this release when WINVER is defined as 0x0500 or greater, ...
    (microsoft.public.vc.ide_general)
  • how to set include path for boost library
    ... When I compile a test program using ... But I did modifty djgpp.env to add boost include path ... setting in djgpp seems to be wrong. ...
    (comp.os.msdos.djgpp)