* RE: fatal: unknown file type
@ 2005-01-06 3:38 Vijayprasad Srinivasan - NPD, Chennai
0 siblings, 0 replies; 2+ messages in thread
From: Vijayprasad Srinivasan - NPD, Chennai @ 2005-01-06 3:38 UTC (permalink / raw)
To: Madani, Srikanth, VF-DE, help-make, bug-make, gcc-help
Cc: Venkat N - NPD, Chennai
Hi All,
Following is the final linking command seen in the console:
g++ -shared -Wl,-hlibpegcommon.so -Xlinker -rpath -Xlinker
/export/home/pegasus_home/lib
-L/export/home/pegasus_home/lib -o
/export/home/pegasus_home/lib/libpegcommon.so
/export/home/pegasus_home/obj/Pegasus/Common/AnonymousPipe.o
/export/home/pegasus_home/obj/Pegasus/Common/Array.o
/export/home/pegasus_home/obj/Pegasus/Common/AsyncOpNode.o
/export/home/pegasus_home/obj/Pegasus/Common/AuthenticationInfoRep.o
/export/home/pegasus_home/obj/Pegasus/Common/AutoStreamer.o
ld: fatal: file /export/home/venkatnn/pegasus_home/lib: unknown file type
ld: fatal: File processing errors. No output written to
/export/home/venkatnn/pegasus_home/lib/libpegcommon.so
collect2: ld returned 1 exit status
make: *** [/export/home/venkatnn/pegasus_home/lib/libpegcommon.so] Error 1
my make file consists of link arguments as
LINK_ARGUMENTS = -Wl,-hlib$(LIBRARY)$(LIB_SUFFIX) -Xlinker -rpath -Xlinker
$(LIB_DIR) $(EXTRA_LINK_ARGUMENTS)
LIB_DIR points to LD_LIBRARY_PATH
EXTRA_LINK_ARGUMENTS to add any extra includes of libraries.
Regards,
Vijayprasad Srinivasan, NPD - Chennai
HCL Technologies.
-----Original Message-----
From: Madani, Srikanth, VF-DE [mailto:Srikanth.Madani@vodafone.com]
Sent: Wednesday, January 05, 2005 7:01 PM
To: Vijayprasad Srinivasan - NPD, Chennai; help-make@gnu.org
Subject: RE: fatal: unknown file type
Hi Vijayprasad,
> ld: fatal: file /export/home/pegasus_home/lib: unknown file type
The link editor was passed an argument which was not a library.
I guess a "-L" prefix was missed in front of
/export/home/pegasus_home/lib.
Perhaps you can post the final linking command?
Cheers,
Srikanth Madani
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: fatal: unknown file type
@ 2005-01-06 17:27 lrtaylor
0 siblings, 0 replies; 2+ messages in thread
From: lrtaylor @ 2005-01-06 17:27 UTC (permalink / raw)
To: vijayprasads, Srikanth.Madani, help-make, bug-make, gcc-help; +Cc: venkatnn
Try replacing
-Xlinker -rpath -Xlinker /export/home/pegasus_home/lib
with this
-Wl,-rpath,/export/home/pegasus_home/lib
It sounds like they should translate to the same thing, but this has
always worked for me.
Thanks,
Lyle
-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of Vijayprasad Srinivasan - NPD, Chennai
Sent: Wednesday, January 05, 2005 8:38 PM
To: Madani, Srikanth, VF-DE; help-make@gnu.org; bug-make@gnu.org;
gcc-help@gcc.gnu.org
Cc: Venkat N - NPD, Chennai
Subject: RE: fatal: unknown file type
Hi All,
Following is the final linking command seen in the console:
g++ -shared -Wl,-hlibpegcommon.so -Xlinker -rpath -Xlinker
/export/home/pegasus_home/lib
-L/export/home/pegasus_home/lib -o
/export/home/pegasus_home/lib/libpegcommon.so
/export/home/pegasus_home/obj/Pegasus/Common/AnonymousPipe.o
/export/home/pegasus_home/obj/Pegasus/Common/Array.o
/export/home/pegasus_home/obj/Pegasus/Common/AsyncOpNode.o
/export/home/pegasus_home/obj/Pegasus/Common/AuthenticationInfoRep.o
/export/home/pegasus_home/obj/Pegasus/Common/AutoStreamer.o
ld: fatal: file /export/home/venkatnn/pegasus_home/lib: unknown file
type
ld: fatal: File processing errors. No output written to
/export/home/venkatnn/pegasus_home/lib/libpegcommon.so
collect2: ld returned 1 exit status
make: *** [/export/home/venkatnn/pegasus_home/lib/libpegcommon.so] Error
1
my make file consists of link arguments as
LINK_ARGUMENTS = -Wl,-hlib$(LIBRARY)$(LIB_SUFFIX) -Xlinker -rpath
-Xlinker
$(LIB_DIR) $(EXTRA_LINK_ARGUMENTS)
LIB_DIR points to LD_LIBRARY_PATH
EXTRA_LINK_ARGUMENTS to add any extra includes of libraries.
Regards,
Vijayprasad Srinivasan, NPD - Chennai
HCL Technologies.
-----Original Message-----
From: Madani, Srikanth, VF-DE [mailto:Srikanth.Madani@vodafone.com]
Sent: Wednesday, January 05, 2005 7:01 PM
To: Vijayprasad Srinivasan - NPD, Chennai; help-make@gnu.org
Subject: RE: fatal: unknown file type
Hi Vijayprasad,
> ld: fatal: file /export/home/pegasus_home/lib: unknown file type
The link editor was passed an argument which was not a library.
I guess a "-L" prefix was missed in front of
/export/home/pegasus_home/lib.
Perhaps you can post the final linking command?
Cheers,
Srikanth Madani
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-01-06 17:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-06 3:38 fatal: unknown file type Vijayprasad Srinivasan - NPD, Chennai
2005-01-06 17:27 lrtaylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).