- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- ld: Unsatisfied symbol
Operating System - Linux
1753878
Members
7142
Online
108809
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2007 05:10 PM
тАО05-30-2007 05:10 PM
ld: Unsatisfied symbol
while trying to make our application exe's i am getting unsatisfied symbol.
here is the linker, compiler flag and the make command.
CFLAGS=+DD32 -Aa +z -I../include -I$(ODL)/include -I$(SYBASE)/ASE-15_0/include -I/pkg1/sybase_base/OCS-15_0/include $(DEBUG) -lc
LPATH= LPATH=../bin:$(ODL)/bin:$(SYBASE)/OCS-15_0/lib:/lib:/usr/lib/hpux32
../bin/libnewfab.sl : $(OBJS)
$(LPATH) ld -b -E +s $(OBJS) \
-lsybdb -lodlsyb -lcurses -lmont -o $@
../bin/fabrpt : fabrpt.c
$(LPATH) cc $(CFLAGS) fabrpt.c \
-lnewfab -lods -lpctl -lpkts -lcom -ltools -lodlsyb -lsybdb -lmont \
-ldld -Wl,+s -o $@
and i am getting 62 error stating unsatisfied symbols
ld: Unsatisfied symbol "mtraceSqlLogger" in file fabrpt.o
ld: Unsatisfied symbol "WorkList" in file fabrpt.o
ld: Unsatisfied symbol "TempDb" in file fabrpt.o
ld: Unsatisfied symbol "stRender" in file fabrpt.o
ld: Unsatisfied symbol "ItemFileSize" in file fabrpt.o
ld: Unsatisfied symbol "sno" in file fabrpt.o
ld: Unsatisfied symbol "dbbind" in file fabrpt.o
ld: Unsatisfied symbol "GetSubrName" in file fabrpt.o
ld: Unsatisfied symbol "xmlOrdrNbr" in file fabrpt.o
ld: Unsatisfied symbol "mtraceInitMain" in file fabrpt.o
ld: Unsatisfied symbol "retCode" in file fabrpt.o
ld: Unsatisfied symbol "strcmpi" in file fabrpt.o
i hope we are properly linking the lib which we make as part of this make.
Please help me in this regard.
here is the linker, compiler flag and the make command.
CFLAGS=+DD32 -Aa +z -I../include -I$(ODL)/include -I$(SYBASE)/ASE-15_0/include -I/pkg1/sybase_base/OCS-15_0/include $(DEBUG) -lc
LPATH= LPATH=../bin:$(ODL)/bin:$(SYBASE)/OCS-15_0/lib:/lib:/usr/lib/hpux32
../bin/libnewfab.sl : $(OBJS)
$(LPATH) ld -b -E +s $(OBJS) \
-lsybdb -lodlsyb -lcurses -lmont -o $@
../bin/fabrpt : fabrpt.c
$(LPATH) cc $(CFLAGS) fabrpt.c \
-lnewfab -lods -lpctl -lpkts -lcom -ltools -lodlsyb -lsybdb -lmont \
-ldld -Wl,+s -o $@
and i am getting 62 error stating unsatisfied symbols
ld: Unsatisfied symbol "mtraceSqlLogger" in file fabrpt.o
ld: Unsatisfied symbol "WorkList" in file fabrpt.o
ld: Unsatisfied symbol "TempDb" in file fabrpt.o
ld: Unsatisfied symbol "stRender" in file fabrpt.o
ld: Unsatisfied symbol "ItemFileSize" in file fabrpt.o
ld: Unsatisfied symbol "sno" in file fabrpt.o
ld: Unsatisfied symbol "dbbind" in file fabrpt.o
ld: Unsatisfied symbol "GetSubrName" in file fabrpt.o
ld: Unsatisfied symbol "xmlOrdrNbr" in file fabrpt.o
ld: Unsatisfied symbol "mtraceInitMain" in file fabrpt.o
ld: Unsatisfied symbol "retCode" in file fabrpt.o
ld: Unsatisfied symbol "strcmpi" in file fabrpt.o
i hope we are properly linking the lib which we make as part of this make.
Please help me in this regard.
- Tags:
- unsat
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2007 07:54 PM
тАО05-30-2007 07:54 PM
Re: ld: Unsatisfied symbol
Where do you think these symbols are defined?
If your libs are archives, you may have to use -Wl,+n or reorder them. This occurs if -lmont needs a symbol from -lnewfab.
If your libs are archives, you may have to use -Wl,+n or reorder them. This occurs if -lmont needs a symbol from -lnewfab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2007 02:59 AM
тАО05-31-2007 02:59 AM
Re: ld: Unsatisfied symbol
These symbols are availble in libnewfab.sl which is part of our Make file.
lmont and lnewfab are present in same dir. Still we are getting this problem.
thanks for your comments.
lmont and lnewfab are present in same dir. Still we are getting this problem.
thanks for your comments.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2007 07:51 AM
тАО05-31-2007 07:51 AM
Re: ld: Unsatisfied symbol
>These symbols are availble in libnewfab.sl
If this is a shlib, there is no ordering problem.
So you need to prove those symbols are in your shlib and you didn't hide them.
$ elfdump -n .dynsym -s libnewfab.sl | fgrep -e mtraceSqlLogger -e WorkList
>$(LPATH) ld -b -E +s $(OBJS) \
Note: you should NOT be using LPATH. This is reserved for the compiler driver and emergencies. You should simply pass in multiple -L options.
Use: LIBS=-L../bin -L$(ODL)/bin -L$(SYBASE)/OCS-15_0/lib
And add this macro before your -l libs.
If this is a shlib, there is no ordering problem.
So you need to prove those symbols are in your shlib and you didn't hide them.
$ elfdump -n .dynsym -s libnewfab.sl | fgrep -e mtraceSqlLogger -e WorkList
>$(LPATH) ld -b -E +s $(OBJS) \
Note: you should NOT be using LPATH. This is reserved for the compiler driver and emergencies. You should simply pass in multiple -L options.
Use: LIBS=-L../bin -L$(ODL)/bin -L$(SYBASE)/OCS-15_0/lib
And add this macro before your -l libs.
- Tags:
- elfdump
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP