Guest neckhead Posted May 26, 2005 Report Share Posted May 26, 2005 Hi, I'm trying to compile a program that contains calls to 'strlcpy', but g++(and gcc) complain the the function is 'undeclared'. Obviously there is something missing on my Linux installation (FC3). Can anybody tell me which library/package in need to install that contains this function? Any help would be greatly appreciated, neckhead [moved from Terminal Shell Commands, etc by spinynorman - welcome aboard :)] Quote Link to comment Share on other sites More sharing options...
jlc Posted May 26, 2005 Report Share Posted May 26, 2005 What is the name of the program you are trying to compile? What is the last say 10-20 lines of the compiler code that is in error? THis might not work for you or give you different programs (I run rawhide) yum provides strlcpy net-snmp-debuginfo.x86_64 5.2.1-12 development Matched from: /usr/src/debug/net-snmp-5.2.1/snmplib/strlcpy.c openssh-debuginfo.x86_64 4.0p1-3 development Matched from: /usr/src/debug/openssh-4.0p1/openbsd-compat/strlcpy.c php-debuginfo.x86_64 5.0.4-10 development Matched from: /usr/src/debug/php-5.0.4/main/strlcpy.c inn-debuginfo.x86_64 2.4.2-3 development Matched from: /usr/src/debug/inn-2.4.2/lib/strlcpy.c netatalk-debuginfo.x86_64 3:2.0.2-3 development Matched from: /usr/src/debug/netatalk-2.0.2/libatalk/util/strlcpy.c pax-debuginfo.x86_64 3.0-11 development Matched from: /usr/src/debug/pax-3.0/lib/strlcpy.c krbafs-debuginfo.x86_64 1.2.2-7 development Matched from: /usr/src/debug/krb4-1.2.2/appl/afsutil/strlcpy.c /usr/src/debug/krb4-1.2.2/lib/krbafs/strlcpy.c krbafs-debuginfo.x86_64 1.2.2-7 development Matched from: /usr/src/debug/krb4-1.2.2/appl/afsutil/strlcpy.c /usr/src/debug/krb4-1.2.2/lib/krbafs/strlcpy.c This probably really depends on "what" you are trying to install and also what does yum provides gives you back for fc3. Quote Link to comment Share on other sites More sharing options...
Guest neckhead Posted May 27, 2005 Report Share Posted May 27, 2005 I grabbed two files from the OpenBSD FTP site: strlcpy.c and strlcat.c. This basically solved my problem. P.S. Thanks for the reply Quote Link to comment Share on other sites More sharing options...
jlc Posted May 27, 2005 Report Share Posted May 27, 2005 I grabbed two files from the OpenBSD FTP site: strlcpy.c and strlcat.c. This basically solved my problem. P.S. Thanks for the reply <{POST_SNAPBACK}> Thats good, but did you try the "yum provides" ? Just curious what the output was. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.