Project

General

Profile

Actions

Bug #259

closed

Unable to compile on AIX 5.3 ML2

Added by Anonymous over 19 years ago. Updated about 1 year ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:
No

Description

I am attempting to compile on AIX 5.3 ML2 (latest). I have installed gcc and
libgcc 3.3.2. The following is the messages I am getting at the end of the
make


gcc -shared -o .libs/mod_scgi.so  .libs/mod_scgi.o  
-Wl,-blibpath:/opt/freeware/src/packages/SOURCES/lighttpd/src/.libs:/usr/local/lib:/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.3.0.0/3.3.2:/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.3.0.0/3.3.2/../../..:/usr/lib:/lib 
-L./.libs -llightcomp -lc  -Wl,-bE:.libs/mod_scgi.exp -Wl,-bnoentry 
${wl}-bernotok
ar cru .libs/mod_scgi.a .libs/mod_scgi.so
creating mod_scgi.la
(cd .libs && rm -f mod_scgi.la && ln -s ../mod_scgi.la mod_scgi.la)
        if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H 
-DLIBRARY_DIR="\"/usr/local/lib\""  -I. -I. -I..   -D_REENTRANT 
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES   -g -O2 -Wall -W 
-Wshadow -pedantic -MT mod_staticfile.lo -MD -MP -MF 
".deps/mod_staticfile.Tpo" -c -o mod_staticfile.lo mod_staticfile.c;  then mv 
-f ".deps/mod_staticfile.Tpo" ".deps/mod_staticfile.Plo"; else rm -f 
".deps/mod_staticfile.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -DLIBRARY_DIR=\"/usr/local/lib\" -I. -I. -I.. 
-D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 
-Wall -W -Wshadow -pedantic -MT mod_staticfile.lo -MD -MP 
-MF .deps/mod_staticfile.Tpo -c mod_staticfile.c  -DPIC 
-o .libs/mod_staticfile.o
mod_staticfile.c:5:1: warning: "_XOPEN_SOURCE" redefined
In file included 
from /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.3.0.0/3.3.2/include/ctype.h:46,
                 from mod_staticfile.c:1:
/usr/include/standards.h:128:1: warning: this is the location of the previous 
definition
In file included from mod_staticfile.c:7:
/usr/include/time.h:217:18: #if with no expression
/usr/include/time.h:250:18: #if with no expression
In file included from base.h:6,
                 from mod_staticfile.c:9:
/usr/include/sys/stat.h:347:18: #if with no expression
In file included from etag.h:6,
                 from mod_staticfile.c:16:
/opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.3.0.0/3.3.2/include/unistd.h:843:18: 
#if with no expression
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 2.

Stop.

I don't know if this makes sense to anyone, but I am a bit of a loss.

-- david

Actions #1

Updated by jan over 19 years ago

  • Status changed from New to Assigned
Actions #2

Updated by jan over 19 years ago

replace #define _XOPEN_SOURCE by


#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE
#endif

in mod_staticfile.c and tell me if it works.

Actions #3

Updated by stbuehler over 16 years ago

  • Status changed from Assigned to Fixed
  • Resolution set to worksforme

missing feedback, too old.

Actions #4

Updated by stbuehler over 16 years ago

  • Status changed from Fixed to Missing Feedback
Actions #5

Updated by gstrauss about 1 year ago

  • Description updated (diff)
  • Status changed from Missing Feedback to Fixed
  • ASK QUESTIONS IN Forums set to No

lighttpd checks ifndef _XOPEN_SOURCE before defining it

#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 700
#endif

Actions

Also available in: Atom