[Devel] [ openser-Bugs-1363926 ] Compile problem on FreeBSD

SourceForge.net noreply at sourceforge.net
Tue Nov 22 17:35:33 CET 2005


Bugs item #1363926, was opened at 2005-11-22 18:06
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1363926&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: core
Group: ver devel
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Norman Brandinger (goestelecom)
>Assigned to: Bogdan (bogdan_iancu)
Summary: Compile problem on FreeBSD

Initial Comment:
I just pulled the most current CVS.  There were errors
compiling main.c and cfg.tab.c

To get past the first set of compile problems I

added

#include <netinet/in_systm.h>

before

#include <netinet/in.h>
#include <netinet/ip.h>

Now the following error is produced.

gcc -g -O9 -funroll-loops  -Wcast-align  -Wall 
-minline-all-stringops -falign-loops     
-DNAME='"openser"' -DVERSION='"1.1.0-dev2 "'
-DARCH='"x86_64"' -DOS='"freebsd"' -DCOMPILER='"gcc
3.4"' -D__CPU_x86_64 -D__OS_freebsd
-DCFG_DIR='"/usr/local/etc/openser/"' -DPKG_MALLOC
-DSHM_MEM  -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6
-DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES
-DF_MALLOC  -DFAST_LOCK -DADAPTIVE_WAIT
-DADAPTIVE_WAIT_LOOPS=1024  -DHAVE_SOCKADDR_SA_LEN
-DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN
-DHAVE_SCHED_YIELD -DHAVE_MSGHDR_MSG_CONTROL
-DHAVE_CONNECT_ECONNRESET_BUG -c cfg.tab.c -o cfg.tab.o
cfg.y: In function `yyparse':
cfg.y:740: error: syntax error before '}' token
cfg.y:748: error: `IPTOS_LOWCOST' undeclared (first use
in this function)
cfg.y:748: error: (Each undeclared identifier is
reported only once
cfg.y:748: error: for each function it appears in.)
gmake: *** [cfg.tab.o] Error 1

Adding a semicolon as follows fixed the problem noted
above on line 740.

yyerror("invalid tos value");

An egrep -R IPTOS_LOWCOST * produced no variable
definition so I'm at a loss as to how to correct the
problemidentified on line 748.

Regards,
Norm



----------------------------------------------------------------------

>Comment By: Bogdan (bogdan_iancu)
Date: 2005-11-22 18:35

Message:
Logged In: YES 
user_id=1275325

Looks like `IPTOS_LOWCOST' is not defined on BSD. I removed
it as it's anyhow equal to `IPTOS_MINCOST' which is widely
supported.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1363926&group_id=139143



More information about the Devel mailing list