View Issue Details

IDProjectCategoryView StatusLast Update
0004121unrealinstallingpublic2015-10-26 11:04
Reporterdclarke Assigned Tosyzop  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionopen 
Product Version3.2.9 
Summary0004121: [Solaris 10] Config fails to produce a Makefile and thus make fails. Issue may be in c-ares-1.7.3
DescriptionOn a Solaris 10 server thus :

# cat /etc/release
                   Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC
  Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
                            Assembled 23 August 2011

# fpversion
 A SPARC-based CPU is available.
 Kernel says CPU's clock rate is 1581.6 MHz.

 Sun-4 floating-point controller version 0 found.
 An UltraSPARC chip is available.

 Use "-xtarget=ultraT2 -xcache=8/16/4:4096/64/16" code-generation option.

# psrinfo -pv
The physical processor has 64 virtual processors (0-63)
  UltraSPARC-T2+ (chipid 0, clock 1582 MHz)
The physical processor has 64 virtual processors (64-127)
  UltraSPARC-T2+ (chipid 1, clock 1582 MHz)

# prtconf -v | grep Memory
Memory size: 65312 Megabytes

Steps To ReproduceExtract tarball in a fresh directory.

Set env vars to use gcc thus :

AS=/usr/ccs/bin/as
CC=gcc
CFLAGS=-m64 -g -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS
CONFIG_SHELL=/bin/bash
EDITOR=/usr/xpg4/bin/vi
HOME=/export/home/ircd
LANG=C
LC_ALL=C
LC_COLLATE=C
LC_CTYPE=C
LC_MESSAGES=C
LC_MONETARY=C
LC_NUMERIC=C
LC_TIME=C
LD=/usr/ccs/bin/ld
LD_OPTIONS=-R/usr/sfw/lib/$ISALIST:/usr/sfw/lib/sparcv9 -L/usr/sfw/lib/$ISALIST:/usr/sfw/lib/sparcv9
LOGNAME=ircd
M4=/usr/local/bin/gm4
MAIL=/usr/mail/ircd
MANPATH=/usr/share/man:/usr/X11/share/man
PAGER=/usr/xpg4/bin/more
PATH=/usr/xpg6/bin:/usr/xpg4/bin:/usr/ccs/bin:/opt/SUNWspro/bin:/usr/bin:/sbin:/bin:/usr/sbin:/usr/dt/bin:/usr/openwin/bin:/opt/schily/bin:/usr/sfw/bin
PWD=/export/home/ircd/Unreal3.2
SHELL=/bin/ksh
TERM=vt220
TZ=GMT0
VISUAL=/usr/xpg4/bin/vi


Please note that LD_OPTIONS is set to locate the OpenSSL libs. The output binaries will all have ELF headers of RPATH set to the string "/usr/sfw/lib/$ISALIST:/usr/sfw/lib/sparcv9" which is perfect for both 32-bit and 64-bit bins.

Enter the Unreal 3.2 src dir :

Run ./Config

answer questions thus :


Do you want to enable the server anti-spoof protection?
[Yes] ->

What directory are all the server configuration files in?
[/export/home/ircd/Unreal3.2] -> /etc/opt/Unreal_IRC

What is the path to the ircd binary including the name of the binary?
[/export/home/ircd/Unreal3.2/src/ircd] ->

What should the default permissions for your configuration files be? (Set this to 0 to disable)
It is strongly recommended that you use 0600 to prevent unwanted reading of the file
[0600] ->

Do you want to support SSL (Secure Sockets Layer) connections?
[No] -> Yes

If you know the path to OpenSSL on your system, enter it here. If not
leave this blank (in most cases it will be detected automatically).
[] ->

Do you want to enable IPv6 support?
[No] ->

Do you want to enable ziplinks support?
[No] ->

Do you want to enable remote includes?
This allows stuff like this in your configuration file:
include "http://www.somesite.org/files/opers.conf";
[No] ->

Do you want to enable prefixes for chanadmin and chanowner?
This will give +a the & prefix and ~ for +q (just like +o is @)
Supported by the major clients (mIRC, xchat, epic, eggdrop, Klient,
PJIRC, irssi, CGI:IRC, etc.)
This feature should be enabled/disabled network-wide.
[Yes] ->

What listen() backlog value do you wish to use? Some older servers
have problems with more than 5, others work fine with many more.
[5] ->

How far back do you want to keep the nickname history?
[2000] -> 255

What is the maximum sendq length you wish to have?
[3000000] ->

How many buffer pools would you like?
This number will be multiplied by MAXSENDQLENGTH.
[18] -> 8


How many file descriptors (or sockets) can the IRCd use?
[1024] -> 255

Would you like to pass any custom parameters to configure?
See `./configure --help' and write them here:
[] ->
./configure --with-showlistmodes --enable-ssl --with-listen=5 --with-dpath=/etc/opt/Unreal_IRC --with-spath=/export/home/ircd/Unreal3.2/src/ircd --with-nick-history=255 --with-sendq=3000000 --with-bufferpool=8 --with-permissions=0600 --with-fd-setsize=255 --enable-dynamic-linking





Additional InformationConfig eventually reports thus :

Configuration summary
=====================

TRE is now configured as follows:

* Compilation environment

  CC = gcc
  CFLAGS = -m64 -g -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS
  CPP = gcc -E
  CPPFLAGS =
  LD = /usr/ccs/bin/ld -64
  LDFLAGS =
  LIBS =
  Use alloca(): yes

* TRE options

  Development-time debugging: no
  System regex ABI compatibility: no
  Wide character (wchar_t) support: no (disabled with --disable-wchar)
  Multibyte character set support: no (disabled with --disable-multibyte)
  Approximate matching support: yes
  Build and install agrep: no


HOWEVER the last few lines of output *before* the notice of "Congratulations on your new SSL self-signed certificate..." says this :

mkdir /export/home/ircd/Unreal3.2/extras/c-ares/lib/pkgconfig
 ./install-sh -c -m 644 'libcares.pc' '/export/home/ircd/Unreal3.2/extras/c-ares/lib/pkgconfig/libcares.pc'
gmake[1]: Leaving directory `/export/home/ircd/Unreal3.2/extras/c-ares-1.7.3'
./configure: -: does not exist
make: Fatal error: Don't know how to make target `pem'

final result seems to be that there is no Makefile to work with however there are a multitude of others :

$ find . -type f -name Makefile
./autoconf/Makefile
./extras/regex/moo/Makefile
./extras/c-ares-1.7.3/Makefile
./extras/tre-0.8.0/Makefile
./extras/tre-0.8.0/doc/Makefile
./extras/tre-0.8.0/utils/Makefile
./extras/tre-0.8.0/m4/Makefile
./extras/tre-0.8.0/src/Makefile
./extras/tre-0.8.0/po/Makefile
./extras/tre-0.8.0/tests/Makefile
./extras/tre-0.8.0/tests/agrep/Makefile
./extras/tre-0.8.0/lib/Makefile
./src/Makefile

Please see attached complete log file.

Dennis Clarke
[email protected]





Attached Files
Unreal3.2.9_bug.log (96,123 bytes)
3rd party modules

Relationships

related to 0004235 closedsyzop [Solaris 11] Linking fails with solaris studio 12 

Activities

dclarke

2012-09-11 02:21

reporter   ~0017116

Should you require access to a Solaris Sparc server to investigate, simply email me with a public key and any userid requirements and I would be very happy to provide access.

Dennis Clarke
[email protected]

dclarke

2012-09-11 03:54

reporter   ~0017117

Here is a list of the files in the top dir after ./Config runs as above :

$ ls -lapb
total 2107
drwxr-xr-x 11 ircd ircd 53 Sep 11 00:19 ./
drwxr-x--- 3 ircd ircd 6 Sep 11 01:53 ../
-rw------- 1 ircd ircd 930 Nov 5 2011 .CHANGES.NEW
-rw------- 1 ircd ircd 1645 Nov 5 2011 .CONFIG.RANT
-rw------- 1 ircd ircd 7092 Nov 5 2011 .RELEASE.NOTES
-rw------- 1 ircd ircd 1060 Nov 5 2011 .SICI
-rw------- 1 ircd ircd 519 Nov 5 2011 .UPDATE
-rw------- 1 ircd ircd 2791 Nov 5 2011 .bugreport.gdb
-rw------- 1 ircd ircd 248 Nov 5 2011 .hgeol
-rw------- 1 ircd ircd 293 Nov 5 2011 .hgignore
-rw------- 1 ircd ircd 4653 Nov 5 2011 .hgtags
-rw------- 1 ircd ircd 794 Nov 5 2011 .indent.pro
-rw------- 1 ircd ircd 150820 Nov 5 2011 Changes
-rw------- 1 ircd ircd 262254 Nov 5 2011 Changes.old
-rwx------ 1 ircd ircd 24520 Nov 5 2011 Config
-rw------- 1 ircd ircd 865 Nov 5 2011 Donation
-rw------- 1 ircd ircd 1051 Nov 5 2011 INSTALL.REMOTEINC
-rw------- 1 ircd ircd 17992 Nov 5 2011 LICENSE
-rw------- 1 ircd ircd 8394 Nov 5 2011 Makefile.in
-rw------- 1 ircd ircd 851 Nov 5 2011 README
-rw------- 1 ircd ircd 2574 Nov 5 2011 Unreal.nfo
drwxr-xr-x 2 ircd ircd 12 Nov 5 2011 aliases/
drwxr-xr-x 3 ircd ircd 5 Nov 5 2011 autoconf/
-rwx------ 1 ircd ircd 123 Nov 5 2011 autogen.sh
-rw------- 1 ircd ircd 1175 Nov 5 2011 badwords.channel.conf
-rw------- 1 ircd ircd 1183 Nov 5 2011 badwords.message.conf
-rw------- 1 ircd ircd 1121 Nov 5 2011 badwords.quit.conf
-rw------- 1 ircd ircd 39027 Nov 5 2011 config.guess
-rw-r--r-- 1 ircd ircd 101951 Sep 11 00:19 config.log
-rw-r--r-- 1 ircd ircd 464 Sep 11 00:14 config.settings
-rw------- 1 ircd ircd 27846 Nov 5 2011 config.sub
-rwx------ 1 ircd ircd 229740 Nov 5 2011 configure
-rw------- 1 ircd ircd 24314 Nov 5 2011 configure.ac
-rwxr-xr-x 1 ircd ircd 228339 Sep 11 00:14 configure.lineno
-rw------- 1 ircd ircd 262039 Nov 5 2011 curl-ca-bundle.crt
-rwx------ 1 ircd ircd 1996 Nov 5 2011 curlinstall
-rw------- 1 ircd ircd 1844 Nov 5 2011 dccallow.conf
drwxr-xr-x 3 ircd ircd 28 Nov 5 2011 doc/
drwxr-xr-x 7 ircd ircd 19 Sep 11 00:19 extras/
-rw------- 1 ircd ircd 51604 Nov 5 2011 help.conf
drwxr-xr-x 3 ircd ircd 40 Nov 5 2011 include/
drwxr-xr-x 2 ircd ircd 4 Nov 5 2011 ircdcron/
drwxr-xr-x 2 ircd ircd 3 Nov 5 2011 keys/
-rw------- 1 ircd ircd 1906 Nov 5 2011 m_template.c
-rw------- 1 ircd ircd 31957 Nov 5 2011 makefile.win32
-rwx------ 1 ircd ircd 630 Nov 5 2011 modulize
drwxr-xr-x 2 ircd ircd 37 Nov 5 2011 networks/
-rwx------ 1 ircd ircd 547 Nov 5 2011 newnet
-rw------- 1 ircd ircd 5597 Nov 5 2011 spamfilter.conf
drwxr-xr-x 4 ircd ircd 59 Nov 5 2011 src/
-rw------- 1 ircd ircd 4449 Nov 5 2011 unreal.in
-rwx------ 1 ircd ircd 956 Nov 5 2011 update
-rw------- 1 ircd ircd 16023 Nov 5 2011 wircd.def

syzop

2012-09-24 10:15

administrator   ~0017131

Ok, mail sent :)

dclarke

2012-09-24 17:14

reporter   ~0017135

and Mail replied to

syzop

2012-10-06 12:51

administrator   ~0017155

Thanks for your assistance. I have very little time to work on this, so not sure if this can be fixed in time for 3.2.10.
I understand you have considerable experience in this area (porting to Solaris) which would be helpful, but you have almost no spare time to work on this either... bummer ;)

dclarke

2012-10-07 22:36

reporter   ~0017156

No problem. We can get to it eventually. I don't think the world is rushing headlong towards Solaris anyways. Quite the opposite in fact.

syzop

2014-01-12 10:44

administrator   ~0017878

I'm sorry but I kinda lost interest in this. I hope someone else can work on this and provide a good patch.

syzop

2015-10-26 11:03

administrator   ~0018794

If the issue persists in UnrealIRCd 4 and you have a suggestion on how to fix it, let us know.

With an up to date modern system of course..

Issue History

Date Modified Username Field Change
2012-09-11 02:18 dclarke New Issue
2012-09-11 02:18 dclarke File Added: Unreal3.2.9_bug.log
2012-09-11 02:21 dclarke Note Added: 0017116
2012-09-11 03:54 dclarke Note Added: 0017117
2012-09-24 10:15 syzop Note Added: 0017131
2012-09-24 17:14 dclarke Note Added: 0017135
2012-10-06 12:51 syzop Note Added: 0017155
2012-10-07 22:36 dclarke Note Added: 0017156
2012-10-14 11:46 syzop Summary Config fails to produce a Makefile and thus make fails. Issue may be in c-ares-1.7.3 => [Solaris 10] Config fails to produce a Makefile and thus make fails. Issue may be in c-ares-1.7.3
2012-10-14 11:46 syzop Steps to Reproduce Updated
2012-10-14 11:46 syzop Additional Information Updated
2014-01-12 10:44 syzop Note Added: 0017878
2014-01-12 16:42 syzop Relationship added related to 0004235
2014-03-14 01:14 peterkingalexander Issue cloned: 0004265
2015-10-26 11:03 syzop Note Added: 0018794
2015-10-26 11:03 syzop Status new => closed
2015-10-26 11:04 syzop Assigned To => syzop