Sunday, May 30, 2021

Recent Questions - Server Fault

Recent Questions - Server Fault

Recent Questions - Server Fault


ARP information when targeting Android API 29+

Posted: 30 May 2021 08:08 PM PDT

I'm working on a project that scans for devices on a network. Up until recently, I have been sending requests to all possible addresses on the network and then reading /proc/net/arp for device information. As of API 29 access is denied from the application reading /proc/net/arp. Is there another way to receive this information from an Android application?

Update sudoers file in multiple servers with a bash script

Posted: 30 May 2021 07:11 PM PDT

I have 50 Linux servers and can login to the servers without root password (I know the password). Now I would like to add 3 lines in sudoers file on each servers. Obviously logging into 50 servers and adding lines are painful. Is there a different approach we can achieve this by a bash script or a loop?

what is the best practice to let employees connect to company server remotly

Posted: 30 May 2021 05:47 PM PDT

We have server with domain controller in our company and all employees are connected to the server through user accounts and have access to specific folders based on their privileges.

Due to COVID pandemic, we need to let our employees work from home for several days. what is the best practice to achieve this task? what are the requirements (Real IP, VPN Server or role .. etc) knowing that our server OSis win server 2012 r2.

Can Ansible git-module install the latest tag from a repo?

Posted: 30 May 2021 06:32 PM PDT

I want to install recent, but not the HEAD. Instead, I'd like to install the most-recent tag of a remote repository -- on the assumption, that this is, what the maintainers consider a "release". Can the git-module do that?

The methods of figuring out the most recent tag are provided here, but they all require for a clone to have happened first.

Is there a way to have the module do "the needful" for me automatically, or must I do it the hard way:

  1. Clone with the git-module.
  2. Find the latest tag with the command-module.
  3. Use another git-task to switch to the tag?

Google Cloud Metrics show all inode metric types as deprecated, has anything replaced them?

Posted: 30 May 2021 04:26 PM PDT

one of my disks recently filled up with a million gcloud log files and used up all available inodes.

I had monitoring in place for disk usage, but it seems I can't create monitoring for inode usage. This page says all the inode metrics are deprecated:

https://cloud.google.com/monitoring/api/metrics_gcp#gcp-compute

I found that I can disable gcloud logging which means that particular problem won't recur, but in general I'd like to have conditions monitored that can totally ruin the server... is there no way to monitor inode usage with Google Cloud Monitoring and Alerting anymore?

Programmatically get all the stats from htop

Posted: 30 May 2021 08:45 PM PDT

I'm writing a java app that launches a process, and I need to keep track of all the stats as it runs: total and sampled read, writes, CPU, memory. Basically "given a process ID, tell me everything top gives us."

Is there a way to get those stats parsed? Delimited? a JSON? After that I can take care of saving it and how often to sample.

Can i access an EKS cluster , if i don't have access to iam user that created it?

Posted: 30 May 2021 12:47 PM PDT

An AWS admin , created an IAM user , and that user created an EKS cluster. Now , we don't have access to that IAM user.

If , we try to execute , kubectl , commands on that EKS cluster from a new IAM user that has admin level permissions, we still get "You must be logged in to the server (Unauthorized)" error.

How can i access that EKS cluster , if i no longer have access to the IAM user that created it ?

Why is port 587 preferred over port 465 in SMTP?

Posted: 30 May 2021 01:59 PM PDT

I have recently been developing a C# client which sends emails via a SMTP server. However I have been as to what the different terms ment, like: STARTTLS/TLS/SSL... I had a faint idea of what they ment out of context, but email wise i had no clue.

Upon further investigating I found that SMTP clients communicate with servers in 2 different ways (2 encrypted ways); Explicit SSL/TLS & Implicit SSL/TLS.

From what I understand Explicit SSL/TLS is how STARTTLS works, it asks the server on an unsecured connection if TLS is supported and if it is, it continues with an encrypted connection. Implicit TLS however is secure from the begining of the connection to the end, it is never unsecure.

I might be wrong about this, please correct me if I am.

The question is why is port 587 (Explicit SSL/TLS) the preferred port over port 465 (Implicit SSL/TLS).

I know that port 465 is deprecated and I can see the usefulness of port 587 that it works both encrypted and unencrypted and its up to the client to find out what the server supports.

But I rarely see security updates which is in favor of ease of use, which is why i am confused. Why did we go from fully secure to secure only some of the way?

I hope my question makes sense.

Postfix aliases work only for local delivery

Posted: 30 May 2021 02:06 PM PDT

I've installed a Postfix-Dovecot mail server following a guide (How to Set Up an Email Server With Postfix, Dovecot and MySQL) that defines a simple setup with virtual mailboxes and a database that maps virtual domains, virtual users and virtual aliases.

Below, the server domain is redacted as serverdomain.com. The mail server handles also another domain, here called domainone.com.

Each mail has one or more aliases; for example main@serverdomain.com has an alias like alias@serverdomain.com.

A mail sent locally from main@domainone.com to alias@serverdomain.com is delivered, as expected, to main@serverdomain.com.

However, if an external sender (for example, mymail@gmail.com) sends a message to alias@serverdomain.com the reply of the server is:

554 5.7.1 <alias@serverdomain.com>: Recipient address rejected: Unknown user   

In other words, aliases seem to work only if the sender is local.

My Postfix configuration is the following:

alias_database = hash:/etc/aliases  alias_maps = hash:/etc/aliases  append_dot_mydomain = no  biff = no  compatibility_level = 2  inet_interfaces = all  inet_protocols = ipv4  mailbox_size_limit = 0  milter_default_action = accept  milter_protocol = 6  mydestination = localhost  mydomain = serverdomain.com  myhostname = servername.serverdomain.com  mynetworks = 127.0.0.0/8  myorigin = /etc/mailname  non_smtpd_milters = $smtpd_milters  readme_directory = no  recipient_delimiter = +  relayhost =  smtp_tls_security_level = may  smtpd_banner = $myhostname ESMTP $mail_name  smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname  smtpd_milters = local:opendkim/opendkim.sock  smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unlisted_recipient, reject_unauth_destination, check_policy_service inet:localhost:12345  smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, defer_unauth_destination  smtpd_sasl_auth_enable = yes  smtpd_sasl_path = /private/auth  smtpd_sasl_security_options = noanonymous, noplaintext  smtpd_sasl_tls_security_options = noanonymous  smtpd_sasl_type = dovecot  smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_sender, reject_unknown_sender_domain, reject_unknown_reverse_client_hostname  smtpd_tls_auth_only = yes  smtpd_tls_cert_file = /etc/ssl/certs/serverdomain_com.pem  smtpd_tls_key_file = /etc/ssl/private/serverdomain_com.key  smtpd_tls_security_level = may  smtpd_use_tls = yes  virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf  virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf  virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf  virtual_transport = lmtp:unix:private/dovecot-lmtp  

A rewriting problem? I've turned on the verbose logging mode for the trivial-rewrite daemons, so that mail.log shows some more information:

mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf: successful query result from host 127.0.0.1  dict_mysql_lookup: retrieved 1 rows  `mymail@gmail.com' -> `alias@serverdomain.com' -> (`lmtp' `unix:private/dovecot-lmtp' `alias@serverdomain.com' `1024')  send attr flags = 0  send attr transport = lmtp  send attr nexthop = unix:private/dovecot-lmtp  send attr recipient = alias@serverdomain.com  send attr flags = 1024  master_notify: status 1  master_notify: status 0  rewrite socket: wanted attribute: request  input attribute name: request  input attribute value: rewrite  rewrite socket: wanted attribute: rule  input attribute name: rule  input attribute value: local  rewrite socket: wanted attribute: address  input attribute name: address  input attribute value: mymail@gmail.com  rewrite socket: wanted attribute: (list terminator)  input attribute name: (end)  `local' `mymail@gmail.com' -> `mymail@gmail.com'  send attr flags = 0  send attr address = mymail@gmail.com  master_notify: status 1  master_notify: status 0  rewrite socket: wanted attribute: request  input attribute name: request  input attribute value: resolve  rewrite socket: wanted attribute: sender  input attribute name: sender  input attribute value: alias@serverdomain.com  rewrite socket: wanted attribute: address  input attribute name: address  input attribute value: mymail@gmail.com  rewrite socket: wanted attribute: (list terminator)  input attribute name: (end)  match_string: mydestination: gmail.com ~? localhost  match_list_match: gmail.com: no match  match_string: virtual_alias_domains: gmail.com ~? mysql:/etc/postfix/mysql-virtual-alias-maps.cf(0,lock|utf8_request)  dict_mysql_get_active: found active connection to host 127.0.0.1  mysql:/etc/postfix/mysql-virtual-alias-maps.cf: successful query result from host 127.0.0.1  dict_mysql_lookup: retrieved 0 rows  match_list_match: gmail.com: no match  match_string: virtual_mailbox_domains: gmail.com ~? mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf(0,lock|utf8_request)  dict_mysql_get_active: found active connection to host 127.0.0.1  mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf: successful query result from host 127.0.0.1  dict_mysql_lookup: retrieved 0 rows  match_list_match: gmail.com: no match  `alias@serverdomain.com' -> `mymail@gmail.com' -> (`smtp' `gmail.com' `mymail@gmail.com' `4096')  send attr flags = 0  send attr transport = smtp  send attr nexthop = gmail.com  send attr recipient = mymail@gmail.com  send attr flags = 4096  master_notify: status 1  NOQUEUE: reject: RCPT from mail(...).google.com: 554 5.7.1 <alias@serverdomain.com>: Recipient address rejected: Unknown user; from=<mymail@gmail.com> to=<alias@serverdomain.com>  

Apparently, I am missing something here.

The proxy address "smtp:email@domain..com" is already used by the proxy address or LegacyExchangeDN

Posted: 30 May 2021 06:06 PM PDT

when attempting to remove email addresses of MailContacts in Exchange Server 2016 using the following cmd:

Set-MailContact -Identity "bob" -EmailAddresses @{ remove="SMTP:bob@domain.com" } -EmailAddressPolicyEnabled $false  

The command works in most cases, however for some email addresses it fails:

"The proxy address "SMTP:bob@domain.com" is already being used by the proxy addresses or   LegacyExchangeDN of "domain.com/Exchange/Bob2". Please choose another   proxy address. "  

Running command:

Get-MailContact -Filter "EmailAddresses -eq 'bob@domain.com'"  

Outputs the following:

Name                      Alias                                          RecipientType  ----                      -----                                          -------------  bob@domain.com            bob?domain.com                                MailContact  Bob.Smith                 Bob.Smith                                     MailContact  

What is the best way to remove this email address from the contacts?

Ansible Tower: How to launch multiple jobs from same template parallel

Posted: 30 May 2021 05:04 PM PDT

I have a project in Ansible Tower, and a template derived from the project. I am running a job with this template against a host (Say a.example.com) . Now I want to run a job with this template at the same time against another (Say b.example.com).

How do I achieve this? Currently the second job waits for the first job to complete.

Server 2016 - Backup 517 error

Posted: 30 May 2021 02:04 PM PDT

For the last week one server is failing backups to a NAS with

The backup operation that started at '‎2017‎-‎12‎-‎17T23:37:47.558318200Z' has failed with following error code '0x807800C5' (There was a failure in preparing the backup image of one of the volumes in the backup set.). Please review the event details for a solution, and then rerun the backup operation once the issue is resolved.  

It creates the shadow copy, backs up the EFI partition, moves on to backing up the C: drive and then fails

Backup_Image

Other servers, plus a whole raft of Sybase databases backup to the same NAS without any problems

I changed WindowsImageBackup to a different name. It created the directory but still fails, getting only as far as

Drive_Image_One

This Saturday (after patch Tuesday) it was rebooted, but still the same. At a loss with this one!

Thank you

Unable to connect to port 445 at one location. All other subnets can connect

Posted: 30 May 2021 01:05 PM PDT

I have run into a weird issue that i just cant seem to figure out. One of our servers is a file server and is accessible by \servername\ or by \X.X.X.X\ from every remote location aside from the one in question. I am able to ping the file server, and confirmed port 139 is open by telnet X.X.X.X 139 as well as RDP on port 3389 but receive the below error message when I try to use port 445.

The error message i am receiving : Could not open connection to the host, on port 445: connect failed.

Netstat shows that the server is listening on port 445 for all other subnets. I have also created an inbound windows firewall rule to allow all connections over port 445. I was unable to find any ACLs that may be blocking on the edge as well. Interestingly enough, something has to be blocking this as if the user connects to a client vpn, they are able to connect to the share. Does anyone have any suggestions to further isolate where the issue is?

Windowns Hyper-V Virtual Machine shutdown instead of restarting as commanded

Posted: 30 May 2021 06:06 PM PDT

I am running a Windows 2016 Hyper-V host with the following VM's
2x Windows 2012 R2
2x Ubuntu 16.04

Whenever I carry out a restart of the VM's after an update they nearly always shut down and remain in an 'OFF' state instead of restarting.

I have tried different methods of restarting with both the cmd line and GUI in the case of the Windows VM's, and with sudo shutdown -r now in the case of the Linux servers (it makes no difference whether I run the command as a regular user with sudo privileges or root on the Linux servers).

Why does the VM shutdown instead of restarting?

Using iroute in OpenVPN server

Posted: 30 May 2021 04:03 PM PDT

I am attempting to establish network routing between two machines that always connect from 2 different networks, after consulting both articles: https://community.openvpn.net/openvpn/wiki/RoutedLans Routing issue In OpenVPN

i am left with three questions:

  1. how\where do i set the "Client name" - in order to add their CCD folder with the iroute line (or is it possible to view in the logs the name the client 'gives itself' by default)
  2. assuming it is only possible using a certificate, is it possible to create a CCD folder for any client without certificate? (sort of like a default client, unless a certificate is in use)
  3. i do not have a ccd folder in my openvpnfolder as both articles suggest, can i simply create it myself?

Linux@OpenVpn1:~$ cd /etc/openvpn/

easy-rsa/ orig/

i tried following both articles to the letter, but i seem to be missing something, i would've tried creating the folder myself, but without knowing the client name (or how to set it), it wouldn't have any meaning.

please assist.

WildFly with client certifactes: javax.net.ssl.SSLException: Received fatal alert: unknown_ca

Posted: 30 May 2021 01:05 PM PDT

I'm trying to install a wildfly9 server with client certificate authorization. To do that I have:

  1. On the Client: Create a self signed certificate:

    keytool -genkey -keystore client.keystore -validity 3650       -keyalg RSA -keysize 4096 -storetype pkcs12 -alias myClient  
  2. On the Client: export certificate

    keytool -exportcert -keystore client.keystore -alias myClient       -storetype pkcs12 -file myClient.crt  
  3. On the server: Import the crt certificate file into the truststore

    keytool -import -file myClient.crt          -keystore /etc/pki/wildfly/client.truststore  
  4. On the server: adjusting the wildfly config (enabling client certifacte authentication):

    <security-realm name="UndertowRealm">    <server-identities>      <ssl>        <keystore path="/etc/pki/wildfly/server.keystore" keystore-password="123456" alias="server" key-password="123456"/>      </ssl>    </server-identities>    <authentication>      <truststore path="/etc/pki/wildfly/client.truststore" keystore-password="123456"/>      <local default-user="$local" skip-group-loading="true"/>      <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>    </authentication>  </security-realm>  ...  <subsystem xmlns="urn:jboss:domain:undertow:2.0">    <server name="default-server">      <https-listener name="https" socket-binding="https" security-realm="UndertowRealm" verify-client="REQUIRED"/>       ...     </server>   </subsystem>  

The client is a python script. For this client I need the certifacte and the key in PEM format. To export the certificate in PEM I do (all on client side):

  1. Export certificate key:

    keytool -v -importkeystore -srckeystore client.keystore       -srcalias myClient -destkeystore myClient.key.tmp.pem       -deststoretype PKCS12 -destkeypass 123456  
  2. Remove the password from key (yes, of course I will also restrict the access to the key later by changing the file mode):

    openssl pkcs12 -in myClient.key.tmp.pem -nocerts       -nodes > myClient.key.pem  
    1. Remove all outside '-----BEGIN PRIVATE KEY-----' and '-----END PRIVATE KEY-----' of the myClient.key.pem

    2. Export the certificat as PEM:

      keytool -exportcert -keystore client.keystore -alias myClient -rfc -file myClient.pem

But every time if I want connect the server I get (on the server) the error:

2016-10-31 09:50:55,102 DEBUG [io.undertow.request.io] (default I/O-1) Error reading request: javax.net.ssl.SSLException: Received fatal alert: unknown_ca      at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)      at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1666)      at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1634)      at sun.security.ssl.SSLEngineImpl.recvAlert(SSLEngineImpl.java:1800)      at sun.security.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:1083)      at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:907)      at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:781)      at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)      at org.xnio.ssl.JsseSslConduitEngine.engineUnwrap(JsseSslConduitEngine.java:688)      at org.xnio.ssl.JsseSslConduitEngine.unwrap(JsseSslConduitEngine.java:620)      at org.xnio.ssl.JsseSslConduitEngine.unwrap(JsseSslConduitEngine.java:574)      at org.xnio.ssl.JsseSslStreamSourceConduit.read(JsseSslStreamSourceConduit.java:89)      at org.xnio.conduits.ConduitStreamSourceChannel.read(ConduitStreamSourceChannel.java:127)      at io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:150)      at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:128)      at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:56)      at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)      at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)      at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:88)      at org.xnio.nio.WorkerThread.run(WorkerThread.java:539)  

If I disable the client certificate authentification all is fine. so there must be anything wrong with the client certificate authentification.

Anybody knows whats wrong?

How to use nginx to proxy to a host requiring NTLM authentication?

Posted: 30 May 2021 01:49 PM PDT

Basically the same issue as How to use nginx to proxy to a host requiring authentication? but this time using NTLM authentication. Unfortunately the company IIS doesn't accept basic authentication.

I need to configure nginx to use a single user domain account for all proxy requests. As a result client should not receive any credential prompt.

How to configure Cisco SG550XG switch to use a LAG as stacking port (add up bandwidth of multiple physical ports between stack members)

Posted: 30 May 2021 08:05 PM PDT

We have two Cisco SG550XG and we would like to stack them over an LAG (link aggregation group, aka trunk) of 4 physical ports on each side.

According to the product data sheet this is possible and supported:

http://www.cisco.com/c/en/us/products/collateral/switches/550x-series-stackable-managed-switches/datasheet-c78-735874.html

High-speed stack interconnects

Cost-effective high-speed 10G fiber and copper interfaces. Support LAG as stacking interconnects for even higher bandwidth.

Unfortunately I am not able to configure it properly.

When I setup the stack vie the web frontend, I can only select physical ports. I did this, but it seems as if there is only 1x 10G used.

The CLI command show stack links gives:

Topology is Chain    Unit Id Active Links Neighbor Links Operational Down/Standby  Link Speed Links  ------- -------------------- -------------------- ----------- --------------------  1 te1/0/19-22 te2/0/19-22 10G  2 te2/0/19-22 te1/0/19-22 10G    CLI command show stack configuration gives:    Unit Id After Reboot Configuration    Unit Id Stack Links  -------- ------- ---------------  1 Auto te19-22  2 Auto te19-22  

Also when creating the stack via CLI config stack configuration links te 19-22

it does not give different results.

I've also created LAGs on both switches before stacking, but that does not make a difference.

I can not use the LAG as stack port via CLI "stack configuration links lag 2"

Run ncat in background

Posted: 30 May 2021 09:05 PM PDT

from some time I'm trying to resolve very annoying issue:

I need to have simple server which will listen on particular TCP port and throw all information which it recieve to trash. I'm doing it by running ncat:

ncat -l 192.168.1.1 49111 -k -m 50  

As everyting is working fine I want to run ncat in background. After some testing I decided to keep it running with screen:

screen -dm ncat -l 192.168.1.1 49111 -k -m 50  

And still - everything is working fine except one thing: it refuses connections from time to time, no matter what is after -m parameter. Sometimes after few minutes, sometimes after few hours... Only way to make it working is to kill process and start it again.

Did you have similar problems? Or maybe you can suggest me another solution? I'm working at Virtualized workstation with CentOS. Do you think working at VM might cause this issue?

How to install PHP xdiff extension on Debian?

Posted: 30 May 2021 07:07 PM PDT

I am trying to install the PHP xdiff extension on Debian with Apache 2 and PHP Version 5.4.44, but I can't get it working.

I tried the following

pecl install xdiff  

But I got errors:

[…]  checking for PHP prefix... /usr  checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib  checking for PHP extension directory... /usr/lib/php5/20100525  checking for PHP installed headers prefix... /usr/include/php5  checking if debug is enabled... no  checking if zts is enabled... no  checking for re2c... no  configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.  checking for gawk... no  checking for nawk... nawk  checking if nawk is broken... no  checking for xdiff support... yes, shared  checking for xdiff files in default path... not found  configure: error: Please reinstall the libxdiff distribution  ERROR: `/tmp/pear/temp/xdiff/configure --with-xdiff' failed  

After that I installed re2c with

apt-get install re2c  

Now I get:

checking for re2c... re2c  checking for re2c version... 0.13.5 (ok)  checking for gawk... no  checking for nawk... nawk  checking if nawk is broken... no  checking for xdiff support... yes, shared  checking for xdiff files in default path... not found  configure: error: Please reinstall the libxdiff distribution  ERROR: `/tmp/pear/temp/xdiff/configure --with-xdiff' failed  

I gues I have to install libxdiff but how do I do it?

[UPDATE]

As I can't find any sources I could compile by my self, I tried to convert Fedorer's rpm-package with alian.

apt-get install alian  wget ftp://ftp.muug.mb.ca/mirror/fedora/linux/releases/20/Everything/x86_64/os/Packages/l/libxdiff-1.0-3.fc20.x86_64.rpm  alian libxdiff-1.0-3.fc20.x86_64.rpm  dpkg -i libxdiff-1.0-3.fc20.x86_64.deb  

Although the install process did not throw any errors, trying to install xdiff with pecl I got the same error as mentioned above.

[UPDATE 2] I tried to compile as follows:

curl -O http://www.xmailserver.org/libxdiff-0.23.tar.gz  tar -xzf libxdiff-0.23.tar.gz   cd libxdiff-0.23/  ./configure  make  make install  

But I get errors:

make  all-recursive  make[1]: Entering directory '/home/user/libxdiff-0.23'  Making all in .  make[2]: Entering directory '/home/user/libxdiff-0.23'  make[2]: Leaving directory '/home/user/libxdiff-0.23'  Making all in xdiff  make[2]: Entering directory '/home/user/libxdiff-0.23/xdiff'  if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -MT xdiffi.lo -MD -MP -MF ".deps/xdiffi.Tpo" -c -o xdiffi.lo xdiffi.c; \  then mv -f ".deps/xdiffi.Tpo" ".deps/xdiffi.Plo"; else rm -f ".deps/xdiffi.Tpo"; exit 1; fi  mkdir .libs   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xdiffi.lo -MD -MP -MF .deps/xdiffi.Tpo -c xdiffi.c  -fPIC -DPIC -o .libs/xdiffi.o   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xdiffi.lo -MD -MP -MF .deps/xdiffi.Tpo -c xdiffi.c -o xdiffi.o >/dev/null 2>&1  if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -MT xprepare.lo -MD -MP -MF ".deps/xprepare.Tpo" -c -o xprepare.lo xprepare.c; \  then mv -f ".deps/xprepare.Tpo" ".deps/xprepare.Plo"; else rm -f ".deps/xprepare.Tpo"; exit 1; fi   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xprepare.lo -MD -MP -MF .deps/xprepare.Tpo -c xprepare.c  -fPIC -DPIC -o .libs/xprepare.o   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xprepare.lo -MD -MP -MF .deps/xprepare.Tpo -c xprepare.c -o xprepare.o >/dev/null 2>&1  if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -MT xpatchi.lo -MD -MP -MF ".deps/xpatchi.Tpo" -c -o xpatchi.lo xpatchi.c; \  then mv -f ".deps/xpatchi.Tpo" ".deps/xpatchi.Plo"; else rm -f ".deps/xpatchi.Tpo"; exit 1; fi   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xpatchi.lo -MD -MP -MF .deps/xpatchi.Tpo -c xpatchi.c  -fPIC -DPIC -o .libs/xpatchi.o   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xpatchi.lo -MD -MP -MF .deps/xpatchi.Tpo -c xpatchi.c -o xpatchi.o >/dev/null 2>&1  if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -MT xmerge3.lo -MD -MP -MF ".deps/xmerge3.Tpo" -c -o xmerge3.lo xmerge3.c; \  then mv -f ".deps/xmerge3.Tpo" ".deps/xmerge3.Plo"; else rm -f ".deps/xmerge3.Tpo"; exit 1; fi   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xmerge3.lo -MD -MP -MF .deps/xmerge3.Tpo -c xmerge3.c  -fPIC -DPIC -o .libs/xmerge3.o   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xmerge3.lo -MD -MP -MF .deps/xmerge3.Tpo -c xmerge3.c -o xmerge3.o >/dev/null 2>&1  if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -MT xemit.lo -MD -MP -MF ".deps/xemit.Tpo" -c -o xemit.lo xemit.c; \  then mv -f ".deps/xemit.Tpo" ".deps/xemit.Plo"; else rm -f ".deps/xemit.Tpo"; exit 1; fi   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xemit.lo -MD -MP -MF .deps/xemit.Tpo -c xemit.c  -fPIC -DPIC -o .libs/xemit.o   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xemit.lo -MD -MP -MF .deps/xemit.Tpo -c xemit.c -o xemit.o >/dev/null 2>&1  if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -MT xmissing.lo -MD -MP -MF ".deps/xmissing.Tpo" -c -o xmissing.lo xmissing.c; \  then mv -f ".deps/xmissing.Tpo" ".deps/xmissing.Plo"; else rm -f ".deps/xmissing.Tpo"; exit 1; fi   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xmissing.lo -MD -MP -MF .deps/xmissing.Tpo -c xmissing.c  -fPIC -DPIC -o .libs/xmissing.o   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xmissing.lo -MD -MP -MF .deps/xmissing.Tpo -c xmissing.c -o xmissing.o >/dev/null 2>&1  if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -MT xutils.lo -MD -MP -MF ".deps/xutils.Tpo" -c -o xutils.lo xutils.c; \  then mv -f ".deps/xutils.Tpo" ".deps/xutils.Plo"; else rm -f ".deps/xutils.Tpo"; exit 1; fi   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xutils.lo -MD -MP -MF .deps/xutils.Tpo -c xutils.c  -fPIC -DPIC -o .libs/xutils.o   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xutils.lo -MD -MP -MF .deps/xutils.Tpo -c xutils.c -o xutils.o >/dev/null 2>&1  if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -MT xadler32.lo -MD -MP -MF ".deps/xadler32.Tpo" -c -o xadler32.lo xadler32.c; \  then mv -f ".deps/xadler32.Tpo" ".deps/xadler32.Plo"; else rm -f ".deps/xadler32.Tpo"; exit 1; fi   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xadler32.lo -MD -MP -MF .deps/xadler32.Tpo -c xadler32.c  -fPIC -DPIC -o .libs/xadler32.o   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xadler32.lo -MD -MP -MF .deps/xadler32.Tpo -c xadler32.c -o xadler32.o >/dev/null 2>&1  if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -MT xbdiff.lo -MD -MP -MF ".deps/xbdiff.Tpo" -c -o xbdiff.lo xbdiff.c; \  then mv -f ".deps/xbdiff.Tpo" ".deps/xbdiff.Plo"; else rm -f ".deps/xbdiff.Tpo"; exit 1; fi   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xbdiff.lo -MD -MP -MF .deps/xbdiff.Tpo -c xbdiff.c  -fPIC -DPIC -o .libs/xbdiff.o   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xbdiff.lo -MD -MP -MF .deps/xbdiff.Tpo -c xbdiff.c -o xbdiff.o >/dev/null 2>&1  if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -MT xbpatchi.lo -MD -MP -MF ".deps/xbpatchi.Tpo" -c -o xbpatchi.lo xbpatchi.c; \  then mv -f ".deps/xbpatchi.Tpo" ".deps/xbpatchi.Plo"; else rm -f ".deps/xbpatchi.Tpo"; exit 1; fi   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xbpatchi.lo -MD -MP -MF .deps/xbpatchi.Tpo -c xbpatchi.c  -fPIC -DPIC -o .libs/xbpatchi.o   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xbpatchi.lo -MD -MP -MF .deps/xbpatchi.Tpo -c xbpatchi.c -o xbpatchi.o >/dev/null 2>&1  if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -MT xversion.lo -MD -MP -MF ".deps/xversion.Tpo" -c -o xversion.lo xversion.c; \  then mv -f ".deps/xversion.Tpo" ".deps/xversion.Plo"; else rm -f ".deps/xversion.Tpo"; exit 1; fi   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xversion.lo -MD -MP -MF .deps/xversion.Tpo -c xversion.c  -fPIC -DPIC -o .libs/xversion.o   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xversion.lo -MD -MP -MF .deps/xversion.Tpo -c xversion.c -o xversion.o >/dev/null 2>&1  if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -MT xalloc.lo -MD -MP -MF ".deps/xalloc.Tpo" -c -o xalloc.lo xalloc.c; \  then mv -f ".deps/xalloc.Tpo" ".deps/xalloc.Plo"; else rm -f ".deps/xalloc.Tpo"; exit 1; fi   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xalloc.lo -MD -MP -MF .deps/xalloc.Tpo -c xalloc.c  -fPIC -DPIC -o .libs/xalloc.o   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xalloc.lo -MD -MP -MF .deps/xalloc.Tpo -c xalloc.c -o xalloc.o >/dev/null 2>&1  if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -MT xrabdiff.lo -MD -MP -MF ".deps/xrabdiff.Tpo" -c -o xrabdiff.lo xrabdiff.c; \  then mv -f ".deps/xrabdiff.Tpo" ".deps/xrabdiff.Plo"; else rm -f ".deps/xrabdiff.Tpo"; exit 1; fi   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xrabdiff.lo -MD -MP -MF .deps/xrabdiff.Tpo -c xrabdiff.c  -fPIC -DPIC -o .libs/xrabdiff.o   gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT xrabdiff.lo -MD -MP -MF .deps/xrabdiff.Tpo -c xrabdiff.c -o xrabdiff.o >/dev/null 2>&1  /bin/bash ../libtool --tag=CC --mode=link gcc  -g -O2   -o libxdiff.la -rpath /usr/local/lib  xdiffi.lo xprepare.lo xpatchi.lo xmerge3.lo xemit.lo xmissing.lo xutils.lo xadler32.lo xbdiff.lo xbpatchi.lo xversion.lo xalloc.lo xrabdiff.lo    gcc -shared  .libs/xdiffi.o .libs/xprepare.o .libs/xpatchi.o .libs/xmerge3.o .libs/xemit.o .libs/xmissing.o .libs/xutils.o .libs/xadler32.o .libs/xbdiff.o .libs/xbpatchi.o .libs/xversion.o .libs/xalloc.o .libs/xrabdiff.o   -Wl,-soname -Wl,libxdiff.so.0 -o .libs/libxdiff.so.0.0.0  (cd .libs && rm -f libxdiff.so.0 && ln -s libxdiff.so.0.0.0 libxdiff.so.0)  (cd .libs && rm -f libxdiff.so && ln -s libxdiff.so.0.0.0 libxdiff.so)  ar cru .libs/libxdiff.a  xdiffi.o xprepare.o xpatchi.o xmerge3.o xemit.o xmissing.o xutils.o xadler32.o xbdiff.o xbpatchi.o xversion.o xalloc.o xrabdiff.o  ranlib .libs/libxdiff.a  creating libxdiff.la  (cd .libs && rm -f libxdiff.la && ln -s ../libxdiff.la libxdiff.la)  make[2]: Leaving directory '/home/user/libxdiff-0.23/xdiff'  Making all in test  make[2]: Entering directory '/home/user/libxdiff-0.23/test'  if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../xdiff    -g -O2 -MT xdiff_test.o -MD -MP -MF ".deps/xdiff_test.Tpo" -c -o xdiff_test.o xdiff_test.c; \  then mv -f ".deps/xdiff_test.Tpo" ".deps/xdiff_test.Po"; else rm -f ".deps/xdiff_test.Tpo"; exit 1; fi  if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../xdiff    -g -O2 -MT xtestutils.o -MD -MP -MF ".deps/xtestutils.Tpo" -c -o xtestutils.o xtestutils.c; \  then mv -f ".deps/xtestutils.Tpo" ".deps/xtestutils.Po"; else rm -f ".deps/xtestutils.Tpo"; exit 1; fi  /bin/bash ../libtool --tag=CC --mode=link gcc  -g -O2   -o xdiff_test  xdiff_test.o xtestutils.o ../xdiff/.libs/libxdiff.a   mkdir .libs  gcc -g -O2 -o xdiff_test xdiff_test.o xtestutils.o  ../xdiff/.libs/libxdiff.a  if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../xdiff    -g -O2 -MT xregression.o -MD -MP -MF ".deps/xregression.Tpo" -c -o xregression.o xregression.c; \  then mv -f ".deps/xregression.Tpo" ".deps/xregression.Po"; else rm -f ".deps/xregression.Tpo"; exit 1; fi  /bin/bash ../libtool --tag=CC --mode=link gcc  -g -O2   -o xregression  xregression.o xtestutils.o ../xdiff/.libs/libxdiff.a   gcc -g -O2 -o xregression xregression.o xtestutils.o  ../xdiff/.libs/libxdiff.a  make[2]: Leaving directory '/home/user/libxdiff-0.23/test'  Making all in tools  make[2]: Entering directory '/home/user/libxdiff-0.23/tools'  if gcc -DHAVE_CONFIG_H -I. -I. -I..    -DXRAB_WORD_TYPE=int -DXRAB_WORD_PFMT=\"0x%x\" -g -O2 -MT xrabin32-xrabin.o -MD -MP -MF ".deps/xrabin32-xrabin.Tpo" -c -o xrabin32-xrabin.o `test -f 'xrabin.c' || echo './'`xrabin.c; \  then mv -f ".deps/xrabin32-xrabin.Tpo" ".deps/xrabin32-xrabin.Po"; else rm -f ".deps/xrabin32-xrabin.Tpo"; exit 1; fi  xrabin.c: In function 'main':  xrabin.c:242:4: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=]      degree, XPLYW_BITS);      ^  xrabin.c:255:2: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]    fprintf(stdout, "#if defined(XRABPLY_TYPE%d)\n\n", XPLYW_BITS);    ^  xrabin.c:256:2: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]    fprintf(stdout, "#if !defined(XV%d)\n", XPLYW_BITS);    ^  xrabin.c:257:2: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]    fprintf(stdout, "#define XV%d(v) ((xply_word) v ## ULL)\n", XPLYW_BITS);    ^  xrabin.c:260:3: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]     XPLYW_BITS, ply);     ^  xrabin.c:263:2: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]    fprintf(stdout, "typedef unsigned XRABPLY_TYPE%d xply_word;\n\n", XPLYW_BITS);    ^  xrabin.c:274:3: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]     fprintf(stdout, "XV%d(" XRAB_WORD_PFMT ")", XPLYW_BITS, t[i]);     ^  xrabin.c:288:3: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]     fprintf(stdout, "XV%d(" XRAB_WORD_PFMT ")", XPLYW_BITS, u[i]);     ^  xrabin.c:292:2: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]    fprintf(stdout, "

No comments:

Post a Comment