• HPTZIP compile issue

    From Richard Menedetter@2:310/31 to All on Thursday, February 11, 2016 15:11:58
    Hi All!

    Tried to use the internal ZIP, but it did not compile.
    Any idea what goes wrong here?

    The error I get is: src/zip.c:1248:28: warning: assignment from incompatible pointer type [enabled by default]
    zi->ci.pcrc_32_tab = get_crc_table();
    ^
    gcc -shared -Wl -s hptzip.o ioapi.o unzip.o zip.o -L/usr/local/lib -o libhptzip.so
    gcc-4.8.real: error: unrecognized command line option -Wl
    make: *** [libhptzip.so] Error 1

    It seems newer gcc does not support -Wl whatever that is.

    CU, Ricsi

    --- GoldED+/LNX
    * Origin: fido.ricsi.priv.at (2:310/31)
  • From Wilfred van Velzen@2:280/464 to Richard Menedetter on Thursday, February 11, 2016 15:36:34
    Hi Richard,

    On 2016-02-11 15:11:58, you wrote to All:

    The error I get is: src/zip.c:1248:28: warning: assignment from incompatible pointer type [enabled by default]
    zi->ci.pcrc_32_tab = get_crc_table();
    ^

    That's just a warning...

    gcc -shared -Wl -s hptzip.o ioapi.o unzip.o zip.o -L/usr/local/lib -o libhptzip.so
    gcc-4.8.real: error: unrecognized command line option -Wl
    make: *** [libhptzip.so] Error 1

    It seems newer gcc does not support -Wl whatever that is.

    From the 4.8.3 man page (which is the same as for 4.6.x);

    -Wl,option
    Pass option as an option to the linker. If option contains commas, it is split into multiple options at the commas. You can use this syntax to
    pass an argument to the option. For example, -Wl,-Map,output.map passes -Map output.map to the linker. When using the GNU linker, you can also
    get the same effect with -Wl,-Map=output.map.

    So I think the syntax is just wrong. -Wl needs to be followed by linker options
    or left out.

    Bye, Wilfred.

    --- FMail-W32-1.69.12.145-B20160204
    * Origin: FMail development HQ (2:280/464)
  • From Richard Menedetter@2:310/31 to Wilfred van Velzen on Sunday, February 14, 2016 21:18:26
    Hi Wilfred!

    11 Feb 2016 15:36, from Wilfred van Velzen -> Richard Menedetter:

    So I think the syntax is just wrong. -Wl needs to be followed by
    linker options or left out.

    Tried to delete it, and it compiled the library.

    But a first test showed that internalzip still did not work.
    Need to check again when I have a bit more time.

    CU, Ricsi

    --- GoldED+/LNX
    * Origin: fido.ricsi.priv.at (2:310/31)
  • From Richard Menedetter@2:310/31 to All on Saturday, November 05, 2016 22:23:56
    Hi All!

    I tried to compile HPTZIP today.
    Got this error:
    gcc -shared -Wl -s hptzip.o ioapi.o unzip.o zip.o -L/usr/local/lib -o libhptzip.so
    gcc: error: unrecognized command line option -Wl

    When I delete the -Wl it links.

    Is the -Wl in the Makefile an error?
    Also I needed to change nlupd to nlupdate on one line of the Makefile for nlupdate.

    CU, Ricsi

    --- GoldED+/LNX
    * Origin: Freedom of religion is also freedom FROM religion ... (2:310/31)
  • From Nicholas Boel@1:154/10 to Richard Menedetter on Tuesday, November 08, 2016 08:58:22
    Hello Richard,

    On 05 Nov 16 21:23, Richard Menedetter wrote to All:

    I tried to compile HPTZIP today.
    Got this error:
    gcc -shared -Wl -s hptzip.o ioapi.o unzip.o zip.o -L/usr/local/lib -o libhptzip.so
    gcc: error: unrecognized command line option -Wl

    When I delete the -Wl it links.

    While it links, does the program still do what it is intended to do?

    I wonder if changing -Wl to -Wall would do anything productive either? I only reply because I ran into the exact same error yesterday, but did not test further as I had to put my efforts elsewhere that that time.

    Also I needed to change nlupd to nlupdate on one line of the Makefile
    for nlupdate.

    That has been ongoing for awhile now. Stas (the maintainer) hasn't been around for some time, and I'm not sure how many others have access to the repository in order to make a permanent change.

    Regards,
    Nick

    ... "Не знаю. Я здесь только работаю."
    --- GoldED+/LNX 1.1.5-b20160827
    * Origin: thePharcyde_ telnet://bbs.pharcyde.org (Wisconsin) (1:154/10)
  • From Richard Menedetter@2:310/31 to Nicholas Boel on Tuesday, November 08, 2016 16:28:32
    Hi Nicholas!

    08 Nov 2016 08:58, from Nicholas Boel -> Richard Menedetter:

    Got this error:
    gcc -shared -Wl -s hptzip.o ioapi.o unzip.o zip.o
    -L/usr/local/lib -o libhptzip.so
    gcc: error: unrecognized command line option -Wl
    When I delete the -Wl it links.
    While it links, does the program still do what it is intended to do?

    Good question.
    I have not migrated my Fido system to the new computer yet.
    So I cannot yet comment.

    I wonder if changing -Wl to -Wall would do anything productive either?
    I only reply because I ran into the exact same error yesterday, but
    did not test further as I had to put my efforts elsewhere that that
    time.

    I will migrate my Fido system to a vserver ...
    Let's see which of us is first, and comments on weather it works ;)

    CU, Ricsi

    --- GoldED+/LNX
    * Origin: What do you mean? You actually read this tagline?!? (2:310/31)
  • From Wilfred van Velzen@2:280/464 to Richard Menedetter on Tuesday, November 08, 2016 16:41:51
    Hi Richard,

    On 2016-11-08 08:58:22, Nicholas Boel wrote to you:

    I tried to compile HPTZIP today.
    Got this error:
    gcc -shared -Wl -s hptzip.o ioapi.o unzip.o zip.o -L/usr/local/lib -o
    libhptzip.so
    gcc: error: unrecognized command line option -Wl

    When I delete the -Wl it links.

    While it links, does the program still do what it is intended to do?

    I wonder if changing -Wl to -Wall would do anything productive either? I only reply because I ran into the exact same error yesterday, but did not test further as I had to put my efforts elsewhere that that time.

    In my gcc man page:

    -Wl,option
    Pass option as an option to the linker. If option contains commas, it is split into multiple options at the commas. You
    can use this syntax to pass an argument to the option. For example,
    -Wl,-Map,output.map passes -Map output.map to the
    linker. When using the GNU linker, you can also get the same effect
    with -Wl,-Map=output.map.

    And as -s is a linker option, it should probably we written as: -Wl,-s

    But -s is basically what the 'strip' program does. So it doesn't hurt to to leave them both out, and do a manual strip on the generated executable file afterwards...

    Bye, Wilfred.

    --- FMail-W32 1.73.2.29-B20161107
    * Origin: FMail development HQ (2:280/464)
  • From Richard Menedetter@2:310/31 to Wilfred Van Velzen on Tuesday, November 08, 2016 16:50:02
    Hi Wilfred!

    08 Nov 2016 16:41, from Wilfred van Velzen -> Richard Menedetter:

    And as -s is a linker option, it should probably we written as: -Wl,-s
    But -s is basically what the 'strip' program does. So it doesn't hurt
    to to leave them both out, and do a manual strip on the generated executable file afterwards...

    Thanx.

    CU, Ricsi

    --- GoldED+/LNX
    * Origin: Where's my pepper-spray? (2:310/31)
  • From Nicholas Boel@1:154/10 to Richard Menedetter on Tuesday, November 08, 2016 09:47:56
    Hello Richard,

    On 08 Nov 16 16:28, Richard Menedetter wrote to Nicholas Boel:

    Got this error:
    gcc -shared -Wl -s hptzip.o ioapi.o unzip.o zip.o
    -L/usr/local/lib -o libhptzip.so
    gcc: error: unrecognized command line option -Wl
    When I delete the -Wl it links.
    While it links, does the program still do what it is intended to
    do?

    Good question.
    I have not migrated my Fido system to the new computer yet.
    So I cannot yet comment.

    I was able to test this this morning. Changing -Wl to both -W (just removing the "l") and -Wall seem to compile fine. I think I'm going to stich with -Wall since I see the majority of other programs in the husky package seem to use it.

    I wonder if changing -Wl to -Wall would do anything productive
    either? I only reply because I ran into the exact same error
    yesterday, but did not test further as I had to put my efforts
    elsewhere that that time.

    I will migrate my Fido system to a vserver ...
    Let's see which of us is first, and comments on weather it works ;)

    I'm unsure whether it's going to work or not yet, as I don't have any config files in place. Still building the system as I write this. :)

    Regards,
    Nick

    ... "Не знаю. Я здесь только работаю."
    --- GoldED+/LNX 1.1.5-b20160827
    * Origin: thePharcyde_ telnet://bbs.pharcyde.org (Wisconsin) (1:154/10)
  • From mark lewis@1:3634/12.73 to Richard Menedetter on Tuesday, November 08, 2016 11:55:36

    08 Nov 16 16:28, you wrote to Nicholas Boel:

    I wonder if changing -Wl to -Wall would do anything productive
    either? I only reply because I ran into the exact same error
    yesterday, but did not test further as I had to put my efforts
    elsewhere that that time.

    I will migrate my Fido system to a vserver ... Let's see which of us
    is first, and comments on weather it works ;)

    mother nature works the weather the way she wants when she wants... whether or not that is what humans want is another question ;)

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... // Autogenerated, do not edit. All changes will be undone.
    ---
    * Origin: (1:3634/12.73)
  • From Wilfred van Velzen@2:280/464 to Nicholas Boel on Tuesday, November 08, 2016 18:25:33
    Hi,

    On 2016-11-08 09:47:56, Nicholas Boel wrote to Richard Menedetter:
    about: "Re: HPTZIP compile issue":

    I was able to test this this morning. Changing -Wl to both -W (just removing the "l") and -Wall seem to compile fine. I think I'm going to stich with -Wall since I see the majority of other programs in the husky package seem to use it.

    -W (uppercase) doesn't exist as an option!

    -Wall is only usefull for developers. You just get a bunch of warnings if the developer was lazy and didn't prevent those warnings. If you only want to build
    the source as is, and don't intend to change anything in the source, you could just as well use '-w' (lowercase), to suppress all warnings.

    Bye, Wilfred.


    --- FMail-W32 1.73.2.29-B20161107
    * Origin: Native IPv6 connectable node (2:280/464)
  • From Richard Menedetter@2:310/31 to Mark Lewis on Tuesday, November 08, 2016 21:33:42
    Hi Mark!

    08 Nov 2016 11:55, from mark lewis -> Richard Menedetter:


    Let's see which of us is first, and comments on weather it works ;)
    mother nature works the weather the way she wants when she wants... whether or not that is what humans want is another question ;)

    That happens when a non native speaker quickly writes a message, whether you want it or not ;))

    CU, Ricsi

    --- GoldED+/LNX
    * Origin: For the bee a flower is a fountain of life... (2:310/31)
  • From mark lewis@1:3634/12.73 to Richard Menedetter on Tuesday, November 08, 2016 20:47:08

    08 Nov 16 21:33, you wrote to me:

    Let's see which of us is first, and comments on weather it works ;)

    mother nature works the weather the way she wants when she wants...
    whether or not that is what humans want is another question ;)

    That happens when a non native speaker quickly writes a message,
    whether you want it or not ;))

    very happy that you saw and understood the post for what it was without being blatantly obvious about it ;)

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... Like it or not, the American Empire is here.
    ---
    * Origin: (1:3634/12.73)