Sponsored Content
Top Forums Programming Error: Undefined Symbol ..... First referenced in file...... Post 302245420 by smartgupta on Friday 10th of October 2008 05:17:44 AM
Old 10-10-2008
Error: ld: fatal: Symbol referencing errors. No output written to server

Hi,
I am working with Solaris 5.9 and I am newbie in Socket programming and I stated working with socket programming and I copyed a simple client & server program from a website which I am attaching with this and when I am compiling these files.I am getting the error--

Quote:
# gcc server.c -o server
Undefined first referenced
symbol in file
socket /var/tmp//ccmoWk0x.o
accept /var/tmp//ccmoWk0x.o
bind /var/tmp//ccmoWk0x.o
listen /var/tmp//ccmoWk0x.o
ld: fatal: Symbol referencing errors. No output written to server
collect2: ld returned 1 exit status
Please Help me to solve it SmilieSmilieSmilieSmilie

Thanks in Advance ....

Last edited by smartgupta; 10-10-2008 at 07:12 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

referenced symbol not found, how to solve?

while trying to execute an application, i encountered thefollowing error: ld.so.1: myApplication : fatal: relocation error: file /opt/oracle/oradb/lib/libHotDB50.so: symbol sqlcxt: referenced symbol not found my questions : 1) what is relocation error? 2) why this error occur? 3) how... (4 Replies)
Discussion started by: champion
4 Replies

2. Programming

ld: 0711-317 ERROR: Undefined symbol: .hello

Hello, when i compile with xlc on aix i got the error message "ld: 0711-317 ERROR: Undefined symbol: .hello" dummy.pc: #include <stdio.h> #include <stdlib.h> #include <string.h> #include "dummy.h" int main ( ) { printf("\nbefore Hello"); hello(); printf("\npast Hello"); ... (2 Replies)
Discussion started by: stockdan
2 Replies

3. Programming

shared object "undefined symbol: fstat" error

Didn't have this problem in AIX, but ported to Linux with GCC compiler and am now getting a runtime error: tssutil: symbol lookup error: /work/agility/devel/bin/libagam.so: undefined symbol: fstat I'm sure most of you know that fstat is an intrinsic function just like printf, memcpy, etc. When I... (5 Replies)
Discussion started by: marcus121
5 Replies

4. AIX

Getting error "Undefined symbol: .u_strlen_2_6"

Hi, I am using xlC compiler. The compilation goes fine but at the time of linking it gives the following error ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. ld: 0711-317 ERROR: Undefined symbol: .u_strlen_2_6 ld: 0711-317 ERROR: Undefined symbol:... (0 Replies)
Discussion started by: nachiketv
0 Replies

5. Programming

undefined symbol: clock_gettime' error

Hi, i've compiled my app on x86_64 with -m32 gcc option. Can anybody tell me what is/would typically cause the 'undefined symbol: clock_gettime' error?? -1 k){0N!x y} '/home/da71336/simon/mkvfh/mkv.so: undefined symbol: clock_gettime @ "q" "subr:mkv 2:`subr,3; subc:mkv 2:`subc,1;... (4 Replies)
Discussion started by: dpa078
4 Replies

6. UNIX for Advanced & Expert Users

relocation error: yyparse referenced symbol not found

This is my set up: LD_LIBRARY_PATH=/apps/rogue_wave_sol7/workspaces/workshop6_u1/4d/lib:/apps/fu/section20/vendorLib/EMS/4.2/lib:/home/a487891/cppunit/lib:/usr/openwin/lib:/usr/lib ldd -d TestDatalinkTradeRouter libintl.so => /usr/lib/libintl.so libw.so.1 => /usr/lib/libw.so.1... (2 Replies)
Discussion started by: agilgeous
2 Replies

7. Programming

ld: 0711-317 ERROR: Undefined symbol: stdscr

I am trying to compile pro*c program on aix 5.3. The program compiled fine when I was using curses library. After switching to ncurses, I have started getting compilation errors. After installing ncurses on the box, I changed the -lcurses flag to -lncurses. I have also updated the path to the... (13 Replies)
Discussion started by: wvuguy
13 Replies

8. Solaris

/usr/lib/passwdutil.so.1: symbol __nsl_fgetspent_r: referenced symbol not found

deleteing post (0 Replies)
Discussion started by: dshakey
0 Replies

9. Programming

gmake undefined symbol error

I have a C code which i am trying to compile using gcc. When i am trying to compile it i get the error undefined symbol error though i am providing the -l*** option where *** refers to the module where the object files for those symbols are present. Can someone help me on the same. (4 Replies)
Discussion started by: manaankit
4 Replies

10. Programming

Undefined Symbol

When I try to link a .so file I get the undefined symbol error. Though I have the library file in my system. The compile and linking commands used are as follows g++ -m64 -g -Wall -I./include -c dxl_sample.c g++ -o firstprogram -m64 -g -Wall -I./include -Bdynamic... (1 Reply)
Discussion started by: Ranadeep Ghosal
1 Replies
amavisd-milter(8)					    BSD System Manager's Manual 					 amavisd-milter(8)

NAME
amavisd-milter -- sendmail milter for amavisd-new SYNOPSIS
amavisd-milter [-fhv] [-d debug-level] [-D delivery-care-of] [-m max-conns] [-M max-wait] [-p pidfile] [-P] [-q backlog] [-s socket] [-t timeout] [-S socket] [-T timeout] [-w directory] DESCRIPTION
The amavisd-milter is a sendmail milter (mail filter) for amavisd-new 2.4.3 and above and sendmail 8.13 and above (limited support for 8.12 is provided). Instead of older amavis-milter helper program, full amavisd-new functionality is available, including adding spam and virus information header fields, modifying Subject, adding address extensions and removing certain recipients from delivery while delivering the same message to the rest. For more information you can visit amavisd-milter website: http://amavisd-milter.sourceforge.net/ and SourceForge project: http://sourceforge.net/projects/amavisd-milter Options The options are as follows: -d debug-level Set the debug level to debug-level. Debugging traces become more verbose as the debug level increases. Maximum is 9. -D delivery-care-of Set AM.PDP request attribute delivery_care_of to client (default) or server. When client method is used then amavisd-milter is responsible to forward the message to recipients. This method doesn't allow personalized header or body modification. When server method is used then amavisd-new is responsible to forward the message to recipients and can provide personalized header and body modification. $forward_method in amavisd.conf must point to some place willing to accept mail without further checking in amavisd-new. -f Run amavisd-milter in the foreground (i.e. do not daemonize). Print debug messages to the terminal. -h Print help page and exit. -m max-conns Maximum concurrent amavisd connections (default 0 - unlimited number of connections). It must agree with the $max_servers entry in amavisd.conf. -M max-wait Maximum wait for connection to amavisd in seconds (default 300 = 5 minutes). It must be less then sending MTA timeout for a response to the final "." that terminates a message on sending MTA. sendmail has default value 1 hour, postfix 10 minutes and qmail 20 min- utes. We suggest to use less than 10 minutes. -p pidfile Use this pid file (default /var/run/amavis/amavisd-milter.pid). -P When amavisd-new fails mail will be passed through unchecked. -q backlog Sets the incoming socket backlog used by listen(2). If it is not set or set to zero, the operating system default is used. -s socket Communication socket between sendmail and amavisd-milter (default /var/lib/amavis/amavisd-milter.sock). The protocol spoken over this socket is MILTER (Mail FILTER). It must agree with the INPUT_MAIL_FILTER entry in sendmail.mc The socket should be in "proto:address" format: o {unix|local}:/path/to/file - A named pipe. o inet:port@{hostname|ip-address} - An IPV4 socket. o inet6:port@{hostname|ip-address} - An IPV6 socket. -S socket Communication socket between amavisd-milter and amavisd-new (default /var/lib/amavis/amavisd.sock). The protocol spoken over this socket is AM.PDP (AMavis Policy Delegation Protocol). It must agree with the $unix_socketname entry in amavisd.conf. The socket should be in "proto:address" format: o {unix|local}:/path/to/file - A named pipe. -t timeout sendmail connection timeout in seconds (default 600 = 10 minutes). It must agree with the INPUT_MAIL_FILTER entry in sendmail.mc and must be greater than or equal to the amavisd-new connection timeout. When you use other milters (especially time-consuming), the timeout must be sufficient to process message in all milters. -T timeout amavisd-new connection timeout in seconds (default 600 = 10 minutes). This timeout must be sufficient for message processing in amavisd-new. It's usually a good idea to adjust them to the same value as sendmail connection timeout. -v Report the version number and exit. -w directory Set working directory (default /var/lib/amavis/tmp). Limited support for sendmail 8.12 o smfi_addheader() is used instead of smfi_insheader() for insheader and addheader AM.PDP responses. This works well with amavisd-new 2.4.3 or newer. o smfi_progress() isn't called when amavisd-milter wait for amavisd-new communication socket. o AM.PDP response quarantine isn't implemented. FILES
/var/run/amavis/amavisd-milter.pid The default process-id file. /var/lib/amavis/amavisd-milter.sock The default sendmail communication socket. /var/lib/amavis/amavisd.sock Th default amavisd-new communication socket. /var/lib/amavis/tmp The default working directory. POLICY BANK
When remote client is authenticated, amavisd-milter forward this information to amavisd-new through AM.PDP request attribute policy_bank: SMTP_AUTH Indicate that the remote client is authenticated. SMTP_AUTH_<MECH> Remote client authentication mechanism. SMTP_AUTH_<MECH>_<BITS> The number of bits used for the key of the symmetric cipher when authentication mechanism use it. EXAMPLES
Configuring amavisd-new In amavisd.conf file change protocol and socket settings to: $protocol = "AM.PDP"; # Use AM.PDP protocol $unix_socketname = "$MYHOME/amavisd.sock"; # Listen on Unix socket ### $inet_socket_port = 10024; # Don't listen on TCP port Then (re)start amavisd daemon. Configuring sendmail To the sendmail.mc file add the following entries: define(`confMILTER_MACROS_ENVFROM', confMILTER_MACROS_ENVFROM`, r, b') INPUT_MAIL_FILTER(`amavisd-milter', `S=local:/var/lib/amavis/amavisd-milter.sock, F=T, T=S:10m;R:10m;E:10m') Then rebuild your sendmail.cf file, install it (usually to /etc/mail/sendmail.cf) and (re)start sendmail daemon. Running amavisd-milter This example assume that amavisd-new is running as user amavis. It must agree with the entry $daemon_user in amavisd.conf. First create working directory: mkdir /var/lib/amavis/tmp chmod 750 /var/lib/amavis/tmp chown amavis /var/lib/amavis/tmp Then start amavisd-milter as non-priviledged user amavis: su - amavis -c "amavisd-milter -w /var/lib/amavis/tmp" Limiting maximum concurrent connections to amavisd To limit concurrent connections to 4 and fail after 10 minutes (10*60 secs) of waiting run amavisd-milter with this options: su - amavis -c "amavisd-milter -w /var/lib/amavis/tmp -m 4 -M 600" Troubleshooting For troubleshooting run amavisd-milter on the foreground and set debug level to appropriate level: su - amavis -c "amavisd-milter -w /var/lib/amavis/tmp -f -d level" where debug levels are: 1 Not errors but unexpected states (connection abort etc). 2 Main states in message processing. 3 All amavisd-milter debug messages. 4-9 Milter communication debugging (smfi_setdbg 1-6). SEE ALSO
http://amavisd-milter.sourceforge.net http://www.ijs.si/software/amavisd/ http://www.milter.org/developers http://www.sendmail.org AUTHORS
This manual page was written by Petr Rehor <rx@rx.cz> and is based on Jerzy Sakol <jerzy.sakol@commgraf.pl> initial work. BUGS
A community mailing lists are available at: http://sourceforge.net/mail/?group_id=138169 Enhancements, requests and problem reports are welcome. If you run into problems first check the users mailing list archive before asking questions on the list. It's highly likely somebody has already come across the same problem and it's been solved. BSD
Januar 23, 2006 BSD
All times are GMT -4. The time now is 03:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy