[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Symbol referencing errors while gmake
From: |
Greg Chicares |
Subject: |
Re: Symbol referencing errors while gmake |
Date: |
Fri, 06 Apr 2007 23:15:15 +0000 |
User-agent: |
Thunderbird 1.5.0.10 (Windows/20070221) |
On 2007-4-6 22:39 UTC, Swaroop Sugunan wrote:
>
> We are getting the following error while trying to build the software
> using gmake.
>
> CC -mt -i -xarch=amd64 -o ../../../unixshared/bin/solarisx64/CPpwdPlugin
> CPpwdAgent.o unix.o Service.o -L../../../unixshared/lib/solarisx64
> -L../../../unixshared/bin/solarisx64
...
> -lpthread -lsocket -lnsl -lxnet -ldl -g
Copy and paste that command into a shell; presumably
you'll see it fail in the same way.
This error message comes from the linker, not 'make':
> Undefined first referenced
> symbol in file
> fdatasync
> ../../../ExternalAPIs/Sleepycat/solarisx64/lib/libdb.a(os_fsync.o)
> ld: fatal: Symbol referencing errors. No output written to
> ../../../unixshared/bin/solarisx64/CPpwdPlugin
The linker is trying to find 'fdatasync', but it cannot.
You need to link the library in which your system provides
'fdatasync': apparently 'libdb.a' depends on it.
'make' just passes commands to a shell. All 'make' knows
is that the command failed:
> gmake[2]: *** [../../../unixshared/bin/solarisx64/CPpwdPlugin] Error 1