[Devel] [ openser-Bugs-1681281 ] Link error with USE_TLS,
USE_MCAST and !TIMING_INFO
SourceForge.net
noreply at sourceforge.net
Thu Mar 15 10:43:29 CET 2007
Bugs item #1681281, was opened at 2007-03-15 02:43
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1681281&group_id=139143
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Bob Atkins (bobatkins)
Assigned to: Nobody/Anonymous (nobody)
Summary: Link error with USE_TLS, USE_MCAST and !TIMING_INFO
Initial Comment:
When compiling with the following:
Compiling cfg.tab.c
gcc -O9 -funroll-loops -Wall -mcpu=ultrasparc -mtune=ultrasparc -ftree-vectorize -m64 -mcpu=ultrasparc -I/opt/include -I/opt/include/mysql -DNAME='"openser"' -DVERSION='"1.2.0-tls"' -DARCH='"sparc64"' -DOS='"solaris"' -DCOMPILER='"gcc 4.1.1"' -D__CPU_sparc64 -D__OS_solaris -D__SMP_no -DCFG_DIR='"/opt/openser-1.2.0-tls/etc/openser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DSTATISTICS -DF_MALLOC -DUSE_TLS -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD -DHAVE_ALLOCA_H -DUSE_SIGACTION -DHAVE_DEVPOLL -DHAVE_SELECT -I/usr/local/ssl/include -c cfg.tab.c -o cfg.tab.o
/usr/ccs/bin/yaccpar:5: warning: ignoring #pragma ident
/usr/ccs/bin/yaccpar: In function 'yyparse':
/usr/ccs/bin/yaccpar:374: warning: label 'yyerrlab' defined but not used
/usr/ccs/bin/yaccpar:164: warning: label 'yynewstate' defined but not used
/usr/ccs/bin/yaccpar: At top level:
cfg.y:135: warning: 'warn' used but never defined
When linking openser the following error is generated:
Undefined first referenced
symbol in file
warn cfg.tab.o
ld: fatal: Symbol referencing errors. No output written to openser
collect2: ld returned 1 exit status
The above problem is caused because the conditional compile check causes the function to be declared but the conditional check for the actual warn function code does not consider the value of TIMING_INFO.
I have attached a patch to cfg.y that corrects this problem.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1681281&group_id=139143
More information about the Devel
mailing list