Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.88k stars 531 forks source link

Error Report #8460

Closed p5pRT closed 18 years ago

p5pRT commented 18 years ago

Migrated from rt.perl.org#39195 (status was 'resolved')

Searchable as RT39195$

p5pRT commented 18 years ago

From sriram.madduri@tcs.com

Hi\,

I ran the configure script using the command sh Configure ?Dprefix=/opt/perl and the script got aborted with the following error​:

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 -I/usr/local/include -L/usr/local/lib try.c -lsocket -lnsl -lgdbm -ldbm -lmalloc -ldl -lld -lm -lcrypt -lsec -lc -lucb   ./try

and I got the following output​:

ld​: fatal​: library -ldbm​: not found ld​: fatal​: library -lld​: not found ld​: fatal​: library -lucb​: 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.)

I do not know how to get around this problem. Please advice.

Sriram Madduri Tata Consultancy Services Limited Mailto​: sriram.madduri@​tcs.com Website​: http​://www.tcs.com Phone​: +91-33-2333-9511 =====-----=====-----===== Notice​: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient\, any dissemination\, use\, review\, distribution\, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error\, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you

p5pRT commented 18 years ago

From shouldbedomo@mac.com

On 2006–05–24\, at 13​:17\, sriram.madduri@​tcs.com (via RT) wrote​:

I ran the configure script using the command sh Configure ?Dprefix=/opt/perl and the script got aborted with the following
error​:

Please tell us about your system and the version of perl that you are
trying to build by running three commands in the directory where you
are trying to build perl​:

$ uname -a Darwin Tullamore.local 8.6.0 Darwin Kernel Version 8.6.0​: Tue Mar 7
16​:58​:48 PST 2006; root​:xnu-792.6.70.obj~1/RELEASE_PPC Power
Macintosh powerpc $ gcc --version powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer\, Inc.
build 5341) Copyright (C) 2005 Free Software Foundation\, Inc. This is free software; see the source for copying conditions. There
is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. $ pwd /Users/domo/src/Perl/perl-5.8.8

Just paste the output of the uname -a\, gcc --version and pwd commands
into a reply to this mail.

If you are not using the latest released version of Perl (5.8.8)\, I
suggest that you download it from perl.org and try that. -- Dominic Dunlop

p5pRT commented 18 years ago

The RT System itself - Status changed from 'new' to 'open'

p5pRT commented 18 years ago

From @doughera88

On Wed\, 24 May 2006\, sriram . madduri @​ tcs . com wrote​:

# New Ticket Created by sriram.madduri@​tcs.com # Please include the string​: [perl #39195] # in the subject line of all future correspondence about this issue. # \<URL​: https://rt-archive.perl.org/perl5/Ticket/Display.html?id=39195 >

I ran the configure script using the command sh Configure ?Dprefix=/opt/perl and the script got aborted with the following error​:

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 \-I/usr/local/include 

-L/usr/local/lib try.c -lsocket -lnsl -lgdbm -ldbm -lmalloc -ldl -lld -lm -lcrypt -lsec -lc -lucb ./try

and I got the following output​:

ld​: fatal​: library -ldbm​: not found ld​: fatal​: library -lld​: not found ld​: fatal​: library -lucb​: 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.)

I do not know how to get around this problem. Please advice.

This isn't supposed to happen\, obviously. It's unusual for Configure to pick up libraries that it can't\, in fact\, use. One workaround might be to re-run Configure manually. When it prompts you for the libraries to use\, don't include -ldbm\, -lld\, and -lucb.

However\, such manual workarounds are a sign that Configure didn't do its job correctly. Could you supply us with some more information about your system? The output of 'uname -a' and 'gcc -v' would be helpful for starters. Also\, do you have libraries -ldbm -lld -lucb anywhere where the compiler normally looks? If so\, are those libraries valid?

Thanks\,

--   Andy Dougherty doughera@​lafayette.edu

p5pRT commented 18 years ago

From sriram.madduri@tcs.com

Hi\,

I am writing the outputs for the commands you asked me to execute.

#uname -a SunOS kappa 5.8 Generic_117350-20 sun4u sparc SUNW\,Ultra-2

The commands cc -v and gcc -v are not working. It says cc​: not found or gcc​: not found. But during installation it was working. I can have this problem fixed.

I cannot find libraries -ldbm\, -lld\, and -lucb in the usual places it looks for.

Sriram Madduri Tata Consultancy Services Limited Mailto​: sriram.madduri@​tcs.com Website​: http​://www.tcs.com Phone​: +91-33-2333-9511

"Andy Dougherty via RT" \perlbug\-followup@&#8203;perl\.org 05/25/2006 12​:21 AM Please respond to perlbug-followup@​perl.org

To sriram.madduri@​tcs.com cc

Subject Re​: [perl #39195] Error Report

On Wed\, 24 May 2006\, sriram . madduri @​ tcs . com wrote​:

# New Ticket Created by sriram.madduri@​tcs.com # Please include the string​: [perl #39195] # in the subject line of all future correspondence about this issue. # \<URL​: https://rt-archive.perl.org/perl5/Ticket/Display.html?id=39195 >

I ran the configure script using the command sh Configure ?Dprefix=/opt/perl and the script got aborted with the following error​:

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 \-I/usr/local/include 

-L/usr/local/lib try.c -lsocket -lnsl -lgdbm -ldbm -lmalloc -ldl -lld -lm -lcrypt -lsec -lc -lucb ./try

and I got the following output​:

ld​: fatal​: library -ldbm​: not found ld​: fatal​: library -lld​: not found ld​: fatal​: library -lucb​: 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.)

I do not know how to get around this problem. Please advice.

This isn't supposed to happen\, obviously. It's unusual for Configure to pick up libraries that it can't\, in fact\, use. One workaround might be to re-run Configure manually. When it prompts you for the libraries to use\, don't include -ldbm\, -lld\, and -lucb.

However\, such manual workarounds are a sign that Configure didn't do its job correctly. Could you supply us with some more information about your system? The output of 'uname -a' and 'gcc -v' would be helpful for starters. Also\, do you have libraries -ldbm -lld -lucb anywhere where the

compiler normally looks? If so\, are those libraries valid?

Thanks\,

--   Andy Dougherty doughera@​lafayette.edu

ForwardSourceID​:NT0000F35E =====-----=====-----===== Notice​: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient\, any dissemination\, use\, review\, distribution\, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error\, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you

p5pRT commented 18 years ago

From @smpeters

On Fri\, May 26\, 2006 at 01​:47​:59PM +0530\, sriram.madduri@​tcs.com wrote​:

Hi\,

I am writing the outputs for the commands you asked me to execute.

#uname -a SunOS kappa 5.8 Generic_117350-20 sun4u sparc SUNW\,Ultra-2

The commands cc -v and gcc -v are not working. It says cc​: not found or gcc​: not found. But during installation it was working. I can have this problem fixed.

I cannot find libraries -ldbm\, -lld\, and -lucb in the usual places it looks for.

Before attempting to install Perl from source\, you'll need to install a working C compiler on your system.

Steve Peters steve@​fisharerojo.org

p5pRT commented 18 years ago

From @doughera88

On Fri\, 26 May 2006\, sriram.madduri@​tcs.com wrote​:

Hi\,

I am writing the outputs for the commands you asked me to execute.

#uname -a SunOS kappa 5.8 Generic_117350-20 sun4u sparc SUNW\,Ultra-2

Ok\, that's pretty much what I have here. (I have an Ultra-5_10\, but that shouldn't matter.)

The commands cc -v and gcc -v are not working. It says cc​: not found or gcc​: not found. But during installation it was working. I can have this problem fixed.

It's probably a PATH issue. Configure tries adding various common directories to the shell's PATH environment variable. If you manually adjust your PATH to include the directory where gcc is located (probably /usr/local/bin) then it should work again.

I cannot find libraries -ldbm\, -lld\, and -lucb in the usual places it looks for.

Odd. Very odd. The Solaris hints should have prevented Configure from even looking for -lld and -lucb. I suspect you have a libdbm.a of some sort in some other directory that Configure searched\, though I'm not sure where\, exactly\, that might be.

Could you please run the following and mail me the complete output?

  sh Configure -Dprefix=/opt/perl -Dcc=gcc -dE

I'll look through and see if I can figure out what it's trying to do.

Thanks\,

--   Andy Dougherty doughera@​lafayette.edu

p5pRT commented 18 years ago

From sriram.madduri@tcs.com

Beginning of configuration questions for perl5.

Checking echo to see how to suppress newlines... ...using \c The star should be here-->*

First let's make sure your kit is complete. Checking... Looks good...

Would you like to see the instructions? [n]

Locating common programs... awk is in /usr/bin/awk. cat is in /usr/bin/cat. chmod is in /usr/bin/chmod. comm is in /usr/bin/comm. cp is in /usr/bin/cp. echo is in /usr/bin/echo. expr is in /usr/bin/expr. grep is in /usr/bin/grep. ls is in /usr/bin/ls. mkdir is in /usr/bin/mkdir. rm is in /usr/bin/rm. sed is in /usr/bin/sed. sort is in /usr/bin/sort. touch is in /usr/bin/touch. tr is in /usr/bin/tr. uniq is in /usr/bin/uniq.

Don't worry if any of the following aren't found... I don't see Mcc out there\, offhand. ar is in /usr/ccs/bin/ar. bison is in /usr/local/bin/bison. I don't see byacc out there\, either. cpp is in /usr/local/bin/cpp. csh is in /usr/bin/csh. date is in /usr/bin/date. egrep is in /usr/bin/egrep. I don't see gmake out there\, either. gzip is in /usr/bin/gzip. less is in /usr/bin/less. ln is in /usr/bin/ln. make is in /usr/local/bin/make. more is in /usr/bin/more. nm is in /usr/ccs/bin/nm. nroff is in /usr/bin/nroff. pg is in /usr/bin/pg. test is in /usr/bin/test. uname is in /usr/bin/uname. zip is in /usr/bin/zip. Using the test built into your sh.

Checking compatibility between /usr/bin/echo and builtin echo (if any)... They are compatible. In fact\, they may be identical.

Symbolic links are supported.

Checking how to test for symbolic links... You can test for symbolic links with 'test -h'.

Good\, your tr supports [​:lower​:] and [​:upper​:] to convert case. Using [​:upper​:] and [​:lower​:] to convert case.

First time through\, eh? I have some defaults handy for some systems that need some extra help getting the Configure answers right​:

3b1 dos_djgpp irix_6_0 nonstopux sunos_4_0
aix dynix irix_6_1 openbsd sunos_4_1
aix_3 dynixptx isc opus super-ux
aix_4 epix isc_2 os2 svr4
altos486 esix4 linux os390 svr5
amigaos fps lynxos os400 ti1500
apollo freebsd machten posix-bc titanos
atheos genix machten_2 powerux ultrix_4
aux_3 gnu mint qnx umips
beos gnukfreebsd mips rhapsody unicos
bsdos gnuknetbsd mpc sco unicosmk
convexos greenhills mpeix sco_2_3_0 unisysdynix
cxux hpux ncr_tower sco_2_3_1 utekv
cygwin i386 netbsd sco_2_3_2 uts
darwin interix newsos4 sco_2_3_3 uwin
dcosx irix_4 next_3 sco_2_3_4 vmesa
dec_osf irix_5 next_3_0 solaris_2 vos
dgux irix_6 next_4 stellar

You may give one or more space-separated answers\, or "none" if appropriate. A well-behaved OS will have no hints\, so answering "none" or just "Policy" is a good thing. DO NOT give a wrong version or a wrong OS.

Which of these apply\, if any? [solaris_2]

Configure uses the operating system name and version to set some defaults. The default value is probably right if the name rings a bell. Otherwise\, since spelling matters for me\, either accept the default or answer "none" to leave it blank.

Operating system name? [solaris]

Operating system version? [2.8]

Perl can be built to use the SOCKS proxy protocol library. To do so\, Configure must be run with -Dusesocks. If you use SOCKS you also need to use the PerlIO abstraction layer\, this will be implicitly selected.

If this doesn't make any sense to you\, just accept the default 'n'. Build Perl for SOCKS? [n]

Previous version of perl5 used the standard IO mechanisms as defined in \<stdio.h>. Versions 5.003_02 and later of perl5 allow alternate IO mechanisms via the PerlIO abstraction layer\, but the stdio mechanism is still available if needed. The abstraction layer can use AT&T's sfio (if you already have sfio installed) or regular stdio. Using PerlIO with sfio may cause problems with some extension modules.

If this doesn't make any sense to you\, just accept the default 'y'. Use the PerlIO abstraction layer? [y]

Perl can be built to take advantage of threads on some systems. To do so\, Configure can be run with -Dusethreads.

Note that Perl built with threading support runs slightly slower and uses more memory than plain Perl. The current implementation is believed to be stable\, but it is fairly new\, and so should be treated with caution.

If this doesn't make any sense to you\, just accept the default 'n'. Build a threading Perl? [n]
Your platform has some specific hints regarding threaded builds\, using them...

Perl can be built so that multiple Perl interpreters can coexist within the same Perl executable.

If this doesn't make any sense to you\, just accept the default 'n'. Build Perl for multiplicity? [n]

Hmm... Looks kind of like a USG system with BSD features\, but we'll see...

Congratulations. You aren't running Eunice.

It's not Xenix...

Nor is it Venix... Use which C compiler? [gcc]

Checking for GNU cc in disguise and/or its version number... You are using GNU cc 2.95.2 19991024 (release).

*** WHOA THERE!!! ***

  Your gcc has not been compiled for the exact release of   your operating system (solaris2.6 versus solaris2.8).

  In general it is a good idea to keep gcc synchronized with   the operating system because otherwise serious problems   may ensue when trying to compile software\, like Perl.

  I'm trying to be optimistic here\, though\, and will continue.   If later during the configuration and build icky compilation   problems appear (headerfile conflicts being the most common   manifestation)\, I suggest reinstalling the gcc to match   your operating system release.

Hmm... Doesn't look like a MIPS system.

Now\, how can we feed standard input to your C preprocessor... Maybe "gcc -E" will work... Nope...maybe "gcc -E -" will work... Yup\, it does.

Some systems have incompatible or broken versions of libraries. Among the directories listed in the question below\, please remove any you know not to be holding relevant libraries\, and add any that are needed. Say "none" for none.

Directories to use for library searches? [/usr/local/lib /usr/lib /usr/ccs/lib]

On some systems\, shared libraries may be available. Answer 'none' if you want to suppress searching of shared libraries for the remainder of this configuration.

What is the file extension used for shared libraries? [so]

Perl can be built to take advantage of long doubles which (if available) may give more accuracy and range for floating point numbers.

If this doesn't make any sense to you\, just accept the default 'n'. Try to use long doubles if available? [n]
Your platform has some specific hints regarding long doubles\, using them...

Checking for optional libraries... No -lsfio. Found -lsocket (shared). No -lbind. No -linet. Found -lnsl (shared). No -lnm. No -lndbm. Found -lgdbm (shared). No -ldbm. No -ldb. Found -ldl (shared). No -ldld. No -lsun. Found -lm (shared). No -lutil. Found -lc (shared). No -lcposix. No -lposix. No -lbsd. No -lBSD.

In order to compile perl5 on your machine\, a number of libraries are usually needed. Include any other special libraries here as well. Say "none" for none. The default list is almost always right.

What libraries to use? [-lsocket -lnsl -lgdbm -ldl -lm -lc]

By default\, perl5 compiles with the -O flag to use the optimizer. Alternately\, you might want to use the symbolic debugger\, which uses the -g flag (on traditional Unix systems). Either flag can be specified here. To use neither flag\, specify the word "none".

What optimizer/debugger flag should be used? [-O]

Checking if your compiler accepts -fno-strict-aliasing Yes\, it does.

Checking if your compiler accepts -pipe Yes\, it does. Checking if your compiler accepts -Wdeclaration-after-statement Nope\, it doesn't\, but that's ok.

Your C compiler may want other flags. For this question you should include -I/whatever and -DWHATEVER flags and any other flags used by the C compiler\, but you should NOT include libraries or ld flags like -lwhatever. If you want perl5 to honor its debug switch\, you should include -DDEBUGGING here. Your C compiler might also need additional flags\, such as -D_POSIX_SOURCE.

To use no flags\, specify the word "none".

Any additional cc flags? [-fno-strict-aliasing -pipe -I/usr/local/include]

Let me guess what the preprocessor flags are... They appear to be​: -fno-strict-aliasing -pipe -I/usr/local/include

Your C linker may need flags. For this question you should include -L/whatever and any other flags used by the C linker\, but you should NOT include libraries like -lwhatever.

Make sure you include the appropriate -L/path flags if your C linker does not normally search all of the directories you specified above\, namely   /usr/local/lib /usr/lib /usr/ccs/lib To use no flags\, specify the word "none".

Any additional ld flags (NOT including libraries)? [ -L/usr/local/lib]

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 -I/usr/local/include -L/usr/local/lib try.c -lsocket -lnsl -lgdbm -ldl -lm -lc   ./try

and I got the following output​:

ld.so.1​: ./try​: fatal​: libgdbm.so.2​: open failed​: No such file or directory Killed The program compiled OK\, but exited with status 137. (The supplied flags or libraries might be incorrect.)

You have a problem. Shall I abort Configure [y]
Ok. Stopping Configure.

p5pRT commented 18 years ago

From @doughera88

On Mon\, 29 May 2006\, sriram.madduri@​tcs.com wrote​:

[ Configure log ]

Two things jump out at me​:

1. Look at this warning​:

Use which C compiler? [gcc]

Checking for GNU cc in disguise and/or its version number... You are using GNU cc 2.95.2 19991024 (release).

*** WHOA THERE!!! ***

Your gcc has not been compiled for the exact release of
your operating system \(solaris2\.6 versus solaris2\.8\)\.

In general it is a good idea to keep gcc synchronized with
the operating system because otherwise serious problems
may ensue when trying to compile software\, like Perl\.

I'm trying to be optimistic here\, though\, and will continue\.
If later during the configuration and build icky compilation
problems appear \(headerfile conflicts being the most common
manifestation\)\, I suggest reinstalling the gcc to match
your operating system release\.

I don't know if that's the source of your problem or not.

Directories to use for library searches? [/usr/local/lib /usr/lib /usr/ccs/lib]

That looks very normal.

Checking for optional libraries... No -lsfio. Found -lsocket (shared). No -lbind. No -linet. Found -lnsl (shared). No -lnm. No -lndbm. Found -lgdbm (shared).

It found libgdbm somewhere in those directories. Can you figure out which directory and which file it found? Then\, can you verify that it is indeed a valid shared library?

No -ldbm. No -ldb. Found -ldl (shared). No -ldld. No -lsun. Found -lm (shared). No -lutil. Found -lc (shared). No -lcposix. No -lposix. No -lbsd. No -lBSD.

In order to compile perl5 on your machine\, a number of libraries are usually needed. Include any other special libraries here as well. Say "none" for none. The default list is almost always right.

What libraries to use? [-lsocket -lnsl -lgdbm -ldl -lm -lc]

[ . . . ]

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 \-I/usr/local/include \-L/usr/local/lib try\.c \-lsocket \-lnsl \-lgdbm \-ldl \-lm \-lc
 \./try

and I got the following output​:

ld.so.1​: ./try​: fatal​: libgdbm.so.2​: open failed​: No such file or directory Killed The program compiled OK\, but exited with status 137. (The supplied flags or libraries might be incorrect.)

You have a problem. Shall I abort Configure [y]
Ok. Stopping Configure.

Ah\, I think I know what it is -- I'll bet you have /usr/local/lib/libgdbm.so.2\, but don't have /usr/local/lib in your LD_LIBRARY_PATH environment variable.

If that's so\, then you need to either include -R/usr/local/lib along with the -L/usr/local/lib\, or you need to include /usr/local/lib in your LD_LIBRARY_PATH environment variable.

Try that out and see if it helps.

--   Andy Dougherty doughera@​lafayette.edu

p5pRT commented 18 years ago

From sriram.madduri@tcs.com

Andy\,

I could install PERL successfully. Thanks for the help. Yes\, I missed the LD_LIBRARY_PATH environment variable. The work got delayed because of some networking issues we had over the past week\, hence I could not give you any feedback on our progress.

Thanks again.

Sriram Madduri Tata Consultancy Services Limited Mailto​: sriram.madduri@​tcs.com Website​: http​://www.tcs.com +91-33-2333-9511

Andy Dougherty \doughera@&#8203;lafayette\.edu 05/31/2006 02​:20 AM

To sriram.madduri@​tcs.com cc perlbug-followup@​perl.org Subject Re​: [perl #39195] Error Report

On Mon\, 29 May 2006\, sriram.madduri@​tcs.com wrote​:

[ Configure log ]

Two things jump out at me​:

1. Look at this warning​:

Use which C compiler? [gcc]

Checking for GNU cc in disguise and/or its version number... You are using GNU cc 2.95.2 19991024 (release).

*** WHOA THERE!!! ***

Your gcc has not been compiled for the exact release of
your operating system \(solaris2\.6 versus solaris2\.8\)\.

In general it is a good idea to keep gcc synchronized with
the operating system because otherwise serious problems
may ensue when trying to compile software\, like Perl\.

I'm trying to be optimistic here\, though\, and will continue\.
If later during the configuration and build icky compilation
problems appear \(headerfile conflicts being the most common
manifestation\)\, I suggest reinstalling the gcc to match
your operating system release\.

I don't know if that's the source of your problem or not.

Directories to use for library searches? [/usr/local/lib /usr/lib /usr/ccs/lib]

That looks very normal.

Checking for optional libraries... No -lsfio. Found -lsocket (shared). No -lbind. No -linet. Found -lnsl (shared). No -lnm. No -lndbm. Found -lgdbm (shared).

It found libgdbm somewhere in those directories. Can you figure out which directory and which file it found? Then\, can you verify that it is indeed a valid shared library?

No -ldbm. No -ldb. Found -ldl (shared). No -ldld. No -lsun. Found -lm (shared). No -lutil. Found -lc (shared). No -lcposix. No -lposix. No -lbsd. No -lBSD.

In order to compile perl5 on your machine\, a number of libraries are usually needed. Include any other special libraries here as well. Say "none" for none. The default list is almost always right.

What libraries to use? [-lsocket -lnsl -lgdbm -ldl -lm -lc]

[ . . . ]

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 

-I/usr/local/include -L/usr/local/lib try.c -lsocket -lnsl -lgdbm -ldl -lm -lc ./try

and I got the following output​:

ld.so.1​: ./try​: fatal​: libgdbm.so.2​: open failed​: No such file or directory Killed The program compiled OK\, but exited with status 137. (The supplied flags or libraries might be incorrect.)

You have a problem. Shall I abort Configure [y] Ok. Stopping Configure.

Ah\, I think I know what it is -- I'll bet you have /usr/local/lib/libgdbm.so.2\, but don't have /usr/local/lib in your LD_LIBRARY_PATH environment variable.

If that's so\, then you need to either include -R/usr/local/lib along with the -L/usr/local/lib\, or you need to include /usr/local/lib in your LD_LIBRARY_PATH environment variable.

Try that out and see if it helps.

--   Andy Dougherty doughera@​lafayette.edu

ForwardSourceID​:NT0000F6D6 =====-----=====-----===== Notice​: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient\, any dissemination\, use\, review\, distribution\, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error\, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you

p5pRT commented 18 years ago

@doughera88 - Status changed from 'open' to 'resolved'