Please login or register. September 23, 2018, 04:30:02 PM

Author Topic: Help to own compilation  (Read 1321 times)

0 Members and 1 Guest are viewing this topic.

sobic

  • Jr. Member
  • **
  • Posts: 5
  • Karma: +0/-0
Help to own compilation
« on: December 05, 2017, 11:25:09 AM »
Good afternoon, Michael.
I want to try to compile the openssh myself. Can you help me? What kind of environment is necessary for this? Because you are not listed on the site as you compile for a basis I have all the instructions http://www.perzl.org/aix/index.php?n=Main.Instructions.
My ENV:

export CONFIG_SHELL=/opt/freeware/bin/bash
export CONFIG_ENV_ARGS=/opt/freeware/bin/bash

export CC=cc
export CFLAGS="-qmaxmem=16384 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX61 -D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/freeware/include"

export CXX=xlC
export CXXFLAGS=$CFLAGS

export F77=xlf
export FFLAGS="-qmaxmem=16384 -O -I/opt/freeware/include"

export LD=ld
# for 64-bit applications
export LDFLAGS="-q64 -L/opt/freeware/lib64 -L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000"

export PATH=/opt/IBM/xlc/13.1.0/bin:/usr/bin:/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/vac/bin:/usr/vacpp/bin:/usr/ccs/bin:/usr/dt/bin:/usr/opt/perl5/bin:/opt/freeware/bin:/opt/freeware/sbin:/usr/local/bin:/usr/lib/instl

But make was stoped

        cc -qlanglvl=extc89 -qmaxmem=16384 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_AIX61 -D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/freeware/include   -I. -I.  -DSSHDIR=\"/usr/local/etc\"  -D_PATH_SSH_PROGRAM=\"/usr/local/bin/ssh\"  -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\"  -D_PATH_SFTP_SERVER=\"/usr/local/libexec/sftp-server\"  -D_PATH_SSH_KEY_SIGN=\"/usr/local/libexec/ssh-keysign\"  -D_PATH_SSH_PKCS11_HELPER=\"/usr/local/libexec/ssh-pkcs11-helper\"  -D_PATH_SSH_PIDDIR=\"/var/run\"  -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c sandbox-solaris.c -o sandbox-solaris.o
"/usr/include/stdarg.h", line 89.9: 1506-236 (W) Macro name va_copy has been redefined.
"/usr/include/stdarg.h", line 89.9: 1506-358 (I) "va_copy" is defined on line 884 of defines.h.
        ld -o sshd sshd.o auth-rhosts.o auth-passwd.o  audit.o audit-bsm.o audit-linux.o platform.o  sshpty.o sshlogin.o servconf.o serverloop.o  auth.o auth2.o auth-options.o session.o  auth2-chall.o groupaccess.o  auth-skey.o auth-bsdauth.o auth2-hostbased.o auth2-kbdint.o  auth2-none.o auth2-passwd.o auth2-pubkey.o  monitor.o monitor_wrap.o auth-krb5.o  auth2-gss.o gss-serv.o gss-serv-krb5.o  loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o  sftp-server.o sftp-common.o  sandbox-null.o sandbox-rlimit.o sandbox-systrace.o sandbox-darwin.o  sandbox-seccomp-filter.o sandbox-capsicum.o sandbox-pledge.o  sandbox-solaris.o -L. -Lopenbsd-compat/ -L/opt/freeware/lib64 -L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000 -blibpath:/usr/lib:/lib  -lssh -lopenbsd-compat  -lcrypto -lz   
ld: 0706-012 The -W flag is not recognized.
ld: 0706-012 The -W flag is not recognized.
ld: 0706-006 Cannot find or open library file: -l ,-blibpath:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib
        ld:open(): A file or directory in the path name does not exist.
ld: 0706-006 Cannot find or open library file: -l ,-bmaxdata:0x80000000
        ld:open(): A file or directory in the path name does not exist.
make: 1254-004 The error code from the last command is 255.


Stop.

Please do not be offended by my stupid questions. If you can, help, and if there is no possibility or desire, then tell me what to read?

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1081
  • Karma: +0/-0
Re: Help to own compilation
« Reply #1 on: December 05, 2017, 07:47:54 PM »
Thanks for the question.

Michael Perzl does an excellent job of keeping the original idea of the AIX Toolbox alive - still going back to AIX 5.1.

Based on his experience - he has come up with his general recommendations for environment variables.

Generally speaking - we both work with xlc.

My approach was to build a tool to automate building and packaging as much as possible. Based on your question I wrote up my approach here: http://www.rootvg.net/content/view/818/88/ - How I package OpenSource.

I do not cover many of the options my tool "buildaix" http://www.aixtools.net/index.php/buildaix has, nor do I show all the messages - however, I tested it today with gcc (and built the latest version of OpenSSH (see http://www.aixtools.net/index.php/openssh) about two months back.

In the spirit of "point and click" my tool calls ./configure; make; make install DESTDIR=/var/somewhere; and mkinstallp to package it all. I welcome feedback on how to make it better.

As to why your build is failing with "-W" as an unrecognized argument - it may be a cut/paste error. It certainly looks like a valid argument.

p.s. - my build process does not require bash (hint see: http://www.aixtools.net/index.php/bash - installs with no additional dependencies!). My experience is that the less there is installed in advance - the fewer dependencies a package will have.

So, please give "buildaix" a try - and clear all your current environment variables before you start. If you set them, buildaix will use them.

sobic

  • Jr. Member
  • **
  • Posts: 5
  • Karma: +0/-0
Re: Help to own compilation
« Reply #2 on: December 12, 2017, 07:36:06 AM »
I built my first package and I'm very happy. Thank you for your instruction and buildaix tool. I will have a better understanding of the intricacies. The next goal is to compile Apache httpd 64bit because your versionhttp://download.aixtools.net/tools/apache/aixtools.apache.httpd.2.2.34.0.I does not work for me(for SAP Content server).

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1081
  • Karma: +0/-0
Re: Help to own compilation
« Reply #3 on: December 13, 2017, 06:41:59 AM »
Well, if you find stable sources for the kerberos part, I'll give it another go on httpd.

I have quite a bit more experience with 64-bit builds now (compared to a year ago). And the last month I have been looking into the idiosycrancies of apr and apr-util. Seems these were not designed (in 2001-2002) for a dual 32-bit/64-bit builds.

So, for you - that means, do not worry about 32-bit builds (just use export OBJECT_MODE=64) before you run configure and/or buildaix.

As you move along, feel free to ask questions!