🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux.debian
Article #42689

Re: Problem z kompilacja kodu w c proszę o pomoc

#42689
From: Coyote
Date: Fri, 13 Jan 2023 07:51
45 lines
2618 bytes
On Fri, 03 Mar 2017 14:10:33 +0100, koop wrote:

> Witam poniżej zamieszczam log z kompilacji.
> 
> g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security
> -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE
> -D_FILE_OFFSET_BITS=64 -I/home/git/learncoin/src
> -I/home/git/learncoin/src/obj -DUSE_IPV6=1
> -I/home/git/learncoin/src/leveldb/include
> -I/home/git/learncoin/src/leveldb/helpers -DHAVE_BUILD_INFO
> -fno-stack-protector -fstack-protector-all -Wstack-protector
> -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2  -MMD -MF obj/alert.d -o
> obj/alert.o alert.cpp In file included from allocators.h:12:0,
>                   from serialize.h:22,
>                   from netbase.h:10, from util.h:30, from alert.h:13,
>                   from alert.cpp:11:
> /usr/include/openssl/crypto.h:426:1: error: expected constructor,
> destructor, or type conversion before ‘DEPRECATEDIN_1_0_0’
> DEPRECATEDIN_1_0_0(unsigned long (*CRYPTO_get_id_callback(void)) (void))
> ^
> In file included from net.h:11:0,
>                   from alert.cpp:13:
> /usr/include/openssl/rand.h:98:1: error: expected constructor,
> destructor, or type conversion before ‘void’
> void RAND_seed(const void *buf, int num);
> ^
> 
> Czy jest ktoś kto mógł by mi pomóc oraz wyjaśnić co to jest
> DEPRECATEDIN_1_0_0?.
> 
> void RAND_seed(const void *buf, int num); znajduje się właśnie za czymś
> takim DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int
> num)). Błąd powyżej również znajduje się za podobnym kawałkiem kodu
> zaczynającym się właśnie od DEPRECATEDIN_1_0_0.
> 
> Dawno nie pisałem w c więc nie wiem co się mogło od tego czasu zmienić.
> 
> Pozdrawiam.


No faktycznie coś jest nie tak.


-- 
~coyote
Technical Details
Message-ID: <tpr2hk$6fpe$1@news.icm.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!.POSTED.062122112142.gdansk.vectranet.pl!not-for-mail
References: <o9bq06$g4v$1@node2.news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!.POSTED.062122112142.gdansk.vectranet.pl!not-for-mail
From: Coyote <coyote@gensokyo.touhou>
Newsgroups: pl.comp.os.linux.debian
Subject: Re: Problem z kompilacja kodu w c proszę o pomoc
Date: Fri, 13 Jan 2023 07:51:16 -0000 (UTC)
Organization: ICM, Uniwersytet Warszawski
Message-ID: <tpr2hk$6fpe$1@news.icm.edu.pl>
References: <o9bq06$g4v$1@node2.news.atman.pl>
Mime-Version: 1.0
Injection-Date: Fri, 13 Jan 2023 07:51:16 -0000 (UTC)
Injection-Info: news.icm.edu.pl; posting-host="062122112142.gdansk.vectranet.pl:62.122.112.142"; logging-data="212782"; mail-complaints-to="usenet@news.icm.edu.pl"
User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a git.gnome.org/pan2)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit