[syslog-ng] Antwort: Re: Antwort: Re: syslog-ng-2.0.5 on HP-UX 11.11

Uwe Martin MTI at DE.FESTO.COM
Thu Aug 2 18:42:55 CEST 2007


The compiler error is solve. I get now the following error :
# make
No suffix list.
        make  all-recursive
No suffix list.
Making all in src
        gcc  -U_XOPEN_SOURCE -U_XOPEN_SOURCE_EXTENDED -D_HPUX_SOURCE -Wall
-g   -o syslog-ng  main.o libsyslog-ng.a -lnsl -lrt  -lfl -L/usr/local/lib
-lglib-2.0 -lintl -liconv   -L/usr/local/lib -levtlog   -lnet
/usr/ccs/bin/ld: Unsatisfied symbols:
   strtoll (first referenced in libsyslog-ng.a(affile.o)) (code)
collect2: ld returned 1 exit status
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

Thanks for your help and suppport.
Uwe






                                                                                                                
         Balazs Scheidler <bazsi at balabit.hu>                        2. Aug. 2007 15:25                          
                                                                                                                



      Gesendet von:

syslog-ng-bounces at lists.balabit.hu 02.08.2007 15:24

Bitte antworten an
Syslog-ng users' and developers' mailing list
<syslog-ng at lists.balabit.hu>

|--+--------------->
|  |               |
|--+--------------->
  >--------------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                                      |
  |                                                                                                                                      |
  |                                                                                                                                    An|
  |         Syslog-ng users' and developers' mailing list <syslog-ng at lists.balabit.hu>                                                   |
  |                                                                                                                                 Kopie|
  |                                                                                                                                      |
  |                                                                                                                                 Thema|
  |         Re: [syslog-ng] Antwort: Re:  syslog-ng-2.0.5 on HP-UX 11.11                                                                 |
  |                                                                                                                                      |
  |                                                                                                                                      |
  |                                                                                                                                      |
  |                                                                                                                                      |
  |                                                                                                                                      |
  >--------------------------------------------------------------------------------------------------------------------------------------|




On Wed, 2007-08-01 at 12:24 +0200, Uwe Martin wrote:
> I try it with :  ./configure  --enable-dynamic-linking
> CFLAGS=-D_HPUX_SOURCE
> but the result is the same. The same error occure again.
>

I've found this problem, gcc defines _XOPEN_SOURCE unconditionally, so
you need to use:

CFLAGS="-U_XOPEN_SOURCE -U_XOPEN_SOURCE_EXTENDED -D_HPUX_SOURCE"

And additionally, there's a bug in one of the system headers, more
specifically in <sys/socket.h> on my HP-UX 11.11 system.

I copied the system header to the local gcc directory
$prefix/lib/gcc/<gcc-version/include/sys/socket.h and applied this
patch:

bash-3.00# diff /usr/include/sys/socket.h
/var/etalon/zbs2/build/hpux/hpux-11_syslog-ng/usr/local/lib/gcc/hppa2.0w-hp-hpux11.11/4.1.0
/include/sys/socket.h
438a439
> #ifndef _APP32_64BIT_OFF_T
442a444
> #endif

Too bad the diff command does not know unified diffs. So it is
impossible to apply by hand, but assuming you have the same header file,
you can apply this using 'patch'.

--
Bazsi

_______________________________________________
syslog-ng maillist  -  syslog-ng at lists.balabit.hu
https://lists.balabit.hu/mailman/listinfo/syslog-ng
Frequently asked questions at http://www.campin.net/syslog-ng/faq.html






Festo AG & Co. KG
Uwe Martin

Abteilung IN-O
Network-Operation


Obere Kaiserstraße 303
D - 66386 St. Ingbert

Tel: ++49 (0) 6894-591-6323
Fax: ++49 (0) 6894-591-6326

http://www.festo.com

Der Inhalt dieses E-Mails ist ausschliesslich fuer den bezeichneten
Adressaten bestimmt. Jede Form der Kenntnisnahme, Veroeffentlichung,
Vervielfaeltigung oder Weitergabe des Inhalts dieses E-Mails durch
unberechtigte Dritte ist unzulaessig. Wir bitten Sie, sich mit dem Absender
des E-Mails in Verbindung zu setzen, falls Sie nicht der Adressat dieses
E-Mails sind und das Material von Ihrem Computer zu loeschen.

This e-mail and any attachments are confidential and intended solely for
the addressee. The perusal, publication, copying or dissemination of the
contents of this e-mail by unauthorised third parties is prohibited. If you
are not the intended recipient of this e-mail, please delete it and
immediately notify the sender.

Rechtsform: Kommanditgesellschaft
Sitz: Esslingen a.N.
Registergericht Stuttgart HRA 211583
Umsatzsteuerident-Nummer: DE 145339206

Persoenlich haftende Gesellschafterin:Festo Aktiengesellschaft
Sitz: Stuttgart
Registergericht Stuttgart HRB 18535

Vorstand:
Dr. Ekkehard Gericke,
Lothar Kempf,
Dipl.-Ing. Rudi Menrad
Dr. Thomas Rubbe
Dr. Eberhard Veit (Sprecher)
Dr. Ulrich Walker
Aufsichtsratsvorsitzender:
Dr. Wilfried Stoll



More information about the syslog-ng mailing list