Ticket #75 (closed defect: fixed)

Opened 4 years ago

Last modified 21 months ago

bug when compile on HP-UX...

Reported by: Mathieu CARBONNEAUX <info@…> Owned by: jan
Priority: normal Milestone:
Component: core Version: 1.3.13
Severity: blocker Keywords: hp-ux compile
Cc: Blocked By:
Need User Feedback: Blocking:

Description

for information have used this option to compile on hp-ux:

MYSQL_DIR=/opt/mysql
LOCALDIR=/usr/local

export CC=gcc
export UNIX95=true
export EGREP="grep -E"
export CPP="gcc -E"
export MYCFLAGS="-DHAVE_SOCKLEN_T -DHAVE_HTONL -DHAVE_MMAP \
                 -D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED \
                                  -D_REENTRANT -D_POSIX_C_SOURCE=199506L"
export CFLAGS="$MYCFLAGS -I$LOCALDIR/include/ -I$MYSQL_DIR/include"
export CPPFLAGS="$MYCFLAGS -I$LOCALDIR/include/ -I$MYSQL_DIR/include"
export LDFLAGS="-L$LOCALDIR/lib -lm"

./configure --prefix=/usr/local/lighttpd --with-ldap --with-attr --with-openssl --with-mysql=$MYSQL_DIR/bin/mysql_config --enable-lfs
gmake
[ $? -eq 0 ] && gmake install


hp-ux have symbol hsterror defined in here include but they not exist in library... hsterror seem to be bsd compliante... and strerror make the same thing and are ansi compliante...

have defined "hstrerror(x) strerror(x)" in file ./src/sys-socket.h after "#include <netdb.h>":

#ifdef _HPUX_SOURCE #define hstrerror(x) strerror(x) #endif

but i think is more clean to use strerror (you use it in the reste of the program!) than hstrerror is more compliante...

Best regards, Mathieu

Attachments

Change History

Changed 4 years ago by Mathieu CARBONNEAUX <info@…>

more readable patch:

#ifdef _HPUX_SOURCE
#define hstrerror(x) strerror(x)
#endif

Changed 3 years ago by jan

  • status changed from new to closed
  • resolution set to fixed

I have no reference found that strerror is able to handle it. I just removed hstrerror() from the code and just print the error-code.

FIxed in changeset [310]

Add/Change #75 (bug when compile on HP-UX...)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.