- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- gcc failed on compiling ddd
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
12-30-2002 08:48 AM
12-30-2002 08:48 AM
gcc failed on compiling ddd
I installed gcc from gcc-3.2-sd-11.00.depot and can use this gcc to compile a simple C program. However, when I try to compile a large program like ddd, I get the following errors:
/usr/lib/dld.sl: Can't find path for shared library: libfl.sl
/usr/lib/dld.sl: No such file or directory
make[1]: *** [libreadline.a] IOT trap (core dumped)
make[1]: Leaving directory `/export/home/pli/ddd-3.3.1/readline'
make: *** [all-recursive] Error 1
I also tried to install gcc from this package: gcc-3.2-11.00.64.depot, and also failed (not the same error).
My questions are:
1. What's the difference between those two gcc compilers? Is one 32-bits and another 64-bits? For a 64 bits machine, which one is the right one I should use?
2. Any ideas why the compilation failed?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 09:07 AM
12-30-2002 09:07 AM
Re: gcc failed on compiling ddd
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xba27543254bfd611abdb0090277a778c,00.html
go down to the bottom of the dialogue where they are apecifically talking about libfl.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 09:08 AM
12-30-2002 09:08 AM
Re: gcc failed on compiling ddd
That the OS is 64bit, only indicates it's ability to run 64bit objects.
And - yes - gcc is /not/ able to switch between 32bit objects and 64bit objects. There are two different compilers to generate it.
This might also explain your first problem. gcc - in fact ld, but you don't see - is not able to find libfl.sl. *You* might be able to find it in /usr/lib, or /usr/local/lib, but if you are building 64bit objects, ld will not look there, but search /usr/lib/pa20_64 instead, where the chance of finding that specific library is much smaller.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2002 11:16 AM
12-30-2002 11:16 AM
Re: gcc failed on compiling ddd
In file included from hostname.C:75, from userinfo.C:54:
/usr/include/sys/socket.h:439: syntax error before `(' token
/usr/include/sys/socket.h:441: syntax error before `(' token
make[1]: *** [userinfo.o] Error 1
make[1]: Leaving directory `/export/home/pli/ddd-3.3.1/ddd'
make: *** [all-recursive] Error 1
Any ideas? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2003 06:52 AM
01-02-2003 06:52 AM
Re: gcc failed on compiling ddd
#include "sys/socket.h"
#include
int main (int argc,char *argv[])
{
printf( "Hello \n");
}
$ gcc hello.cc
In file included from hello.cc:1:
/usr/include/sys/socket.h:439: syntax error before `(' token
/usr/include/sys/socket.h:441: syntax error before `(' token
Any body can provide any help??? Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2003 07:04 AM
01-02-2003 07:04 AM
Re: gcc failed on compiling ddd
#include "sys/socket.h"
with
#include
c++ is rather picky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2003 11:05 AM
01-02-2003 11:05 AM
Re: gcc failed on compiling ddd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 03:08 AM
02-05-2003 03:08 AM
Re: gcc failed on compiling ddd
Regards, Z
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 03:48 AM
02-05-2003 03:48 AM
Re: gcc failed on compiling ddd
This message:"cannot find ... libfl.sl" means,
this library could not be found in any of search paths, given to dyn.loader.
so you can:
1.#find / -name libfl.sl
..
/Somedir/libfl.sl
Then: SHLIB_PATH=/Somedir
Then try compilation again.
2.Another possibility:
Look at install scripts and
add compilation option: #gcc -lfl
If you cannot find libfl.sl with "find" -
look for missed related products.
Regards,Stan.